pub trait GlweCiphertextEntity: AbstractEntity<Kind = GlweCiphertextKind> {
type KeyDistribution: KeyDistributionMarker;
fn glwe_dimension(&self) -> GlweDimension;
fn polynomial_size(&self) -> PolynomialSize;
}
Expand description
A trait implemented by types embodying a GLWE ciphertext.
A GLWE ciphertext is associated with a
KeyDistribution
type, which conveys the
distribution of the secret key it was encrypted with.
Formal Definition
GLWE ciphertexts generalize LWE ciphertexts by definition, however in this library, GLWE ciphertext entities do not generalize LWE ciphertexts, i.e., polynomial size cannot be 1.
Associated Types
The distribution of the key the ciphertext was encrypted with.
Required methods
fn glwe_dimension(&self) -> GlweDimension
fn glwe_dimension(&self) -> GlweDimension
Returns the GLWE dimension of the ciphertext.
fn polynomial_size(&self) -> PolynomialSize
fn polynomial_size(&self) -> PolynomialSize
Returns the polynomial size of the ciphertext.