[PATCH v2 03/18] crypto/cnxk: remove zero IV
Anoob Joseph
anoobj at marvell.com
Tue Aug 9 12:53:41 CEST 2022
Zeroising AES-CMAC IV would be done in microcode. Extra clearing in DPDK
is not required.
Signed-off-by: Anoob Joseph <anoobj at marvell.com>
Signed-off-by: Tejasree Kondoj <ktejasree at marvell.com>
---
drivers/crypto/cnxk/cnxk_se.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h
index a75003f2c6..5574dbfa04 100644
--- a/drivers/crypto/cnxk/cnxk_se.h
+++ b/drivers/crypto/cnxk/cnxk_se.h
@@ -91,10 +91,6 @@ pdcp_iv_copy(uint8_t *iv_d, uint8_t *iv_s, const uint8_t pdcp_alg_type,
memcpy(iv_d + 6, iv_s + 8, 17);
} else
memcpy(iv_d, iv_s, 16);
- } else {
- /* AES-CMAC EIA2, microcode expects 16B zeroized IV */
- for (j = 0; j < 16; j++)
- iv_d[j] = 0;
}
}
--
2.25.1
More information about the dev
mailing list