HMAC: fix signature

This commit is contained in:
Juliusz Sosinowicz 2024-06-05 13:31:07 +02:00
parent ea02fea3ef
commit 72243300bf
2 changed files with 3 additions and 3 deletions

View File

@ -1966,7 +1966,7 @@ int wolfSSL_HMAC_cleanup(WOLFSSL_HMAC_CTX* ctx)
* @return NULL on failure.
*/
unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md, const void* key,
int key_len, const unsigned char* data, int len, unsigned char* md,
int key_len, const unsigned char* data, size_t len, unsigned char* md,
unsigned int* md_len)
{
unsigned char* ret = NULL;

View File

@ -45,7 +45,7 @@
WOLFSSL_API unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md,
const void* key, int key_len,
const unsigned char* d, int n, unsigned char* md,
const unsigned char* d, size_t n, unsigned char* md,
unsigned int* md_len);
WOLFSSL_API WOLFSSL_HMAC_CTX* wolfSSL_HMAC_CTX_new(void);
@ -69,7 +69,7 @@ WOLFSSL_API const WOLFSSL_EVP_MD *wolfSSL_HMAC_CTX_get_md(const WOLFSSL_HMAC_CTX
typedef struct WOLFSSL_HMAC_CTX HMAC_CTX;
#define HMAC(a,b,c,d,e,f,g) wolfSSL_HMAC((a),(b),(c),(d),(e),(f),(g))
#define HMAC wolfSSL_HMAC
#define HMAC_CTX_new wolfSSL_HMAC_CTX_new
#define HMAC_CTX_init wolfSSL_HMAC_CTX_Init