Skip to content

Commit 06f6e36

Browse files
opanait-wrherbertx
authored andcommitted
crypto: octeontx2 - set assoclen in aead_do_fallback()
Currently, in case of aead fallback, no associated data info is set in the fallback request. To fix this, call aead_request_set_ad() to pass the assoclen. Fixes: 6f03f0e ("crypto: octeontx2 - register with linux crypto framework") Signed-off-by: Ovidiu Panait <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent b97c2b2 commit 06f6e36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,7 @@ static int aead_do_fallback(struct aead_request *req, bool is_enc)
12741274
req->base.complete, req->base.data);
12751275
aead_request_set_crypt(&rctx->fbk_req, req->src,
12761276
req->dst, req->cryptlen, req->iv);
1277+
aead_request_set_ad(&rctx->fbk_req, req->assoclen);
12771278
ret = is_enc ? crypto_aead_encrypt(&rctx->fbk_req) :
12781279
crypto_aead_decrypt(&rctx->fbk_req);
12791280
} else {

0 commit comments

Comments
 (0)