Hello,

Le 2021-03-20 à 14 h 42, Nicolas Mora a écrit :

I'll try and use _gnutls_dh_compute_key to see if I have an expected result with Curve25519/Curve448 keys.


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.

/Nicolas

[1] https://github.com/babelouest/rhonabwy/blob/master/src/jwe.c#L226

Attachment: OpenPGP_0xFE82139440BD22B9.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help

Reply via email to