pub struct Kyber1024Params {
pub n: usize,
pub q: u16,
pub k: usize,
pub eta1: u8,
pub eta2: u8,
pub du: usize,
pub dv: usize,
pub public_key_size: usize,
pub secret_key_size: usize,
pub ciphertext_size: usize,
pub shared_secret_size: usize,
}Expand description
Structure containing Kyber-1024 parameters
Fields§
§n: usizePolynomial degree
q: u16Modulus
k: usizeNumber of polynomials (dimension)
eta1: u8Error distribution parameter
eta2: u8Error distribution parameter
du: usizeNumber of bits dropped for compression of public key
dv: usizeNumber of bits dropped for compression of ciphertext
public_key_size: usizeSize of public key in bytes
secret_key_size: usizeSize of secret key in bytes
ciphertext_size: usizeSize of ciphertext in bytes
Size of shared secret in bytes
Auto Trait Implementations§
impl Freeze for Kyber1024Params
impl RefUnwindSafe for Kyber1024Params
impl Send for Kyber1024Params
impl Sync for Kyber1024Params
impl Unpin for Kyber1024Params
impl UnwindSafe for Kyber1024Params
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