From 17908e0cef85bfb6299859440f7d6a1137d77e47 Mon Sep 17 00:00:00 2001 From: Karel Kubicek Date: Tue, 18 Apr 2017 10:57:37 +0200 Subject: [PATCH] eSTREAM: initialisation of eSTREAM functions added (fixes round reduction) --- streams/estream/estream_cipher.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/streams/estream/estream_cipher.cc b/streams/estream/estream_cipher.cc index 4b59e96a..a59e8308 100644 --- a/streams/estream/estream_cipher.cc +++ b/streams/estream/estream_cipher.cc @@ -94,7 +94,10 @@ estream_cipher::estream_cipher(const std::string& name, core::optional : _ivtype(create_ivtype(ivtype)) , _keytype(create_keytype(keytype)) , _encryptor(create_cipher(name, round)) - , _decryptor(create_cipher(name, round)) {} + , _decryptor(create_cipher(name, round)) { + _encryptor->ECRYPT_init(); + _decryptor->ECRYPT_init(); +} estream_cipher::estream_cipher(estream_cipher&&) = default; estream_cipher::~estream_cipher() = default;