fixed SF# 2795395

This commit is contained in:
Guenter Obiltschnig 2009-06-17 06:58:32 +00:00
parent addc556949
commit 7895040ccf

View File

@ -1,7 +1,7 @@
// //
// CipherKeyImpl.cpp // CipherKeyImpl.cpp
// //
// $Id: //poco/Main/Crypto/src/CipherKeyImpl.cpp#2 $ // $Id: //poco/Main/Crypto/src/CipherKeyImpl.cpp#3 $
// //
// Library: Crypto // Library: Crypto
// Package: Cipher // Package: Cipher
@ -73,8 +73,8 @@ CipherKeyImpl::CipherKeyImpl(const std::string& name,
const ByteVec& iv): const ByteVec& iv):
_pCipher(0), _pCipher(0),
_name(name), _name(name),
_key(), _key(key),
_iv() _iv(iv)
{ {
// dummy access to Cipherfactory so that the EVP lib is initilaized // dummy access to Cipherfactory so that the EVP lib is initilaized
CipherFactory::defaultFactory(); CipherFactory::defaultFactory();
@ -82,8 +82,6 @@ CipherKeyImpl::CipherKeyImpl(const std::string& name,
if (!_pCipher) if (!_pCipher)
throw Poco::NotFoundException("Cipher " + name + " was not found"); throw Poco::NotFoundException("Cipher " + name + " was not found");
_key = ByteVec(keySize());
_iv = ByteVec(ivSize());
} }