[dpdk-dev] [PATCH v2 12/20] crypto/ccp: add aes-cmac auth algo aupport

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Mon Jan 8 18:27:26 CET 2018


Hi Ravi,

> -----Original Message-----
> From: Ravi Kumar [mailto:Ravi1.kumar at amd.com]
> Sent: Friday, January 5, 2018 9:40 AM
> To: dev at dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
> Subject: [PATCH v2 12/20] crypto/ccp: add aes-cmac auth algo aupport
> 
> Signed-off-by: Ravi Kumar <Ravi1.kumar at amd.com>

...

> --- a/drivers/crypto/ccp/ccp_pmd_ops.c
> +++ b/drivers/crypto/ccp/ccp_pmd_ops.c
> @@ -39,6 +39,27 @@
>  #include "ccp_crypto.h"
> 
>  static const struct rte_cryptodev_capabilities ccp_pmd_capabilities[] = {
> +	{	/*AES-CMAC */
> +		.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
> +		{.sym = {
> +			.xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,
> +			{.auth = {
> +				 .algo = RTE_CRYPTO_AUTH_AES_CMAC,
> +				 .block_size = 16,
> +				 .key_size = {
> +					 .min = 16,
> +					 .max = 32,
> +					 .increment = 8
> +				 },
> +				 .digest_size = {
> +					 .min = 16,
> +					 .max = 16,
> +					 .increment = 0
> +				 },
> +				 .aad_size = { 0 }

Since this is an authentication only algorithm, there is no need to set AAD size here.




More information about the dev mailing list