]> git.ipfire.org Git - thirdparty/qemu.git/commit - meson.build
crypto: Introduce SM4 symmetric cipher algorithm
authorHyman Huang <yong.huang@smartx.com>
Thu, 7 Dec 2023 15:47:35 +0000 (23:47 +0800)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Feb 2024 12:47:55 +0000 (12:47 +0000)
commit52ed9f455ee0063958a1b18e54cab9a427fc422f
treec117680dc0047253a3055d0b14a5e00e90c2e9be
parentfdd51403a35a484f29c405c3d5cb0058f80bd3ba
crypto: Introduce SM4 symmetric cipher algorithm

Introduce the SM4 cipher algorithms (OSCCA GB/T 32907-2016).

SM4 (GBT.32907-2016) is a cryptographic standard issued by the
Organization of State Commercial Administration of China (OSCCA)
as an authorized cryptographic algorithms for the use within China.

Detect the SM4 cipher algorithms and enable the feature silently
if it is available.

Signed-off-by: Hyman Huang <yong.huang@smartx.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/block-luks.c
crypto/cipher-gcrypt.c.inc
crypto/cipher-nettle.c.inc
crypto/cipher.c
meson.build
qapi/crypto.json
tests/unit/test-crypto-cipher.c