Update SM3

Safe call to sm3_compress_blocks
This commit is contained in:
Zhi Guan
2022-10-11 16:34:13 +08:00
parent 6ff290de0e
commit c6c0162c25
2 changed files with 7 additions and 6 deletions

View File

@@ -58,6 +58,7 @@ void sm3_update(SM3_CTX *ctx, const uint8_t *data, size_t datalen);
void sm3_finish(SM3_CTX *ctx, uint8_t dgst[SM3_DIGEST_SIZE]);
void sm3_digest(const uint8_t *data, size_t datalen, uint8_t dgst[SM3_DIGEST_SIZE]);
void sm3_compress_blocks(uint32_t digest[8], const uint8_t *data, size_t blocks);
typedef struct {
SM3_CTX sm3_ctx;