Skip to main content

Module ristretto255

Module ristretto255 

Source
Expand description

Diffie-Hellman over ristretto255 RFC 9496

Structs§

DHPrivateKey
A ristretto255 scalar in $\mathbb{Z}_\ell$.
DHPublicKey
A ristretto255 group element.

Functions§

dh_shared_secret
Compute DH agreement.
generate_dh_keypair
Generate a new ristretto255 DH keypair
generate_random_scalar
Sample a scalar $x \gets^{$} \mathbb{F}_\ell$.
placeholder_public_key
A fixed group element used as a placeholder value.
random_dh_public_key
Sample a uniformly random group element.