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.

Constants§

DH_PUBLIC_KEY_LEN
DH_SEED_LEN
Uniform bytes required to derive a scalar per [RFC 9496] section 4.4.

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.