Struct cupcake::FV

source · []
pub struct FV<T> where
    T: ArithUtils<T>, 
{ pub n: usize, pub t: T, pub q: T, pub delta: T, pub stdev: f64, pub qdivtwo: T, pub flooding_stdev: f64, /* private fields */ }
Expand description

(Additive only version of) the Fan-Vercauteren homomoprhic encryption scheme.

Fields

n: usizet: Tq: Tdelta: Tstdev: f64qdivtwo: Tflooding_stdev: f64

Implementations

Construct a scheme with default parameters and plaintext modulus 256.

Construct a scheme with provided plaintext modulus.

Trait Implementations

Add a ciphertext into another.

Rerandomize a ciphertext in-place. The resulting ciphertext will decrypt to the same plaintext, while being unlinkable to the input ciphertext. Read more

Add a plaintext into a ciphertext.

Add a plaintext into a ciphertext.

Generate a fresh encryption of the zero plaintext

Use the secret key to generate a fresh encryption of zero

Generate a secret key

Generate a (pk, sk) keypair

Encrypt a given plaintext

Encrypt a given plaintext

Encrypt a given plaintext

Decrypt a ciphertext

Encrypt a given plaintext

Decrypt a ciphertext

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.