mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Remove warning of hashes
This commit is contained in:
@@ -32,7 +32,7 @@ typedef struct {
|
||||
uint32_t state[SHA224_STATE_WORDS];
|
||||
uint64_t nblocks;
|
||||
uint8_t block[SHA224_BLOCK_SIZE];
|
||||
int num;
|
||||
size_t num;
|
||||
} SHA224_CTX;
|
||||
|
||||
void sha224_init(SHA224_CTX *ctx);
|
||||
@@ -50,7 +50,7 @@ typedef struct {
|
||||
uint32_t state[SHA256_STATE_WORDS];
|
||||
uint64_t nblocks;
|
||||
uint8_t block[SHA256_BLOCK_SIZE];
|
||||
int num;
|
||||
size_t num;
|
||||
} SHA256_CTX;
|
||||
|
||||
void sha256_init(SHA256_CTX *ctx);
|
||||
@@ -68,7 +68,7 @@ typedef struct {
|
||||
uint64_t state[SHA384_STATE_WORDS];
|
||||
uint64_t nblocks;
|
||||
uint8_t block[SHA384_BLOCK_SIZE];
|
||||
int num;
|
||||
size_t num;
|
||||
} SHA384_CTX;
|
||||
|
||||
void sha384_init(SHA384_CTX *ctx);
|
||||
@@ -86,7 +86,7 @@ typedef struct {
|
||||
uint64_t state[SHA512_STATE_WORDS];
|
||||
uint64_t nblocks;
|
||||
uint8_t block[SHA512_BLOCK_SIZE];
|
||||
int num;
|
||||
size_t num;
|
||||
} SHA512_CTX;
|
||||
|
||||
void sha512_init(SHA512_CTX *ctx);
|
||||
|
||||
Reference in New Issue
Block a user