Elliptic Curve Diffie-Hellman (Ephemeral) Support.
This module contains a generic ECDH implementation which is usable with
any elliptic curve which implements the
ProjectiveArithmetic trait (presently
Have each participant generate an
EphemeralSecret value, compute the
PublicKey'] for that value, exchange public keys, then each participant uses their [EphemeralSecret
] and the other participant's [PublicKey
] to compute a [SharedSecret`] value.
Ephemeral Diffie-Hellman exchanges are unauthenticated and without a further authentication step are trivially vulnerable to man-in-the-middle attacks!
These exchanges should be performed in the context of a protocol which takes further steps to authenticate the peers in a key exchange.
Ephemeral Diffie-Hellman Secret.
Shared secret value computed via ECDH key agreement.
Elliptic Curve Diffie-Hellman public keys.