From 7895040ccfbba0fcb38039ce365cf425a36748de Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Wed, 17 Jun 2009 06:58:32 +0000 Subject: [PATCH] fixed SF# 2795395 --- Crypto/src/CipherKeyImpl.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Crypto/src/CipherKeyImpl.cpp b/Crypto/src/CipherKeyImpl.cpp index 92c7ae565..a7b9abd31 100644 --- a/Crypto/src/CipherKeyImpl.cpp +++ b/Crypto/src/CipherKeyImpl.cpp @@ -1,7 +1,7 @@ // // CipherKeyImpl.cpp // -// $Id: //poco/Main/Crypto/src/CipherKeyImpl.cpp#2 $ +// $Id: //poco/Main/Crypto/src/CipherKeyImpl.cpp#3 $ // // Library: Crypto // Package: Cipher @@ -73,8 +73,8 @@ CipherKeyImpl::CipherKeyImpl(const std::string& name, const ByteVec& iv): _pCipher(0), _name(name), - _key(), - _iv() + _key(key), + _iv(iv) { // dummy access to Cipherfactory so that the EVP lib is initilaized CipherFactory::defaultFactory(); @@ -82,8 +82,6 @@ CipherKeyImpl::CipherKeyImpl(const std::string& name, if (!_pCipher) throw Poco::NotFoundException("Cipher " + name + " was not found"); - _key = ByteVec(keySize()); - _iv = ByteVec(ivSize()); }