mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-22 05:13:56 +08:00
Update sm4.h
This commit is contained in:
@@ -71,10 +71,7 @@ void sm4_ctr32_encrypt(const SM4_KEY *key, uint8_t ctr[SM4_BLOCK_SIZE],
|
|||||||
const uint8_t *in, size_t inlen, uint8_t *out);
|
const uint8_t *in, size_t inlen, uint8_t *out);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
union {
|
|
||||||
SM4_KEY sm4_key;
|
SM4_KEY sm4_key;
|
||||||
void *handle;
|
|
||||||
};
|
|
||||||
uint8_t ctr[SM4_BLOCK_SIZE];
|
uint8_t ctr[SM4_BLOCK_SIZE];
|
||||||
uint8_t block[SM4_BLOCK_SIZE];
|
uint8_t block[SM4_BLOCK_SIZE];
|
||||||
size_t block_nbytes;
|
size_t block_nbytes;
|
||||||
|
|||||||
Reference in New Issue
Block a user