pub struct LightSaberParams {
pub n: usize,
pub q: u16,
pub p: u16,
pub l: usize,
pub t: u16,
pub eq: usize,
pub ep: usize,
pub et: usize,
pub public_key_size: usize,
pub secret_key_size: usize,
pub ciphertext_size: usize,
pub shared_secret_size: usize,
}Expand description
Structure containing LightSABER parameters
Fields§
§n: usizePolynomial degree
q: u16Modulus
p: u16Encoding modulus
l: usizeNumber of polynomials (dimension)
t: u16Modulus for rounding
eq: usizeBits for compression of A
ep: usizeBits for compression of B
et: usizeBits for compression of s
public_key_size: usizePublic key size in bytes
secret_key_size: usizeSecret key size in bytes
ciphertext_size: usizeCiphertext size in bytes
Shared secret size in bytes
Auto Trait Implementations§
impl Freeze for LightSaberParams
impl RefUnwindSafe for LightSaberParams
impl Send for LightSaberParams
impl Sync for LightSaberParams
impl Unpin for LightSaberParams
impl UnwindSafe for LightSaberParams
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