Message ID | 2380310.MRETds3oWL@positron.chronox.de (mailing list archive) |
---|---|
State | Deferred |
Delegated to: | Herbert Xu |
Headers | show |
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c index 4757609..ef955d3 100644 --- a/drivers/crypto/picoxcell_crypto.c +++ b/drivers/crypto/picoxcell_crypto.c @@ -688,6 +688,11 @@ static int spacc_aead_encrypt(struct aead_request *req) { struct crypto_aead *aead = crypto_aead_reqtfm(req); struct spacc_aead *alg = to_spacc_aead(crypto_aead_alg(aead)); + int err; + + err = crypto_aead_copy_ad(req); + if (err) + return err; return spacc_aead_setup(req, alg->type, 1); }
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@chronox.de> --- drivers/crypto/picoxcell_crypto.c | 5 +++++ 1 file changed, 5 insertions(+)