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: usize
Degree of the polynomials
q: i64
Ciphertext modulus
k: usize
Module rank
omega: i64
2n-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