mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 07:23:56 +08:00
add CBC-MAC and GM OTP, not tested
This commit is contained in:
@@ -64,8 +64,7 @@
|
||||
x4 = S32(x4); \
|
||||
x4 = x0 ^ L32(x4)
|
||||
|
||||
|
||||
void sms4_encrypt(sms4_key_t *key, const unsigned char *in, unsigned char *out)
|
||||
void sms4_encrypt(const unsigned char *in, unsigned char *out, const sms4_key_t *key)
|
||||
{
|
||||
uint32_t *rk = key->rk;
|
||||
uint32_t x0, x1, x2, x3, x4;
|
||||
|
||||
Reference in New Issue
Block a user