Widen the AES-CTR IV size range from the fixed 16-byte value to [12, 16] with a 4-byte increment. This allows 96-bit IVs (the standard NIST SP 800-38A recommendation) in addition to 128-bit IVs, aligning with common usage and test-vector expectations.
The change applies to both dpaa2_sec_capabilities and dpaa2_pdcp_capabilities. Signed-off-by: Hemant Agrawal <[email protected]> --- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h index 1824cc4a60..7e18e83858 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h @@ -625,9 +625,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 8 }, .iv_size = { - .min = 16, + .min = 12, .max = 16, - .increment = 0 + .increment = 4 }, }, } }, } @@ -855,9 +855,9 @@ static const struct rte_cryptodev_capabilities dpaa2_pdcp_capabilities[] = { .increment = 8 }, .iv_size = { - .min = 16, + .min = 12, .max = 16, - .increment = 0 + .increment = 4 } }, } }, } -- 2.25.1

