diff options
author | lloyd <[email protected]> | 2010-03-03 17:53:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-03 17:53:36 +0000 |
commit | 24cef321a2f79907c209f9894c1f486c839c3a7a (patch) | |
tree | 39ef40f4415aabb56a07c70515acd9f4052dd81c /src/stream/salsa20/salsa20.h | |
parent | abbd349e79e1548a5934fb5a2bb7e93388679613 (diff) |
Minor cleanups in Salsa20 code
Diffstat (limited to 'src/stream/salsa20/salsa20.h')
-rw-r--r-- | src/stream/salsa20/salsa20.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stream/salsa20/salsa20.h b/src/stream/salsa20/salsa20.h index 016745355..af7ddd145 100644 --- a/src/stream/salsa20/salsa20.h +++ b/src/stream/salsa20/salsa20.h @@ -29,13 +29,12 @@ class BOTAN_DLL Salsa20 : public StreamCipher std::string name() const; StreamCipher* clone() const { return new Salsa20; } - Salsa20(); + Salsa20() : StreamCipher(16, 32, 16) { position = 0; } ~Salsa20() { clear(); } private: void key_schedule(const byte key[], u32bit key_len); SecureBuffer<u32bit, 16> state; - SecureBuffer<byte, 64> buffer; u32bit position; }; |