pub enum KyberVariant {
Kyber512,
Kyber768,
Kyber1024,
}Expand description
Kyber parameter set
Variants§
Kyber512
Kyber-512 (Category 1)
Kyber768
Kyber-768 (Category 3) - Recommended
Kyber1024
Kyber-1024 (Category 5)
Implementations§
Source§impl KyberVariant
impl KyberVariant
Sourcepub fn public_key_size(&self) -> usize
pub fn public_key_size(&self) -> usize
Get public key size in bytes
Sourcepub fn secret_key_size(&self) -> usize
pub fn secret_key_size(&self) -> usize
Get secret key size in bytes
Sourcepub fn ciphertext_size(&self) -> usize
pub fn ciphertext_size(&self) -> usize
Get ciphertext size in bytes
Get shared secret size
Trait Implementations§
Source§impl Clone for KyberVariant
impl Clone for KyberVariant
Source§fn clone(&self) -> KyberVariant
fn clone(&self) -> KyberVariant
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 KyberVariant
impl Debug for KyberVariant
Source§impl PartialEq for KyberVariant
impl PartialEq for KyberVariant
impl Copy for KyberVariant
impl StructuralPartialEq for KyberVariant
Auto Trait Implementations§
impl Freeze for KyberVariant
impl RefUnwindSafe for KyberVariant
impl Send for KyberVariant
impl Sync for KyberVariant
impl Unpin for KyberVariant
impl UnwindSafe for KyberVariant
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