[gnutls-devel] GnuTLS | prf: add function to retrieve early keying material (!894)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Apr 15 13:35:59 CEST 2019




Daiki Ueno commented on a discussion on lib/handshake.c: https://gitlab.com/gnutls/gnutls/merge_requests/894#note_160819254

>  			_mbuffer_xfree(&bufel);
>  			return ret;
>  		}
> +		/* If we are sending a PSK, generate early secrets here.
> +		 * This cannot be done in pre_shared_key.c, because it
> +		 * relies on transcript hash of a Client Hello. */
> +		if (type == GNUTLS_HANDSHAKE_CLIENT_HELLO &&

The problem is that the client hasn't decided the version yet at this point and `security_parameters.pversion` is set to TLS 1.2.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/894#note_160819254
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/20190415/30c15b3e/attachment.html>


More information about the Gnutls-devel mailing list