Skip to content

Commit

Permalink
Use legacy API name. (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerstu authored Aug 20, 2022
1 parent 1fa064a commit 9596a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/OpenSSLAesCcm.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ 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));
int key_length = EVP_CIPHER_CTX_get_key_length(ctx);
int key_length = EVP_CIPHER_CTX_key_length(ctx);
ASSERT_EQ(32, key_length);
ASSERT_EQ(
1, EVP_EncryptInit_ex(ctx, nullptr, nullptr,
Expand Down

0 comments on commit 9596a27

Please sign in to comment.