Skip to content

Commit 7224330

Browse files
committed
HMAC: fix signature
1 parent ea02fea commit 7224330

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ssl_crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ int wolfSSL_HMAC_cleanup(WOLFSSL_HMAC_CTX* ctx)
19661966
* @return NULL on failure.
19671967
*/
19681968
unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md, const void* key,
1969-
int key_len, const unsigned char* data, int len, unsigned char* md,
1969+
int key_len, const unsigned char* data, size_t len, unsigned char* md,
19701970
unsigned int* md_len)
19711971
{
19721972
unsigned char* ret = NULL;

wolfssl/openssl/hmac.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
WOLFSSL_API unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md,
4747
const void* key, int key_len,
48-
const unsigned char* d, int n, unsigned char* md,
48+
const unsigned char* d, size_t n, unsigned char* md,
4949
unsigned int* md_len);
5050

5151
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
6969

7070
typedef struct WOLFSSL_HMAC_CTX HMAC_CTX;
7171

72-
#define HMAC(a,b,c,d,e,f,g) wolfSSL_HMAC((a),(b),(c),(d),(e),(f),(g))
72+
#define HMAC wolfSSL_HMAC
7373

7474
#define HMAC_CTX_new wolfSSL_HMAC_CTX_new
7575
#define HMAC_CTX_init wolfSSL_HMAC_CTX_Init

0 commit comments

Comments
 (0)