Hi Brian, > -----Original Message----- > From: Dooley, Brian <brian.doo...@intel.com> > Sent: Wednesday, February 19, 2025 12:50 PM > To: Ji, Kai <kai...@intel.com>; De Lara Guarch, Pablo > <pablo.de.lara.gua...@intel.com> > Cc: dev@dpdk.org; gak...@marvell.com; Dooley, Brian > <brian.doo...@intel.com> > Subject: [PATCH v4 1/3] crypto/ipsec_mb: add SM4 GCM support > > This patch introduces SM4 GCM algorithm support to the AESNI_MB PMD. > SM4 GCM is available in the v2.0 release of Intel IPsec MB. >
The first patch of this patchset should be the one adding SM4-GCM in cryptodev, so compilation is not broken between commits. > Signed-off-by: Brian Dooley <brian.doo...@intel.com> > --- > v2: > Added aad to cpu job params > Added ipsec mb version checks > v3: > Fix naming for patchwork > v4: > Remove cryptodev changes to separate patch > --- ... > +++ b/drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h > @@ -826,6 +826,36 @@ static const struct rte_cryptodev_capabilities > aesni_mb_capabilities[] = { > }, } > }, } > }, > + { /* SM4 GCM */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + {.sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_AEAD, > + {.aead = { > + .algo = RTE_CRYPTO_AEAD_SM4_GCM, > + .block_size = 16, > + .key_size = { > + .min = 16, > + .max = 16, > + .increment = 0, > + }, > + .digest_size = { > + .min = 16, > + .max = 16, > + .increment = 0, Digest can be between 1 and 16 bytes.