Hi Ravi,

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


Reply via email to