>From acad5f6af68d18bc1dbac460bd44f2298902018b Mon Sep 17 00:00:00 2001 From: Stephan Mueller <smueller@xxxxxxxxxx> Date: Mon, 9 Jan 2017 14:32:02 +0100 Subject: Invoke the crypto_aead_copy_ad function during the encryption code path to copy the AAD from the source to the destination buffer. Signed-off-by: Stephan Mueller <smueller@xxxxxxxxxx> --- arch/arm64/crypto/aes-ce-ccm-glue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/crypto/aes-ce-ccm-glue.c b/arch/arm64/crypto/aes-ce-ccm-glue.c index cc5515d..7dfcb1f 100644 --- a/arch/arm64/crypto/aes-ce-ccm-glue.c +++ b/arch/arm64/crypto/aes-ce-ccm-glue.c @@ -155,6 +155,10 @@ static int ccm_encrypt(struct aead_request *req) u32 len = req->cryptlen; int err; + err = crypto_aead_copy_ad(req); + if (err) + return err; + err = ccm_init_mac(req, mac, len); if (err) return err; -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html