[gnutls-devel] GnuTLS | DH and ECDH keys tests (!990)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon May 20 14:56:19 CEST 2019




Simo Sorce commented on a discussion on lib/dh.c: https://gitlab.com/gnutls/gnutls/merge_requests/990#note_172245476

> +#ifdef ENABLE_FIPS140
> +	if (!q) {
> +		gnutls_assert();
> +		return GNUTLS_E_DH_PRIME_UNACCEPTABLE;
> +	} else {
> +#else
> +	if (q) {
> +#endif
> +		if (_gnutls_mpi_init_scan_nz(&tmp_q, q->data, q->size)) {
> +			_gnutls_mpi_release(&tmp_p);
> +			_gnutls_mpi_release(&tmp_g);
> +			gnutls_assert();
> +			return GNUTLS_E_MPI_SCAN_FAILED;
> +		}
> +	}
> +

Which is what I did in previous rebase :-)
Inserting them in the wrong order breaks the dh-params test already, so I think we do not need additional tests here.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/990#note_172245476
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/20190520/37f9a6ef/attachment.html>


More information about the Gnutls-devel mailing list