crypto: Introduce SM3 hash hmac pbkdf algorithm
authorliequan che <liequanche@gmail.com>
Wed, 30 Oct 2024 08:51:46 +0000 (08:51 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 5 Nov 2024 18:37:18 +0000 (18:37 +0000)
commitd078da86d61cf0f188cd099bef9b7b2dcfeba5a7
tree7fa359d1900f7460aead1f89e59a81f2f3648835
parent62eb377e0a3179ff57274e096eca0102f96d0170
crypto: Introduce SM3 hash hmac pbkdf algorithm

Introduce the SM3 cryptographic hash algorithm (GB/T 32905-2016).

SM3 (GB/T 32905-2016) is a cryptographic standard issued by the
Organization of State Commercial Cryptography Administration (OSCCA)
as an authorized cryptographic algorithm for use within China.

Detect the SM3 cryptographic hash algorithm and enable the feature silently
if it is available.

Signed-off-by: cheliequan <cheliequan@inspur.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
13 files changed:
crypto/hash-gcrypt.c
crypto/hash-nettle.c
crypto/hash.c
crypto/hmac-gcrypt.c
crypto/hmac-nettle.c
crypto/pbkdf-gcrypt.c
crypto/pbkdf-nettle.c
include/crypto/hash.h
meson.build
qapi/crypto.json
tests/unit/test-crypto-hash.c
tests/unit/test-crypto-hmac.c
tests/unit/test-crypto-pbkdf.c