[gnutls-devel] GnuTLS | Implement new requirements for GOST PublicKeyParameters (!1070)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Sep 25 21:05:51 CEST 2019




Dmitry Eremin-Solenikov commented on a discussion on lib/x509/key_encode.c: https://gitlab.com/gnutls/gnutls/merge_requests/1070#note_222164783

> +		 (params->curve == GNUTLS_ECC_CURVE_GOST256TEST ||
> +		  params->curve == GNUTLS_ECC_CURVE_GOST256CPA ||
> +		  params->curve == GNUTLS_ECC_CURVE_GOST256CPB ||
> +		  params->curve == GNUTLS_ECC_CURVE_GOST256CPC ||
> +		  params->curve == GNUTLS_ECC_CURVE_GOST256CPXA ||
> +		  params->curve == GNUTLS_ECC_CURVE_GOST256CPXB))
>  		oid = HASH_OID_STREEBOG_256;
> -	else if (params->algo == GNUTLS_PK_GOST_12_512)
> -		oid = HASH_OID_STREEBOG_512;
> -	else {
> -		gnutls_assert();
> -		result = GNUTLS_E_INVALID_REQUEST;
> -		goto cleanup;
> -	}
> +	else
> +		oid = NULL;

The digest has 1:1 correspondence with pk algorithm. So historically it was a duplicate information. Now it is getting removed.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1070#note_222164783
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/20190925/635b239c/attachment.html>


More information about the Gnutls-devel mailing list