Crate rust_elgamal

Source

Structs§

Ciphertext
An ElGamal ciphertext.
CompressedRistretto
A Ristretto point, in compressed wire format.
DecryptionKey
An ElGamal decryption key (also called a private key in other implementations).
EncryptionKey
An ElGamal encryption key (also called a public key in other implementations). To create a new encryption key, see DecryptionKey.
RistrettoPoint
A RistrettoPoint represents a point in the Ristretto group for Curve25519. Ristretto, a variant of Decaf, constructs a prime-order group as a quotient group of a subgroup of (the Edwards form of) Curve25519.
Scalar
The Scalar struct holds an integer \(s < 2^{255} \) which represents an element of \(\mathbb Z / \ell\).

Constants§

GENERATOR_POINT
The group generator as a single point. If you’re trying to create a scalar multiple of the generator, you probably want GENERATOR_TABLE instead.
GENERATOR_POINT_COMPRESSED
The group generator as a single point, compressed for transit. If you’re trying to create a scalar multiple of the generator, you probably want GENERATOR_TABLE instead.
GENERATOR_TABLE
The group generator as a table of precomputed multiples. This is the most efficient way to produce a scalar multiple of the generator.

Traits§

Identity
Trait for getting the identity element of a point type.
IsIdentity
Trait for testing if a curve point is equivalent to the identity point.
MultiscalarMul
A trait for constant-time multiscalar multiplication without precomputation.