# [−][src]Crate rust_elgamal

 util

## Structs

 Ciphertext An ElGamal ciphertext. 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_TABLE The group generator as a table of precomputed multiples. This is the most efficient way to produce a scalar multiple of the generator.