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