summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJonathan Protzenko <protz@microsoft.com>2023-05-11 21:23:52 (GMT)
committerGitHub <noreply@github.com>2023-05-11 21:23:52 (GMT)
commit7d7dd4cd70ed997ed7c3cda867c4e7b1ab02b205 (patch)
tree7b3c764628c511fea4a1cf37991b546cb2127c48 /Modules
parent0449ffe3a4ddf03367a5ee3d943c89f442b7b407 (diff)
downloadcpython-7d7dd4cd70ed997ed7c3cda867c4e7b1ab02b205.zip
cpython-7d7dd4cd70ed997ed7c3cda867c4e7b1ab02b205.tar.gz
cpython-7d7dd4cd70ed997ed7c3cda867c4e7b1ab02b205.tar.bz2
gh-99108: Refresh HACL* from upstream (#104401)
Refresh HACL* from upstream and add a SHA3 test hashing over 4GiB of data.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hacl/Hacl_Hash_SHA3.c2
-rwxr-xr-xModules/_hacl/refresh.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_hacl/Hacl_Hash_SHA3.c b/Modules/_hacl/Hacl_Hash_SHA3.c
index 100afe7..58eb436 100644
--- a/Modules/_hacl/Hacl_Hash_SHA3.c
+++ b/Modules/_hacl/Hacl_Hash_SHA3.c
@@ -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;
}
diff --git a/Modules/_hacl/refresh.sh b/Modules/_hacl/refresh.sh
index 220ebbe..d2ba05f 100755
--- a/Modules/_hacl/refresh.sh
+++ b/Modules/_hacl/refresh.sh
@@ -22,7 +22,7 @@ fi
# Update this when updating to a new version after verifying that the changes
# the update brings in are good.
-expected_hacl_star_rev=363eae2c2eb60e46f182ddd4bd1cd3f1d00b35c9
+expected_hacl_star_rev=b6903a3e6458000730c3d83174d4b08d6d3e2ece
hacl_dir="$(realpath "$1")"
cd "$(dirname "$0")"