[PATCH 6/9] crypto/dpaa2_sec: add null algo capability
Gagandeep Singh
G.Singh at nxp.com
Wed May 21 06:51:33 CEST 2025
Hi,
> -----Original Message-----
> From: Hemant Agrawal (OSS) <hemant.agrawal at oss.nxp.com>
> Sent: Tuesday, May 20, 2025 11:50 AM
> To: Gagandeep Singh <G.Singh at nxp.com>; dev at dpdk.org; Hemant Agrawal
> <hemant.agrawal at 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.singh at 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 = {
More information about the dev
mailing list