mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 06:17:15 +01:00
fixed SF# 2795395
This commit is contained in:
parent
addc556949
commit
7895040ccf
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user