[gnutls-help] ECDH internal functions and FIPS140-2 mode
Nicolas Mora
nicolas at babelouest.org
Fri Jun 11 17:21:51 CEST 2021
Hello,
Is it possible to continue with this patch?
Le 2021-03-20 à 20 h 23, Nicolas Mora a écrit :
>
> I'm having problems implementing ecdh-es with Curve25519/Curve448.
>
> - If I use an ed25519 key pair to compute, _gnutls_dh_compute_key
> returns -55
> - If I use an x25519 key pair to compute, I can't import the key using
> gnutls_pubkey_import/gnutls_privkey_import_x509
>
> Is it possible at this time to calculate a key agreement with these curves?
>
> I have a working prototype in rhonabwy [1] that uses Nettle's functions
> curve25519_mul/curve448_mul. In this case I expect a X25519 or X448 key
> pair.
>
I was stuck with the implementation of ecdh-es with Curve25519/Curve448,
but ecdh-es with ecdsa works fine.
Thanks in advance
/Nicolas
More information about the Gnutls-help
mailing list