X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=crypto%2Fauthencesn.c;h=6de852ce4cf8f24f7345376c33f0bb64053f658b;hb=HEAD;hp=0cf5fefdb859b1158460faa278017a524f54a93a;hpb=74fee4e88fd196c712abfdae89acfa272abf10f8;p=mirror_ubuntu-bionic-kernel.git diff --git a/crypto/authencesn.c b/crypto/authencesn.c index 0cf5fefdb859..4ba4470deee1 100644 --- a/crypto/authencesn.c +++ b/crypto/authencesn.c @@ -90,6 +90,7 @@ static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 * CRYPTO_TFM_RES_MASK); out: + memzero_explicit(&keys, sizeof(keys)); return err; badkey: @@ -278,7 +279,7 @@ static void authenc_esn_verify_ahash_done(struct crypto_async_request *areq, struct aead_request *req = areq->data; err = err ?: crypto_authenc_esn_decrypt_tail(req, 0); - aead_request_complete(req, err); + authenc_esn_request_complete(req, err); } static int crypto_authenc_esn_decrypt(struct aead_request *req)