[1/2] lib/cryptodev/: Add SM3_HMAC/SM4_CFB/SM4_OFB support in DPDK
Checks
Commit Message
Add crypto mode: SM4_CFB/SM4_OFB support in DPDK.
Add auth mode: SM3_HMAC support in DPDK.
Signed-off-by: Sunyang Wu <sunyang.wu@jaguarmicro.com>
---
doc/guides/cryptodevs/features/default.ini | 3 +++
lib/cryptodev/rte_crypto_sym.h | 8 +++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
@@ -64,6 +64,8 @@ ZUC EEA3 =
SM4 ECB =
SM4 CBC =
SM4 CTR =
+SM4 CFB =
+SM4 OFB =
;
; Supported authentication algorithms of a default crypto driver.
@@ -99,6 +101,7 @@ SHA3_384 HMAC =
SHA3_512 =
SHA3_512 HMAC =
SM3 =
+SM3 HMAC =
SHAKE_128 =
SHAKE_256 =
@@ -172,8 +172,12 @@ enum rte_crypto_cipher_algorithm {
/**< ShangMi 4 (SM4) algorithm in ECB mode */
RTE_CRYPTO_CIPHER_SM4_CBC,
/**< ShangMi 4 (SM4) algorithm in CBC mode */
- RTE_CRYPTO_CIPHER_SM4_CTR
+ RTE_CRYPTO_CIPHER_SM4_CTR,
/**< ShangMi 4 (SM4) algorithm in CTR mode */
+ RTE_CRYPTO_CIPHER_SM4_OFB,
+ /**< ShangMi 4 (SM4) algorithm in OFB mode */
+ RTE_CRYPTO_CIPHER_SM4_CFB
+ /**< ShangMi 4 (SM4) algorithm in CFB mode */
};
/** Cipher algorithm name strings */
@@ -376,6 +380,8 @@ enum rte_crypto_auth_algorithm {
/**< HMAC using 512 bit SHA3 algorithm. */
RTE_CRYPTO_AUTH_SM3,
/**< ShangMi 3 (SM3) algorithm */
+ RTE_CRYPTO_AUTH_SM3_HMAC,
+ /** < HMAC using ShangMi 3 (SM3) algorithm */
RTE_CRYPTO_AUTH_SHAKE_128,
/**< 128 bit SHAKE algorithm. */