diff options
author | Richard Levitte <levitte@openssl.org> | 2023-03-20 08:09:40 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-03-21 19:05:25 +1100 |
commit | 4b738c1ac945a3f1a985df79ff8c37a23d2f2fe0 (patch) | |
tree | 4795dbc276efd4142662d106c1d33da200f991b1 /providers | |
parent | 41c3c71382f31a5a913bd09a74295d101d837055 (diff) | |
download | openssl-4b738c1ac945a3f1a985df79ff8c37a23d2f2fe0.tar.gz |
providers/implementations/kdfs/argon2.c: Don't use UINT64_C
With less than C99 compilers, this macro isn't guaranteed to exist, and
the value passed to it is 32 bits, so explicitly ending it with 'UL' is
correct in all cases. We simply leave it to the compiler to extend it
appropriately for uint64_t.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20547)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/kdfs/argon2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/kdfs/argon2.c b/providers/implementations/kdfs/argon2.c index 768dcfe1bf..60c8fff1b8 100644 --- a/providers/implementations/kdfs/argon2.c +++ b/providers/implementations/kdfs/argon2.c @@ -307,7 +307,7 @@ static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c) static ossl_inline uint64_t mul_lower(uint64_t x, uint64_t y) { - const uint64_t m = UINT64_C(0xFFFFFFFF); + const uint64_t m = 0xFFFFFFFFUL; return (x & m) * (y & m); } |