[PATCH] kdf: Fix memory cost overflow in Argon2 KDF
Werner Koch
wk at gnupg.org
Tue Dec 10 18:01:53 CET 2024
On Tue, 10 Dec 2024 13:53, Milan Broz said:
> + if (1024ULL * memory_blocks > SIZE_MAX)
I am not sure whether unsigned long long is available on all platforms
supported by Libgcrypt. Using u64 is probably a better way. See
src/types.h
Salam-Shalom,
Werner
--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20241210/e330ffdb/attachment-0001.sig>
More information about the Gcrypt-devel
mailing list