Commit 25a79768 authored by Geoff Simmons's avatar Geoff Simmons

decrypt_record() does not re-initialize the EVP_CIPHER_CTX.

parent 7db30879
...@@ -208,7 +208,7 @@ decrypt_record(EVP_CIPHER_CTX *ctx, unsigned char *ciphertext, ...@@ -208,7 +208,7 @@ decrypt_record(EVP_CIPHER_CTX *ctx, unsigned char *ciphertext,
AN(last); AN(last);
AN(errmsg); AN(errmsg);
if (EVP_CipherInit_ex(ctx, EVP_aes_128_gcm(), NULL, cek, nonce, 0) if (EVP_CipherInit_ex(ctx, EVP_aes_128_gcm(), NULL, cek, nonce, -1)
!= 1) { != 1) {
mk_error(errmsg); mk_error(errmsg);
return (-1); return (-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment