Skip to content

Commit 491b922

Browse files
committed
fix warnings
1 parent b1f9463 commit 491b922

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Modules/hmacmodule.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,13 @@ _hacl_hmac_state_free(HACL_HMAC_state *state)
460460
*/
461461
static int
462462
_hacl_hmac_state_update_once(HACL_HMAC_state *state,
463-
uint8_t *buf, Py_ssize_t len)
463+
uint8_t *buf, uint32_t len)
464464
{
465-
assert(len >= 0);
466-
Py_CHECK_HACL_UINT32_T_LENGTH(len);
467465
#ifndef NDEBUG
468-
hacl_errno_t code = Hacl_Streaming_HMAC_update(state, buf, (uint32_t)len);
466+
hacl_errno_t code = Hacl_Streaming_HMAC_update(state, buf, len);
469467
return _hacl_convert_errno(code);
470468
#else
471-
(void)Hacl_Streaming_HMAC_update(state, buf, (uint32_t)len);
469+
(void)Hacl_Streaming_HMAC_update(state, buf, len);
472470
return 0;
473471
#endif
474472
}

0 commit comments

Comments
 (0)