[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
Thu Jan 23 08:58:27 CET 2025
Daiki Ueno commented on a discussion on lib/nettle/pk.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1925#note_2311244682
> {
> - 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);
Thank you for the suggestion; I thought that the applications were recommended to use the `lc_seeded_rng`. I added some boilerplate implementation using GnuTLS RNG [here](https://gitlab.com/gnutls/gnutls/-/merge_requests/1925/diffs?commit_id=8cfbb0b30990b92e84e190b9ad7348f466f0983a#a12c2516cc2f8f9aefdb4bc2ef880b780cefa74d_131_134). Could you check?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1925#note_2311244682
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/20250123/9e51b1ee/attachment-0001.html>
More information about the Gnutls-devel
mailing list