[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
Tue Oct 15 05:50:06 CEST 2024




Daiki Ueno commented on a discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1883#note_2158509634

 >  			return gnutls_assert_val(
 >  				GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER);
 >  
 > -		if (curve->size * 2 + 1 != data_size)
 > +		if (curve->size * 2 + 1 > buffer->length)
 >  			return gnutls_assert_val(
 >  				GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER);
 > +		_gnutls_buffer_pop_datum(buffer, &data, curve->size * 2 + 1);
 >  
 >  		/* read the server's public key */
 > -		ret = _gnutls_ecc_ansi_x962_import(data, data_size,
 > +		ret = _gnutls_ecc_ansi_x962_import(data.data, data.size,

Not sure what kind of public key validation you mean, but:
- `_gnutls_ecc_ansi_x962_import` checks if the point is in the uncompressed format
- `_gnutls_pk_derive` (the function calculates a shared secret) performs the SP800-56A full public key validation

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1883#note_2158509634
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/20241015/12ab519f/attachment-0001.html>


More information about the Gnutls-devel mailing list