[gnutls-devel] GnuTLS | Update liboqs version requirement to 0.11.0 to support final version of ML-KEM (!1883)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Oct 10 19:51:29 CEST 2024
Hubert Kario (@mention me if you need reply) commented on a discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1883#note_2153218521
> +
> + case GNUTLS_PK_MLKEM768:
> + case GNUTLS_PK_EXP_KYBER768: {
> + gnutls_datum_t key;
> +
> + if (KYBER768_CIPHERTEXT_SIZE > buffer->length)
> + return gnutls_assert_val(
> + GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER);
> + _gnutls_buffer_pop_datum(buffer, &data,
> + KYBER768_CIPHERTEXT_SIZE);
> +
> + ret = _gnutls_pk_decaps(
> + group->pk, &key, &data,
> + &session->key.kshare.kem_params.raw_priv);
> + if (ret < 0)
> + return gnutls_assert_val(ret);
And I think the same issue exists with encapsulation: it should also return an illegal_parameter
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1883#note_2153218521
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/20241010/9ac80132/attachment-0001.html>
More information about the Gnutls-devel
mailing list