Type Alias elgamal::Ciphertext
source · pub type Ciphertext = (P256Point, P256Point);
Expand description
An Elgamal encryption of a message M
under public key PK
is a pair of group elements (c0, c1)
where
c0
is the group generator multiplied by a randomizerr
c1
is the result of multiplying the target public encryption key the same randomizerr
and adding the result to the messageM
that is to be encrypted.