[PATCH] cipher:mldsa: Fix key generation without a seed.
Werner Koch
wk at gnupg.org
Thu Nov 26 12:14:17 CET 2026
Hi!
> sexp_extract_param returns GPG_ERR_NO_OBJ for a missing parameter
> and not GPG_ERR_NOT_FOUND, so "(genkey(dilithium3))" failed
> instead of using a random seed.
That's right GPG_ERR_NOT_FOUND can't be returned because the path args
is NULL. Applied.
> _gcry_mpih_cmp_ui reads the first limb unconditionally.
> gcry_mpi_new (0), for example, has no allocated limb space, thus
> gcry_mpi_invm (x, a, n) crashed for a=0.
Thanks for that fix as weel.
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: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20261126/945a9451/attachment.sig>
More information about the Gcrypt-devel
mailing list