class DiffieHelman
(source)
Sodium provides an API to perform scalar multiplication of elliptic curve points.
This can be used as a building block to construct key exchange mechanisms, or more generally to compute a public key from a secret key.
On current libsodium versions, you generally want to use the crypto_kx API for key exchange instead.
See Also
KeyExchange
class KeyPair
A Diffie-Helman key pair. |
|
class PublicKey
A Diffie-Helman public key. |
|
class Secret : Destroyable
A Diffie-Helman shared secret. |
|
class SecretKey : Destroyable
A Diffie-Helman secret key. |
DiffieHelman()
Sodium provides an API to perform scalar multiplication of elliptic curve points. This can be used as a building block to construct key exchange mechanisms, or more generally to compute a public key from a secret key. On current libsodium versions, you generally want to use the crypto_kx API for key exchange instead. |