aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/secmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc/secmem.h')
-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.