[gnutls-devel] GnuTLS | WIP: Add support for CNT_IMIT TLS 1.2 GOST cipher suite (!920)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Jul 17 18:56:53 CEST 2019




Dmitry Eremin-Solenikov commented on a discussion on lib/auth/vko_gost.c: https://gitlab.com/gnutls/gnutls/merge_requests/920#note_192923153

> +	i += len;
> +
> +	cek.data = &data[i];
> +	cek.size = ret;
> +
> +	DECR_LEN(data_size, ret);
> +
> +	if (data_size != 0)
> +		return gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET_LENGTH);
> +
> +	ret = calc_ukm(session, &ukm);
> +	if (ret < 0)
> +		return gnutls_assert_val(ret);
> +
> +	if (!privkey || privkey->type != GNUTLS_PRIVKEY_X509) {
> +		gnutls_assert();

We have to do a VKO operation (basically `priv * pub` operation). I can restructure the code if you suggest a way to abstract that operation.
For now I have to call `_gnutls_pk_derive_nonce()` internally.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/920#note_192923153
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/20190717/433915ce/attachment-0001.html>


More information about the Gnutls-devel mailing list