From d66be84b420fbb0afb6a22610cfd5b46b76a5150 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 23 Mar 2010 01:17:41 +0000 Subject: Remove SecureBuffer, which is the fixed-size variant of SecureVector. Add a second template param to SecureVector which specifies the initial length. Change all callers to be SecureVector instead of SecureBuffer. This can go away in C++0x, once compilers implement N2712 ("Non-static data member initializers"), and we can just write code as SecureVector P{18}; instead --- src/block/rc2/rc2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/block/rc2/rc2.cpp') diff --git a/src/block/rc2/rc2.cpp b/src/block/rc2/rc2.cpp index b5e4a7d50..3114c6055 100644 --- a/src/block/rc2/rc2.cpp +++ b/src/block/rc2/rc2.cpp @@ -124,7 +124,7 @@ void RC2::key_schedule(const byte key[], u32bit length) 0xC5, 0xF3, 0xDB, 0x47, 0xE5, 0xA5, 0x9C, 0x77, 0x0A, 0xA6, 0x20, 0x68, 0xFE, 0x7F, 0xC1, 0xAD }; - SecureBuffer L; + SecureVector L; L.copy(key, length); for(u32bit j = length; j != 128; ++j) -- cgit v1.2.3