crypto/dpaa_sec: remove ICV memset on decryption side
Since the packet lengths are modified, it is not required to explicitly reset the ICV. Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") Signed-off-by: Alok Makhariya <alok.makhariya@nxp.com>
This commit is contained in:
parent
91230d0cff
commit
74658bda33
@ -598,7 +598,6 @@ build_auth_only(struct rte_crypto_op *op, dpaa_sec_session *ses)
|
|||||||
/* hash result or digest, save digest first */
|
/* hash result or digest, save digest first */
|
||||||
rte_memcpy(old_digest, sym->auth.digest.data,
|
rte_memcpy(old_digest, sym->auth.digest.data,
|
||||||
ses->digest_length);
|
ses->digest_length);
|
||||||
memset(sym->auth.digest.data, 0, ses->digest_length);
|
|
||||||
qm_sg_entry_set64(sg, start_addr + sym->auth.data.offset);
|
qm_sg_entry_set64(sg, start_addr + sym->auth.data.offset);
|
||||||
sg->length = sym->auth.data.length;
|
sg->length = sym->auth.data.length;
|
||||||
cpu_to_hw_sg(sg);
|
cpu_to_hw_sg(sg);
|
||||||
@ -738,7 +737,6 @@ build_cipher_auth_gcm(struct rte_crypto_op *op, dpaa_sec_session *ses)
|
|||||||
|
|
||||||
memcpy(ctx->digest, sym->aead.digest.data,
|
memcpy(ctx->digest, sym->aead.digest.data,
|
||||||
ses->digest_length);
|
ses->digest_length);
|
||||||
memset(sym->aead.digest.data, 0, ses->digest_length);
|
|
||||||
sg++;
|
sg++;
|
||||||
|
|
||||||
qm_sg_entry_set64(sg, dpaa_mem_vtop(ctx->digest));
|
qm_sg_entry_set64(sg, dpaa_mem_vtop(ctx->digest));
|
||||||
@ -832,7 +830,6 @@ build_cipher_auth(struct rte_crypto_op *op, dpaa_sec_session *ses)
|
|||||||
|
|
||||||
memcpy(ctx->digest, sym->auth.digest.data,
|
memcpy(ctx->digest, sym->auth.digest.data,
|
||||||
ses->digest_length);
|
ses->digest_length);
|
||||||
memset(sym->auth.digest.data, 0, ses->digest_length);
|
|
||||||
sg++;
|
sg++;
|
||||||
|
|
||||||
qm_sg_entry_set64(sg, dpaa_mem_vtop(ctx->digest));
|
qm_sg_entry_set64(sg, dpaa_mem_vtop(ctx->digest));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user