Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: streebog - register Streebog in hash info for IMA

Register Streebog hash function in Hash Info arrays to let IMA use
it for its purposes.

Cc: linux-integrity@vger.kernel.org
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Vitaly Chikunov and committed by
Herbert Xu
dfdda82e fe18957e

+7
+4
crypto/hash_info.c
··· 32 32 [HASH_ALGO_TGR_160] = "tgr160", 33 33 [HASH_ALGO_TGR_192] = "tgr192", 34 34 [HASH_ALGO_SM3_256] = "sm3-256", 35 + [HASH_ALGO_STREEBOG_256] = "streebog256", 36 + [HASH_ALGO_STREEBOG_512] = "streebog512", 35 37 }; 36 38 EXPORT_SYMBOL_GPL(hash_algo_name); 37 39 ··· 56 54 [HASH_ALGO_TGR_160] = TGR160_DIGEST_SIZE, 57 55 [HASH_ALGO_TGR_192] = TGR192_DIGEST_SIZE, 58 56 [HASH_ALGO_SM3_256] = SM3256_DIGEST_SIZE, 57 + [HASH_ALGO_STREEBOG_256] = STREEBOG256_DIGEST_SIZE, 58 + [HASH_ALGO_STREEBOG_512] = STREEBOG512_DIGEST_SIZE, 59 59 }; 60 60 EXPORT_SYMBOL_GPL(hash_digest_size);
+1
include/crypto/hash_info.h
··· 15 15 16 16 #include <crypto/sha.h> 17 17 #include <crypto/md5.h> 18 + #include <crypto/streebog.h> 18 19 19 20 #include <uapi/linux/hash_info.h> 20 21
+2
include/uapi/linux/hash_info.h
··· 33 33 HASH_ALGO_TGR_160, 34 34 HASH_ALGO_TGR_192, 35 35 HASH_ALGO_SM3_256, 36 + HASH_ALGO_STREEBOG_256, 37 + HASH_ALGO_STREEBOG_512, 36 38 HASH_ALGO__LAST 37 39 }; 38 40