[gnutls-devel] GnuTLS | Add support for loading Ed25519 keys from PKCS#11 and using them (!1200)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Mar 10 11:08:23 CET 2020




Dmitry Baryshkov commented on a discussion on lib/pkcs11_write.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1200#note_302323937

>  		(*a_val)++;
>  
> +		ret = _gnutls_x509_encode_string(ASN1_ETYPE_OCTET_STRING,
> +						 pubkey->params.raw_pub.data,
> +						 pubkey->params.raw_pub.size,
> +						 &ecpoint);
> +		if (ret < 0) {
> +			gnutls_assert();
> +			return ret;
> +		}
> +
>  		a[*a_val].type = CKA_EC_POINT;
> -		a[*a_val].value = pubkey->params.raw_pub.data;
> -		a[*a_val].value_len = pubkey->params.raw_pub.size;
> +		a[*a_val].value = ecpoint.data;
> +		a[*a_val].value_len = ecpoint.size;

I have tried looking into several other PKCS#11 implementations. Neither of YubiHSM2 PKCS11, OpenSC, NSS support Edwards keys for now. I'd suggest dropping a letter to authors of respective PKCS#11 spec for their comments.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1200#note_302323937
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/20200310/9bce39fd/attachment-0001.html>


More information about the Gnutls-devel mailing list