[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:47:38 CEST 2024
Hubert Kario (@mention me if you need reply) started a new discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1883#note_2153214532
> +
> + 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);
the decapsulation can fail, I think we should then send an alert, shouldn't we?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1883#note_2153214532
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/9d3902c0/attachment.html>
More information about the Gnutls-devel
mailing list