Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77ba115c authored by Steffen Klassert's avatar Steffen Klassert Committed by Herbert Xu
Browse files

crypto: authenc - Use correct ahash complete functions



We accidentally assigned the ahash update complete function to
the wrong function pointer in crypto_authenc_verify.
This patch fixes this.

Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent eebb111f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -454,7 +454,7 @@ static int crypto_authenc_verify(struct aead_request *req,
	unsigned int authsize;
	unsigned int authsize;


	areq_ctx->complete = authenc_verify_ahash_done;
	areq_ctx->complete = authenc_verify_ahash_done;
	areq_ctx->complete = authenc_verify_ahash_update_done;
	areq_ctx->update_complete = authenc_verify_ahash_update_done;


	ohash = authenc_ahash_fn(req, CRYPTO_TFM_REQ_MAY_SLEEP);
	ohash = authenc_ahash_fn(req, CRYPTO_TFM_REQ_MAY_SLEEP);
	if (IS_ERR(ohash))
	if (IS_ERR(ohash))