[crypto] add zuc standard implementation

This commit is contained in:
zhaoxiaomeng
2017-06-28 14:32:25 +08:00
parent 2159d0c5bc
commit 3e07906fd4
7 changed files with 1085 additions and 5 deletions

View File

@@ -47,7 +47,7 @@
* ====================================================================
*/
#include <openssl/sms4.h>
#include <openssl/sms4_standard.h>
//rotate n bits to the left in a 32bit buffer
#define SM4_ROTL32(buf, n) (((buf)<<n)|((buf)>>(32-n)))
uint32_t SM4_CK[32] = {0x00070e15, 0x1c232a31, 0x383f464d, 0x545b6269,