mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
Update kdf_standard_enc.h
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include <string.h>
|
||||
#include "sm2_standard_enc.h"
|
||||
|
||||
|
||||
#define SM3_len 256
|
||||
@@ -14,6 +13,10 @@
|
||||
#define SM3_IVG 0xe38dee4d
|
||||
#define SM3_IVH 0xb0fb0e4e
|
||||
|
||||
#define ECC_WORDSIZE 8
|
||||
#define SM2_NUMBITS 256
|
||||
#define SM2_NUMWORD (SM2_NUMBITS/ECC_WORDSIZE) //32
|
||||
|
||||
|
||||
/* Various logical functions */
|
||||
#define SM3_p1(x) (x ^ SM3_rotl32(x, 15) ^ SM3_rotl32(x, 23))
|
||||
|
||||
Reference in New Issue
Block a user