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: usize
Number of elements in the ring
n_bar: usize
Number of rows in the matrix
log_q: usize
The log of the modulus
q: usize
The modulus
extracted_bits: usize
The number of bits to extract when packing/unpacking encoding/decoding
stripe_step: usize
The number of steps for striping
bytes_seed_a: usize
The number of bytes in the seed for generating the matrix A
bytes_pk_hash: usize
The number of bytes in the public key hash
cdf_table: &'static [u16]
The CDF sampling table
claimed_nist_level: usize
The claimed NIST level
The byte length of the shared secret
message_length: usize
The byte length of an encrypted message
salt_length: usize
The byte length of the salt
encryption_key_length: usize
The byte length of the encryption key
decryption_key_length: usize
The byte length of the decryption key
ciphertext_length: usize
The 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