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

Configure Feed

Select the types of activity you want to include in your feed.

crypto: sm3 - Remove sm3_zero_message_hash and SM3_T[1-2]

Remove these, since they are unused.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260321040935.410034-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

-13
-8
crypto/sm3_generic.c
··· 14 14 #include <linux/kernel.h> 15 15 #include <linux/module.h> 16 16 17 - const u8 sm3_zero_message_hash[SM3_DIGEST_SIZE] = { 18 - 0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F, 19 - 0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F, 20 - 0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74, 21 - 0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B 22 - }; 23 - EXPORT_SYMBOL_GPL(sm3_zero_message_hash); 24 - 25 17 static int crypto_sm3_update(struct shash_desc *desc, const u8 *data, 26 18 unsigned int len) 27 19 {
-5
include/crypto/sm3.h
··· 16 16 #define SM3_BLOCK_SIZE 64 17 17 #define SM3_STATE_SIZE 40 18 18 19 - #define SM3_T1 0x79CC4519 20 - #define SM3_T2 0x7A879D8A 21 - 22 19 #define SM3_IVA 0x7380166f 23 20 #define SM3_IVB 0x4914b2b9 24 21 #define SM3_IVC 0x172442d7 ··· 24 27 #define SM3_IVF 0x163138aa 25 28 #define SM3_IVG 0xe38dee4d 26 29 #define SM3_IVH 0xb0fb0e4e 27 - 28 - extern const u8 sm3_zero_message_hash[SM3_DIGEST_SIZE]; 29 30 30 31 struct sm3_state { 31 32 u32 state[SM3_DIGEST_SIZE / 4];