pub struct Parameters {
pub n: usize,
pub q: i64,
pub k: usize,
pub omega: i64,
pub f: Polynomial<i64>,
}Expand description
Default parameters for module-LWE
Fields§
§n: usizeDegree of the polynomials
q: i64Ciphertext modulus
k: usizeModule rank
omega: i642n-th root of unity
f: Polynomial<i64>Polynomial modulus
Trait Implementations§
Source§impl Debug for Parameters
impl Debug for Parameters
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more