You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ported your code to Visual Studio and found a critical bug in aes_decrypt() code (AES decryption worked in a wrong way).
It's forbidden to pass same buffers as input and output to mbedtls_cipher_update.
Quote from mbedtls_cipher_update description:
param output: buffer for the output data. Should be able to hold at least ilen + block_size. Cannot be the same buffer as input!
I ported your code to Visual Studio and found a critical bug in aes_decrypt() code (AES decryption worked in a wrong way).
It's forbidden to pass same buffers as input and output to mbedtls_cipher_update.
Quote from mbedtls_cipher_update description:
Possible fix (with extra buffer allocation):
The text was updated successfully, but these errors were encountered: