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/hash/sha1/sha160.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hash/sha1') diff --git a/src/hash/sha1/sha160.h b/src/hash/sha1/sha160.h index 142c6bf17..cb7e63821 100644 --- a/src/hash/sha1/sha160.h +++ b/src/hash/sha1/sha160.h @@ -29,7 +29,7 @@ class BOTAN_DLL SHA_160 : public MDx_HashFunction void compress_n(const byte[], u32bit blocks); void copy_out(byte[]); - SecureBuffer digest; + SecureVector digest; SecureVector W; }; -- cgit v1.2.3