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;