[gnutls-devel] GnuTLS | Make TPM2 support self-contained (!1946)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Apr 10 12:30:21 CEST 2025




David Dudas commented on a discussion on lib/tpm2/callbacks/ecdh/ecdh_callbacks.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1946#note_2444540420

 > +	gnutls_datum_t shared = { 0 };
 > +	int ret;
 > +
 > +	ret = gnutls_privkey_init(&privkey);
 > +	if (ret < 0)
 > +		return TSS2_ESYS_RC_GENERAL_FAILURE;
 > +
 > +	ret = gnutls_privkey_generate(privkey, GNUTLS_PK_EC, 256, 0);
 > +	if (ret < 0)
 > +		goto fail;
 > +
 > +	ret = gnutls_pubkey_init(&peerkey);
 > +	if (ret < 0)
 > +		goto fail;
 > +
 > +	ret = gnutls_pubkey_import_ecc_raw(peerkey, GNUTLS_ECC_CURVE_SECP256R1,

You are right, thanks for pointing this out.  
I've created a converter but only mapped the TPM2_ECC_NIST_P* curves.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1946#note_2444540420
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/20250410/b6e0105d/attachment-0001.html>


More information about the Gnutls-devel mailing list