We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f9463 commit 491b922Copy full SHA for 491b922
1 file changed
Modules/hmacmodule.c
@@ -460,15 +460,13 @@ _hacl_hmac_state_free(HACL_HMAC_state *state)
460
*/
461
static int
462
_hacl_hmac_state_update_once(HACL_HMAC_state *state,
463
- uint8_t *buf, Py_ssize_t len)
+ uint8_t *buf, uint32_t len)
464
{
465
- assert(len >= 0);
466
- Py_CHECK_HACL_UINT32_T_LENGTH(len);
467
#ifndef NDEBUG
468
- hacl_errno_t code = Hacl_Streaming_HMAC_update(state, buf, (uint32_t)len);
+ hacl_errno_t code = Hacl_Streaming_HMAC_update(state, buf, len);
469
return _hacl_convert_errno(code);
470
#else
471
- (void)Hacl_Streaming_HMAC_update(state, buf, (uint32_t)len);
+ (void)Hacl_Streaming_HMAC_update(state, buf, len);
472
return 0;
473
#endif
474
}
0 commit comments