File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ static void hmac_upcall(int ret,
11
11
returncode_t libtock_hmac_simple (libtock_hmac_algorithm_t hmac_type ,
12
12
uint8_t * key_buffer , uint32_t key_length ,
13
13
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 ,
15
15
libtock_hmac_callback_hmac cb ) {
16
16
17
17
returncode_t ret ;
@@ -25,7 +25,7 @@ returncode_t libtock_hmac_simple(libtock_hmac_algorithm_t hmac_type,
25
25
ret = libtock_hmac_set_readonly_allow_data_buffer (input_buffer , input_length );
26
26
if (ret != RETURNCODE_SUCCESS ) return ret ;
27
27
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 );
29
29
if (ret != RETURNCODE_SUCCESS ) return ret ;
30
30
31
31
ret = libtock_hmac_set_upcall (hmac_upcall , cb );
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ typedef enum {
27
27
returncode_t libtock_hmac_simple (libtock_hmac_algorithm_t hmac_type ,
28
28
uint8_t * key_buffer , uint32_t key_length ,
29
29
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 ,
31
31
libtock_hmac_callback_hmac cb );
32
32
33
33
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments