diff options
author | lloyd <[email protected]> | 2010-03-23 01:24:49 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-23 01:24:49 +0000 |
commit | 3c2af00d392ce83fc55090e3865973d25d2a94b3 (patch) | |
tree | b416136ff0d8d9fbab3537a9fa95cfb8abbe109a | |
parent | d66be84b420fbb0afb6a22610cfd5b46b76a5150 (diff) |
Rename SecureVector::L param to INITIAL_LEN so as to be somewhat obvious as to meaning
-rw-r--r-- | src/alloc/secmem.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index 4073167cb..c50df924d 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -337,7 +337,7 @@ class MemoryVector : public MemoryRegion<T> * swapped out to disk. In this way, a security hole allowing attackers * to find swapped out secret keys is closed. */ -template<typename T, u32bit L = 0> +template<typename T, u32bit INITIAL_LEN = 0> class SecureVector : public MemoryRegion<T> { public: @@ -353,7 +353,8 @@ class SecureVector : public MemoryRegion<T> * Create a buffer of the specified length. * @param n the length of the buffer to create. */ - SecureVector(u32bit n = L) { MemoryRegion<T>::init(true, n); } + SecureVector(u32bit n = INITIAL_LEN) + { MemoryRegion<T>::init(true, n); } /** * Create a buffer with the specified contents. |