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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri May 17 14:36:25 CEST 2019




Simo Sorce commented on a discussion on lib/nettle/pk.c: https://gitlab.com/gnutls/gnutls/merge_requests/990#note_171505001

>  			goto dh_cleanup;
>  		}
>  
> +		/* if we have Q check that y ^ q mod p == 1 */
> +		if (q != NULL) {

Soooo,
the problem in using Q is that callers like the DH compute, use a structure with space for just two params (P, G), to get through the data to the lower layers.
Is it ok to change those structures to optionally host Q as well ?

If that is fine (unsure if it breaks ABI) then I can easily pass in Q in tests (and CAVS tests will be able to do the same.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/990#note_171505001
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/20190517/02f87dcc/attachment.html>


More information about the Gnutls-devel mailing list