Skip to content

Commit

Permalink
Fixed OpenSSL build with Stuart Baker for new SSL version. (#635)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Mycio <[email protected]>
  • Loading branch information
MycioDan and Dan Mycio authored Aug 12, 2022
1 parent 13be1f7 commit 2d7615d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/OpenSSLAesCcm.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ void CCMEncrypt(const std::string &aes_key, const std::string &iv,
EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_CCM_SET_IVLEN, ivlen, NULL);
EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_CCM_SET_L, Lvalue, NULL);
// ASSERT_EQ(ivlen, EVP_CIPHER_CTX_iv_length(ctx));
ASSERT_EQ(32, EVP_CIPHER_CTX_key_length(ctx));
int key_length = EVP_CIPHER_CTX_get_key_length(ctx);
ASSERT_EQ(32, key_length);
ASSERT_EQ(
1, EVP_EncryptInit_ex(ctx, nullptr, nullptr,
(const uint8_t *)aes_key.data(), (const uint8_t *)iv.data()));
Expand Down

0 comments on commit 2d7615d

Please sign in to comment.