aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-23 01:24:49 +0000
committerlloyd <[email protected]>2010-03-23 01:24:49 +0000
commit3c2af00d392ce83fc55090e3865973d25d2a94b3 (patch)
treeb416136ff0d8d9fbab3537a9fa95cfb8abbe109a /src
parentd66be84b420fbb0afb6a22610cfd5b46b76a5150 (diff)
Rename SecureVector::L param to INITIAL_LEN so as to be somewhat obvious as to meaning
Diffstat (limited to 'src')
-rw-r--r--src/alloc/secmem.h5
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.