diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/openssl/ossl_bc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/openssl/ossl_bc.cpp b/src/engine/openssl/ossl_bc.cpp index 560ca66a8..911d6088d 100644 --- a/src/engine/openssl/ossl_bc.cpp +++ b/src/engine/openssl/ossl_bc.cpp @@ -115,7 +115,9 @@ void EVP_BlockCipher::key_schedule(const byte key[], u32bit length) SecureVector<byte> full_key(key, length); if(cipher_name == "TripleDES" && length == 16) - full_key.append(key, 8); + { + full_key += std::make_pair(key, 8); + } else if(EVP_CIPHER_CTX_set_key_length(&encrypt, length) == 0 || EVP_CIPHER_CTX_set_key_length(&decrypt, length) == 0) |