[gnutls-devel] GnuTLS | leancrypto: support leancrypto for post-quantum algorithms (!1925)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Wed Jan 22 11:28:01 CET 2025
Stephan Mueller started a new discussion on lib/nettle/pk.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1925#note_2309447484
> {
> - mpz_t p;
> int ret;
> + enum lc_kyber_type type;
> + struct lc_kyber_sk sk;
> + struct lc_kyber_pk pk;
> + gnutls_datum_t tmp_raw_priv = { NULL, 0 };
> + gnutls_datum_t tmp_raw_pub = { NULL, 0 };
> + uint8_t *ptr;
> + size_t len;
> +
> + type = ml_kem_pk_to_lc_kyber_type(algo);
> + if (type == LC_KYBER_UNKNOWN)
> + return gnutls_assert_val(GNUTLS_E_UNKNOWN_PK_ALGORITHM);
> +
> + ret = lc_kyber_keypair(&pk, &sk, lc_seeded_rng, type);
Allow me to add one remark: the lc_seeded_rng is used here and for MLKEM enc as well as for MLDSA/SLHDSA sign. The current implementation uses its own DRNG which should be added to SP800-90A soon, but is not yet. Further it has its own seed source.
Would it make sense to replace this one with one that GnuTLS provides? I.e. add a different implementation for lc_seeded_rng that pulls from GnuTLS’ DRBG?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1925#note_2309447484
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250122/b96f692e/attachment-0001.html>
More information about the Gnutls-devel
mailing list