pub struct SaberParams {
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 SABER 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 SaberParams
impl RefUnwindSafe for SaberParams
impl Send for SaberParams
impl Sync for SaberParams
impl Unpin for SaberParams
impl UnwindSafe for SaberParams
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