diff options
author | Hyman Huang <yong.huang@smartx.com> | 2023-12-07 23:47:35 +0800 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2024-02-09 12:47:55 +0000 |
commit | 52ed9f455ee0063958a1b18e54cab9a427fc422f (patch) | |
tree | c117680dc0047253a3055d0b14a5e00e90c2e9be /qapi | |
parent | fdd51403a35a484f29c405c3d5cb0058f80bd3ba (diff) | |
download | qemu-52ed9f455ee0063958a1b18e54cab9a427fc422f.zip qemu-52ed9f455ee0063958a1b18e54cab9a427fc422f.tar.gz qemu-52ed9f455ee0063958a1b18e54cab9a427fc422f.tar.bz2 |
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>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/crypto.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qapi/crypto.json b/qapi/crypto.json index fd3d46e..2f2aeff 100644 --- a/qapi/crypto.json +++ b/qapi/crypto.json @@ -94,6 +94,8 @@ # # @twofish-256: Twofish with 256 bit / 32 byte keys # +# @sm4: SM4 with 128 bit / 16 byte keys (since 9.0) +# # Since: 2.6 ## { 'enum': 'QCryptoCipherAlgorithm', @@ -102,7 +104,8 @@ 'des', '3des', 'cast5-128', 'serpent-128', 'serpent-192', 'serpent-256', - 'twofish-128', 'twofish-192', 'twofish-256']} + 'twofish-128', 'twofish-192', 'twofish-256', + 'sm4']} ## # @QCryptoCipherMode: |