crypto / org.apache.tuweni.crypto.sodium / DiffieHelman

DiffieHelman

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

Types

KeyPair

class KeyPair

A Diffie-Helman key pair.

PublicKey

class PublicKey

A Diffie-Helman public key.

Secret

class Secret : Destroyable

A Diffie-Helman shared secret.

SecretKey

class SecretKey : Destroyable

A Diffie-Helman secret key.

Constructors

<init>

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.