mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 22:32:31 +02:00
ima-evm-utils: add SM3 to pkey_hash_algo algorithm list
SM3 was published by State Encryption Management Bureau, China. It has been well supported in the kernel and openssl. This patch allows SM3 to be used smoothly by specifying the parameter `-a sm3` or `--hashalgo sm3`. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
15659747eb
commit
ceecb28d3b
@ -71,6 +71,7 @@ static const char *const pkey_hash_algo[PKEY_HASH__LAST] = {
|
||||
[PKEY_HASH_SHA384] = "sha384",
|
||||
[PKEY_HASH_SHA512] = "sha512",
|
||||
[PKEY_HASH_SHA224] = "sha224",
|
||||
[PKEY_HASH_SM3_256] = "sm3",
|
||||
[PKEY_HASH_STREEBOG_256] = "md_gost12_256",
|
||||
[PKEY_HASH_STREEBOG_512] = "md_gost12_512",
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user