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
//
// $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());
}