Expand description
Diffie-Hellman over ristretto255 RFC 9496
Structs§
- DHPrivate
Key - A ristretto255 scalar in $\mathbb{Z}_\ell$.
- DHPublic
Key - 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.