#[repr(u16)]pub enum KemAlgorithm {
DhKemP256 = 16,
DhKemP384 = 17,
DhKemP521 = 18,
DhKemK256 = 22,
DhKem25519 = 32,
DhKem448 = 33,
XWingDraft06 = 77,
}Expand description
KEM Modes
Variants§
DhKemP256 = 16
DH KEM on P256
DhKemP384 = 17
DH KEM on P384
DhKemP521 = 18
DH KEM on P521
DhKemK256 = 22
DH KEM on secp256k1
DhKem25519 = 32
DH KEM on x25519
DhKem448 = 33
DH KEM on x448
XWingDraft06 = 77
X-WING
Implementations§
Source§impl KemAlgorithm
impl KemAlgorithm
Sourcepub const fn private_key_len(&self) -> usize
pub const fn private_key_len(&self) -> usize
Get the length of the private key for the KEM in bytes.
Get the length of the shared secret for the KEM in bytes.
Trait Implementations§
Source§impl Clone for KemAlgorithm
impl Clone for KemAlgorithm
Source§fn clone(&self) -> KemAlgorithm
fn clone(&self) -> KemAlgorithm
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 KemAlgorithm
impl Debug for KemAlgorithm
Source§impl Display for KemAlgorithm
impl Display for KemAlgorithm
Source§impl From<KemAlgorithm> for KdfAlgorithm
impl From<KemAlgorithm> for KdfAlgorithm
Source§fn from(kem: KemAlgorithm) -> KdfAlgorithm
fn from(kem: KemAlgorithm) -> KdfAlgorithm
Converts to this type from the input type.
Source§impl PartialEq for KemAlgorithm
impl PartialEq for KemAlgorithm
Source§impl TryFrom<u16> for KemAlgorithm
impl TryFrom<u16> for KemAlgorithm
impl Copy for KemAlgorithm
impl StructuralPartialEq for KemAlgorithm
Auto Trait Implementations§
impl Freeze for KemAlgorithm
impl RefUnwindSafe for KemAlgorithm
impl Send for KemAlgorithm
impl Sync for KemAlgorithm
impl Unpin for KemAlgorithm
impl UnwindSafe for KemAlgorithm
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