diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-21 14:29:17 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-21 14:29:17 +0300 |
commit | 46ea86584a9787c8b9dc3983cf23d9b5b93b5841 (patch) | |
tree | fbaf3793ae2170f7982f08a62c028a23cd9afedd /libs/libsodium/src/crypto_hash/sha512 | |
parent | 82e75be329dd0f30c0281ef9c3c08488b89d109f (diff) |
fixes #4477 (libsodium: update to 1.0.20)
Diffstat (limited to 'libs/libsodium/src/crypto_hash/sha512')
-rw-r--r-- | libs/libsodium/src/crypto_hash/sha512/cp/hash_sha512_cp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/libsodium/src/crypto_hash/sha512/cp/hash_sha512_cp.c b/libs/libsodium/src/crypto_hash/sha512/cp/hash_sha512_cp.c index 4f342afdb6..8207a440ba 100644 --- a/libs/libsodium/src/crypto_hash/sha512/cp/hash_sha512_cp.c +++ b/libs/libsodium/src/crypto_hash/sha512/cp/hash_sha512_cp.c @@ -175,6 +175,7 @@ SHA512_Pad(crypto_hash_sha512_state *state, uint64_t tmp64[80 + 8]) unsigned int r;
unsigned int i;
+ ACQUIRE_FENCE;
r = (unsigned int) ((state->count[1] >> 3) & 0x7f);
if (r < 112) {
for (i = 0; i < 112 - r; i++) {
@@ -218,6 +219,7 @@ crypto_hash_sha512_update(crypto_hash_sha512_state *state, if (inlen <= 0U) {
return 0;
}
+ ACQUIRE_FENCE;
r = (unsigned long long) ((state->count[1] >> 3) & 0x7f);
bitlen[1] = ((uint64_t) inlen) << 3;
|