`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

## KeyPair |
A Diffie-Helman key pair. `class KeyPair` |

## PublicKey |
A Diffie-Helman public key. `class PublicKey` |

## Secret |
A Diffie-Helman shared secret. `class Secret : Destroyable` |

## SecretKey |
A Diffie-Helman secret key. `class SecretKey : Destroyable` |

## <init> |
Sodium provides an API to perform scalar multiplication of elliptic curve points. `DiffieHelman()` |