Skip to contentSkip to conversation

crypto/mvsam: fix capabilities for crypto algorithms

PATCH Applied [email protected] 2 participants 2 messages Jul 1, 2021 – Jul 7, 2021 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/mvsam: fix capabilities for crypto algorithms

From: Michael Shamis <[email protected]>

Increased AAD max size up to 64B and allowed AAD increment step 1B according to EIP197 token HW limitation.
In addition, some capabilities were found incorrect due to running FIPS tests. The patch fix the capabilities.

Fixes 8a61c83af2f ("crypto/mrvl: add mrvl crypto driver")
Fixes 2c22aa4f8f6 ("crypto/mvsam: update hash digest sizes")
Fixes a84226fc055 ("crypto/mvsam: support HMAC SHA224")
---
 drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +6 -6
index e4dfda7fa..3cb7e3b9c 100644
@@ -112,7 +112,7 @@ static const struct rte_cryptodev_capabilities
 					.increment = 1
 				},
 				.digest_size = {
-					.min = 28,
+					.min = 12,
 					.max = 28,
 					.increment = 0
 				},
@@ -233,7 +233,7 @@ static const struct rte_cryptodev_capabilities
 				},
 				.digest_size = {
 					.min = 12,
-					.max = 48,
+					.max = 64,
 					.increment = 4
 				},
 			}, }
@@ -253,7 +253,7 @@ static const struct rte_cryptodev_capabilities
 				},
 				.digest_size = {
 					.min = 12,
-					.max = 48,
+					.max = 64,
 					.increment = 0
 				},
 			}, }
@@ -337,9 +337,9 @@ static const struct rte_cryptodev_capabilities
 					.increment = 0
 				},
 				.aad_size = {
-					.min = 8,
-					.max = 12,
-					.increment = 4
+					.min = 0,
+					.max = 64,
+					.increment = 1
 				},
 				.iv_size = {
 					.min = 12,
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 10 lines

Increased AAD max size up to 64B and allowed AAD increment step 1B according to EIP197 token HW limitation.
In addition, some capabilities were found incorrect due to running FIPS tests. The patch fix the capabilities.

Fixes 8a61c83af2f ("crypto/mrvl: add mrvl crypto driver")
Fixes 2c22aa4f8f6 ("crypto/mvsam: update hash digest sizes")
Fixes a84226fc055 ("crypto/mvsam: support HMAC SHA224")
Quoted 4 lines

---

Applied to dpdk-next-crypto

Thanks.