Re: [PATCH] kdf: Fix memory cost overflow in Argon2 KDF

Werner Koch via Gcrypt-devel <[email protected]>
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
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

_______________________________________________
Gcrypt-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gcrypt-devel
openpgp-digital-signature.asc (application/pgp-signature, 247 B)
-----BEGIN PGP SIGNATURE-----

iIMEARYIACsWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCZ1h0AQ0cd2tAZ251cGcu
b3JnAAoJEBnMHJ4IWxB6dKcA/AlTgvgqz190sKOzc5A3XMBDjnwpevlSbhfHmSvP
PLt3AQDvy71ca9TXiDBR7mm7gl0UXrJq6ir9dXmmnBN2r/q6DA==
=zoKu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.