pub struct AlgorithmParams {Show 16 fields
pub n: usize,
pub n_bar: usize,
pub log_q: usize,
pub q: usize,
pub extracted_bits: usize,
pub stripe_step: usize,
pub bytes_seed_a: usize,
pub bytes_pk_hash: usize,
pub cdf_table: &'static [u16],
pub claimed_nist_level: usize,
pub shared_secret_length: usize,
pub message_length: usize,
pub salt_length: usize,
pub encryption_key_length: usize,
pub decryption_key_length: usize,
pub ciphertext_length: usize,
}Expand description
The algorithm underlying parameters
Fields§
§n: usizeNumber of elements in the ring
n_bar: usizeNumber of rows in the matrix
log_q: usizeThe log of the modulus
q: usizeThe modulus
extracted_bits: usizeThe number of bits to extract when packing/unpacking encoding/decoding
stripe_step: usizeThe number of steps for striping
bytes_seed_a: usizeThe number of bytes in the seed for generating the matrix A
bytes_pk_hash: usizeThe number of bytes in the public key hash
cdf_table: &'static [u16]The CDF sampling table
claimed_nist_level: usizeThe claimed NIST level
The byte length of the shared secret
message_length: usizeThe byte length of an encrypted message
salt_length: usizeThe byte length of the salt
encryption_key_length: usizeThe byte length of the encryption key
decryption_key_length: usizeThe byte length of the decryption key
ciphertext_length: usizeThe byte length of the ciphertext
Trait Implementations§
Source§impl Clone for AlgorithmParams
impl Clone for AlgorithmParams
Source§fn clone(&self) -> AlgorithmParams
fn clone(&self) -> AlgorithmParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlgorithmParams
impl Debug for AlgorithmParams
impl Copy for AlgorithmParams
Auto Trait Implementations§
impl Freeze for AlgorithmParams
impl RefUnwindSafe for AlgorithmParams
impl Send for AlgorithmParams
impl Sync for AlgorithmParams
impl Unpin for AlgorithmParams
impl UnwindSafe for AlgorithmParams
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