pub struct Params {
pub q: u64,
pub n: usize,
pub l: usize,
pub n_expanded: usize,
pub m: usize,
pub error_bound: i64,
}Expand description
LWE/GSW instance parameters.
Fields§
§q: u64Modulus q (must be power of 2 for gadget)
n: usizeLattice dimension n
l: usizeNumber of bits to represent q: l = log2(q)
n_expanded: usizeN = (n+1) * l - dimension of expanded gadget space
m: usizeNumber of LWE samples for public key (columns of A)
error_bound: i64Error bound B for discrete uniform error distribution [-B, B]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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