[EXT] [PATCH v3] crypto/qat: add SM3 HMAC to gen4 devices

Akhil Goyal gakhil at marvell.com
Tue Jun 20 10:30:43 CEST 2023



> This commit adds SM3 HMAC to Intel QuickAssist Technology PMD
> generation 3 and 4 devices.
> 
> Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>

Please be consistent in the signoff names with the .mailmap file.


> ---
> v2:
> - Fixed problem with chaining operations
> - Added implementation of prefix tables
> v3:
> - Added support for gen3 devices
> 
>  doc/guides/cryptodevs/features/qat.ini       |   1 +
>  doc/guides/cryptodevs/qat.rst                |   5 +

Release notes update is missing.

>  drivers/common/qat/qat_adf/icp_qat_fw_la.h   |  10 ++
>  drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c |   4 +
>  drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c |   4 +
>  drivers/crypto/qat/dev/qat_crypto_pmd_gens.h |  12 +++
>  drivers/crypto/qat/qat_sym_session.c         | 100 +++++++++++++++----
>  drivers/crypto/qat/qat_sym_session.h         |   7 ++
>  8 files changed, 122 insertions(+), 21 deletions(-)
> 
> diff --git a/doc/guides/cryptodevs/features/qat.ini
> b/doc/guides/cryptodevs/features/qat.ini
> index 70511a3076..6358a43357 100644
> --- a/doc/guides/cryptodevs/features/qat.ini
> +++ b/doc/guides/cryptodevs/features/qat.ini
> @@ -70,6 +70,7 @@ AES XCBC MAC = Y
>  ZUC EIA3     = Y
>  AES CMAC (128) = Y
>  SM3          = Y
> +SM3 HMAC     = Y
> 
>  ;
>  ; Supported AEAD algorithms of the 'qat' crypto driver.
> diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rst
> index a4a25711ed..2403430cd6 100644
> --- a/doc/guides/cryptodevs/qat.rst
> +++ b/doc/guides/cryptodevs/qat.rst
> @@ -51,6 +51,9 @@ Cipher algorithms:
>  * ``RTE_CRYPTO_CIPHER_AES_DOCSISBPI``
>  * ``RTE_CRYPTO_CIPHER_DES_DOCSISBPI``
>  * ``RTE_CRYPTO_CIPHER_ZUC_EEA3``
> +* ``RTE_CRYPTO_CIPHER_SM4_ECB``
> +* ``RTE_CRYPTO_CIPHER_SM4_CBC``
> +* ``RTE_CRYPTO_CIPHER_SM4_CTR``

This change should not be part of this patch.


> 
>  Hash algorithms:
> 
> @@ -76,6 +79,8 @@ Hash algorithms:
>  * ``RTE_CRYPTO_AUTH_AES_GMAC``
>  * ``RTE_CRYPTO_AUTH_ZUC_EIA3``
>  * ``RTE_CRYPTO_AUTH_AES_CMAC``
> +* ``RTE_CRYPTO_AUTH_SM3``
> +* ``RTE_CRYPTO_AUTH_SM3_HMAC``
> 
>  Supported AEAD algorithms:
> 


More information about the dev mailing list