Struct scicrypt::RichCiphertext [−][src]
pub struct RichCiphertext<'pk, C, PK> { /* fields omitted */ }
Expand description
Rich representation of a ciphertext that associates it with the corresponding public key. This allows for performing homomorphic operations using operator overloading, among others.
Implementations
pub fn pow(
&self,
rhs: &Integer
) -> RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>
pub fn pow(
&self,
rhs: &Integer
) -> RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>
Computes the ciphertext corresponding to the plaintext raised to a scalar power.
Computes the ciphertext corresponding to the plaintext raised to a scalar power.
Trait Implementations
impl<'pk> Add<&'_ RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>> for &RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>
impl<'pk> Add<&'_ RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>> for &RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>
type Output = RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>
type Output = RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>
The resulting type after applying the +
operator.
type Output = RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>
type Output = RichCiphertext<'pk, PaillierCiphertext, PaillierPublicKey>
The resulting type after applying the *
operator.
impl<'pk> Mul<&'_ RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>> for &RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>
impl<'pk> Mul<&'_ RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>> for &RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>
type Output = RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>
type Output = RichCiphertext<'pk, IntegerElGamalCiphertext, IntegerElGamalPublicKey>
The resulting type after applying the *
operator.
impl<'pk> Mul<&'_ RichCiphertext<'pk, RSACiphertext, RSAPublicKey>> for &RichCiphertext<'pk, RSACiphertext, RSAPublicKey>
impl<'pk> Mul<&'_ RichCiphertext<'pk, RSACiphertext, RSAPublicKey>> for &RichCiphertext<'pk, RSACiphertext, RSAPublicKey>
type Output = RichCiphertext<'pk, RSACiphertext, RSAPublicKey>
type Output = RichCiphertext<'pk, RSACiphertext, RSAPublicKey>
The resulting type after applying the *
operator.