|
@@ -246,11 +246,11 @@ static int gcm_aes_nx_crypt(struct aead_request *req, int enc)
|
|
|
req->dst, nbytes,
|
|
|
crypto_aead_authsize(crypto_aead_reqtfm(req)),
|
|
|
SCATTERWALK_TO_SG);
|
|
|
- } else if (req->assoclen) {
|
|
|
+ } else {
|
|
|
u8 *itag = nx_ctx->priv.gcm.iauth_tag;
|
|
|
u8 *otag = csbcpb->cpb.aes_gcm.out_pat_or_mac;
|
|
|
|
|
|
- scatterwalk_map_and_copy(itag, req->dst, nbytes,
|
|
|
+ scatterwalk_map_and_copy(itag, req->src, nbytes,
|
|
|
crypto_aead_authsize(crypto_aead_reqtfm(req)),
|
|
|
SCATTERWALK_FROM_SG);
|
|
|
rc = memcmp(itag, otag,
|