Function elgamal::scalar_mul_ciphertext
source · pub fn scalar_mul_ciphertext(
scalar: P256Scalar,
ctx: Ciphertext
) -> Result<Ciphertext, Error>
Expand description
Since addition as described above is defined via component-wise application of the group operation, repeated addition of a ciphertext with itself can be expressed via componentwise scalar multiplication of the ciphertext.