mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-06 11:53:39 +08:00
Remove sha256_hmac
This commit is contained in:
@@ -97,18 +97,6 @@ void sha512_224_init(SHA512_CTX *ctx);
|
||||
void sha512_224_finish(SHA512_CTX *ctx, uint8_t dgst[SHA224_DIGEST_SIZE]);
|
||||
|
||||
|
||||
#define SHA256_HMAC_SIZE (SHA256_DIGEST_SIZE)
|
||||
|
||||
typedef struct {
|
||||
SHA256_CTX sha256_ctx;
|
||||
uint8_t key[SHA256_BLOCK_SIZE];
|
||||
} SHA256_HMAC_CTX;
|
||||
|
||||
void sha256_hmac_init(SHA256_HMAC_CTX *ctx, const uint8_t *key, size_t keylen);
|
||||
void sha256_hmac_update(SHA256_HMAC_CTX *ctx, const uint8_t *data, size_t datalen);
|
||||
void sha256_hmac_finish(SHA256_HMAC_CTX *ctx, uint8_t mac[SHA256_HMAC_SIZE]);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -18,7 +18,7 @@ extern "C" {
|
||||
|
||||
|
||||
#define GMSSL_VERSION_NUM 30300
|
||||
#define GMSSL_VERSION_STR "GmSSL 3.3.0-dev.1177"
|
||||
#define GMSSL_VERSION_STR "GmSSL 3.3.0-dev.1178"
|
||||
|
||||
int gmssl_version_num(void);
|
||||
const char *gmssl_version_str(void);
|
||||
|
||||
Reference in New Issue
Block a user