|
@@ -227,7 +227,7 @@ static void cc_aead_complete(struct device *dev, void *cc_req, int err)
|
|
|
/* In case of payload authentication failure, MUST NOT
|
|
/* In case of payload authentication failure, MUST NOT
|
|
|
* revealed the decrypted message --> zero its memory.
|
|
* revealed the decrypted message --> zero its memory.
|
|
|
*/
|
|
*/
|
|
|
- cc_zero_sgl(areq->dst, areq_ctx->cryptlen);
|
|
|
|
|
|
|
+ cc_zero_sgl(areq->dst, areq->cryptlen);
|
|
|
err = -EBADMSG;
|
|
err = -EBADMSG;
|
|
|
}
|
|
}
|
|
|
} else { /*ENCRYPT*/
|
|
} else { /*ENCRYPT*/
|