Update kdf_standard_exch.h

This commit is contained in:
GGSuchao
2017-06-25 00:38:05 +08:00
parent 1ab9af87ae
commit 6dcf69a470

View File

@@ -1,5 +1,4 @@
#include <string.h>
#include "sm2_standard_exch.h"
#define SM3_len 256
@@ -14,6 +13,10 @@
#define SM3_IVG 0xe38dee4d
#define SM3_IVH 0xb0fb0e4e
#define SM2_WORDSIZE 8
#define SM2_NUMBITS 256
#define SM2_NUMWORD (SM2_NUMBITS / SM2_WORDSIZE) //32
/* Various logical functions */
#define SM3_p1(x) (x ^ SM3_rotl32(x, 15) ^ SM3_rotl32(x, 23))