Update kdf_standard_enc.h

This commit is contained in:
GGSuchao
2017-06-25 00:30:28 +08:00
parent 9377f9ad5d
commit 1ab9af87ae

View File

@@ -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))