How to convert AES_encrypt in counter mode to EVP interfaces? #24194
Unanswered
URNOTCharlotte
asked this question in
Q&A
Replies: 2 comments 2 replies
-
here is some code that works (this is just a copy of demos/ariacbc.c modified to do aes-ctr encrypt/decrypt on a KAT).
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Perhaps your inputs are not the right size? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I previously used AES_encrypt to decrypt cipher text as follows:
After I upgrade the openssl lib to 3.0.12, and there are some warnings about "AES_set_encrypt_key" and "AES_encrypt". It seems that the standard is to to use EVP functions now with openssl.
Here is my code:
But something is wrong with my implementations. I don't know how to set the "ecount_buf" with the EVP interfaces.
Any help appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions