Module scicrypt::cryptosystems::curve_el_gamal[][src]

Expand description

Implementation of the ElGamal cryptosystem over an elliptic curve.

Structs

ElGamal over the Ristretto-encoded Curve25519 elliptic curve. The curve is provided by the curve25519-dalek crate. ElGamal is a partially homomorphic cryptosystem.

ElGamal ciphertext containing curve points. The addition operator on the ciphertext is reflected as the curve operation on the associated plaintext.

A struct holding both a ciphertext and a reference to its associated public key, which is useful for decrypting directly using the secret key or performing homomorphic operations.