#include <linux/kernel.h>
#include <linux/module.h>
-const u8 sm3_zero_message_hash[SM3_DIGEST_SIZE] = {
- 0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F,
- 0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F,
- 0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74,
- 0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B
-};
-EXPORT_SYMBOL_GPL(sm3_zero_message_hash);
-
static int crypto_sm3_update(struct shash_desc *desc, const u8 *data,
unsigned int len)
{
#define SM3_BLOCK_SIZE 64
#define SM3_STATE_SIZE 40
-#define SM3_T1 0x79CC4519
-#define SM3_T2 0x7A879D8A
-
#define SM3_IVA 0x7380166f
#define SM3_IVB 0x4914b2b9
#define SM3_IVC 0x172442d7
#define SM3_IVG 0xe38dee4d
#define SM3_IVH 0xb0fb0e4e
-extern const u8 sm3_zero_message_hash[SM3_DIGEST_SIZE];
-
struct sm3_state {
u32 state[SM3_DIGEST_SIZE / 4];
u64 count;