Skip to content

Commit 04abdc0

Browse files
committed
libtock: hmac: correct buffer arg name
1 parent ca96ee1 commit 04abdc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libtock/crypto/hmac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static void hmac_upcall(int ret,
1111
returncode_t libtock_hmac_simple(libtock_hmac_algorithm_t hmac_type,
1212
uint8_t* key_buffer, uint32_t key_length,
1313
uint8_t* input_buffer, uint32_t input_length,
14-
uint8_t* hash_buffer, uint32_t hash_length,
14+
uint8_t* hmac_buffer, uint32_t hmac_length,
1515
libtock_hmac_callback_hmac cb) {
1616

1717
returncode_t ret;
@@ -25,7 +25,7 @@ returncode_t libtock_hmac_simple(libtock_hmac_algorithm_t hmac_type,
2525
ret = libtock_hmac_set_readonly_allow_data_buffer(input_buffer, input_length);
2626
if (ret != RETURNCODE_SUCCESS) return ret;
2727

28-
ret = libtock_hmac_set_readwrite_allow_destination_buffer(hash_buffer, hash_length);
28+
ret = libtock_hmac_set_readwrite_allow_destination_buffer(hmac_buffer, hmac_length);
2929
if (ret != RETURNCODE_SUCCESS) return ret;
3030

3131
ret = libtock_hmac_set_upcall(hmac_upcall, cb);

libtock/crypto/hmac.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ typedef enum {
2727
returncode_t libtock_hmac_simple(libtock_hmac_algorithm_t hmac_type,
2828
uint8_t* key_buffer, uint32_t key_length,
2929
uint8_t* input_buffer, uint32_t input_length,
30-
uint8_t* hash_buffer, uint32_t hash_length,
30+
uint8_t* hmac_buffer, uint32_t hmac_length,
3131
libtock_hmac_callback_hmac cb);
3232

3333
#ifdef __cplusplus

0 commit comments

Comments
 (0)