mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-99108: Refresh HACL* from upstream (#104401)
Refresh HACL* from upstream and add a SHA3 test hashing over 4GiB of data.
This commit is contained in:
parent
0449ffe3a4
commit
7d7dd4cd70
3 changed files with 11 additions and 2 deletions
|
@ -244,7 +244,7 @@ Hacl_Streaming_Keccak_update(Hacl_Streaming_Keccak_state *p, uint8_t *data, uint
|
|||
Hacl_Streaming_Keccak_hash_buf block_state = s.block_state;
|
||||
uint64_t total_len = s.total_len;
|
||||
Spec_Hash_Definitions_hash_alg i = block_state.fst;
|
||||
if ((uint64_t)len > (uint64_t)0xffffffffU - total_len)
|
||||
if ((uint64_t)len > (uint64_t)0xffffffffffffffffU - total_len)
|
||||
{
|
||||
return (uint32_t)1U;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue