[gnutls-devel] GnuTLS | WIP: GOST key exchange support (!1097)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Nov 3 15:52:14 CET 2019




Dmitry Eremin-Solenikov commented on a discussion on lib/vko.c: https://gitlab.com/gnutls/gnutls/merge_requests/1097#note_239306736

> +	if (gnutls_oid_to_gost_paramset(oid) != priv->gost_params) {
> +		gnutls_assert();
> +		ret = GNUTLS_E_ASN1_DER_ERROR;
> +		goto cleanup;
> +	}
> +
> +	ret = _gnutls_x509_read_value(kx, "transportParameters.ukm", &ukm2);
> +	if (ret < 0) {
> +		gnutls_assert();
> +		goto cleanup;
> +	}
> +
> +	if (ukm2.size != UKM_LEN || memcmp(ukm2.data, ukm->data, UKM_LEN) != 0) {
> +		gnutls_assert();
> +		_gnutls_free_datum(&ukm2);
> +		ret = GNUTLS_E_ASN1_DER_ERROR;

Changed to `GNUTLS_E_DECRYPTION_FAILED`. It seems to suit better here.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1097#note_239306736
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/20191103/6c4573bb/attachment.html>


More information about the Gnutls-devel mailing list