Expand description
The ElGamal cryptosystem, as used in PEP
Modules§
- rsk
- Utilities for Triple::rsk
- serde_
impls 🔒
Macros§
- osrng 🔒
Structs§
- Private
Key - Private key - load using
PrivateKey::from_hexor generate withPrivateKey::random. - Public
Key - Public key - obtained using
PublicKey::from_hexorPrivateKey::public_key. - Shared
Secret - Shared secret created by combining a
PrivateKeywith aPublicKey, which, although it is basically the encoding of aRistrettoPoint, is given a separate interface to limit its usage. - Triple
- ElGamal ciphertext - the result of
PublicKey::encrypt.
Traits§
- Encoding
- Adds encoding and decoding methods to
PrivateKey,PublicKey,Triple,ScalarandRistrettoPointwhich can all be represented as[u8; N]s for someN.
Functions§
- random_
point - Returns a random Ristretto point, mainly for examples.
- random_
scalar - Returns a random scalar, mainly for examples.