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

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

The resulting type after applying the + operator.

Performs the + operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Homomorphic operation between two ElGamal ciphertexts.

The resulting type after applying the * operator.

The resulting type after applying the * operator.

Performs the * operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.