ECDH in gcrypt

Stef Bon stefbon at
Fri Feb 9 19:24:28 CET 2018

Hi Michael,

you cannot call a function "do dh" or "do ecdh" with gcrypt.

What you can do with gcrypt is the generation of ephemeral key pair
(client) and write the public key as string to a buffer,
and create the exchange hash, and verify the signature received from the server.

The creation of the shared secret is specific to the algorithm used.
Sometimes an extra library is required (with
curve25519-sha256 at for example).



More information about the Gcrypt-devel mailing list