diff options
Diffstat (limited to 'src/stream/salsa20/salsa20.h')
-rw-r--r-- | src/stream/salsa20/salsa20.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stream/salsa20/salsa20.h b/src/stream/salsa20/salsa20.h index 4ba483082..7e6c523cd 100644 --- a/src/stream/salsa20/salsa20.h +++ b/src/stream/salsa20/salsa20.h @@ -29,13 +29,13 @@ class BOTAN_DLL Salsa20 : public StreamCipher std::string name() const; StreamCipher* clone() const { return new Salsa20; } - Salsa20() : StreamCipher(16, 32, 16) { position = 0; } + Salsa20() : StreamCipher(16, 32, 16), state(16), buffer(64) { position = 0; } ~Salsa20() { clear(); } private: void key_schedule(const byte key[], u32bit key_len); - SecureVector<u32bit, 16> state; - SecureVector<byte, 64> buffer; + SecureVector<u32bit> state; + SecureVector<byte> buffer; u32bit position; }; |