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 randomizer r
  • c1 is the result of multiplying the target public encryption key the same randomizer r and adding the result to the message M that is to be encrypted.