Hi,

> -----Original Message-----
> From: Hemant Agrawal (OSS) <hemant.agra...@oss.nxp.com>
> Sent: Tuesday, May 20, 2025 11:50 AM
> To: Gagandeep Singh <g.si...@nxp.com>; dev@dpdk.org; Hemant Agrawal
> <hemant.agra...@nxp.com>
> Subject: Re: [PATCH 6/9] crypto/dpaa2_sec: add null algo capability
> 
> 
> On 20-05-2025 11:21, Gagandeep Singh wrote:
> > This patch adds NULL algo capabilities.
> Do you also need to update documentation for the same?
Yes, I will send the update in next version.

> >
> > Signed-off-by: Gagandeep Singh <g.si...@nxp.com>
> > ---
> >   drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 41 +++++++++++++++++++++++
> >   1 file changed, 41 insertions(+)
> >
> > diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h
> b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h
> > index 1c0bc3d6de..e9b601c035 100644
> > --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h
> > +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h
> > @@ -227,6 +227,27 @@ typedef struct dpaa2_sec_session_entry {
> >
> >   static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = 
> > {
> >     /* Symmetric capabilities */
> > +   {       /* NULL (AUTH) */
> > +           .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
> > +           {.sym = {
> > +                   .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,
> > +                   {.auth = {
> > +                           .algo = RTE_CRYPTO_AUTH_NULL,
> > +                           .block_size = 1,
> > +                           .key_size = {
> > +                                   .min = 0,
> > +                                   .max = 0,
> > +                                   .increment = 0
> > +                           },
> > +                           .digest_size = {
> > +                                   .min = 0,
> > +                                   .max = 0,
> > +                                   .increment = 0
> > +                           },
> > +                           .iv_size = { 0 }
> > +                   }, },
> > +           }, },
> > +   },
> >     {       /* MD5 */
> >             .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
> >             {.sym = {
> > @@ -553,6 +574,26 @@ static const struct rte_cryptodev_capabilities
> dpaa2_sec_capabilities[] = {
> >                     }, }
> >             }, }
> >     },
> > +   {       /* NULL (CIPHER) */
> > +           .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
> > +           {.sym = {
> > +                   .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,
> > +                   {.cipher = {
> > +                           .algo = RTE_CRYPTO_CIPHER_NULL,
> > +                           .block_size = 1,
> > +                           .key_size = {
> > +                                   .min = 0,
> > +                                   .max = 0,
> > +                                   .increment = 0
> > +                           },
> > +                           .iv_size = {
> > +                                   .min = 0,
> > +                                   .max = 0,
> > +                                   .increment = 0
> > +                           }
> > +                   }, },
> > +           }, }
> > +   },
> >     {       /* AES CBC */
> >             .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,
> >             {.sym = {

Reply via email to