mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
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>
This commit is contained in:
committed by
Daniel P. Berrangé
parent
fdd51403a3
commit
52ed9f455e
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user