Skip to main content

Module elgamal

Module elgamal 

Source
Expand description

Elliptic-curve ElGamal over group elements.

This module deliberately works on points as messages instead of trying to encode arbitrary byte strings into curve points. That keeps the abstraction compact and lets it directly reuse the existing ec layer.

Structsยง

Ciphertext
ElGamal ciphertext consisting of a pair $(c_1, c_2)$.
EcElGamal
Stateless EC-ElGamal helper.