#[non_exhaustive]pub enum HpkeKem {
DHKEM_P256_HKDF_SHA256,
DHKEM_P384_HKDF_SHA384,
DHKEM_P521_HKDF_SHA512,
DHKEM_X25519_HKDF_SHA256,
DHKEM_X448_HKDF_SHA512,
Unknown(u16),
}
Expand description
The Key Encapsulation Mechanism (Kem
) type for HPKE operations.
Listed by IANA, as specified in RFC 9180 Section 7.1
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DHKEM_P256_HKDF_SHA256
DHKEM_P384_HKDF_SHA384
DHKEM_P521_HKDF_SHA512
DHKEM_X25519_HKDF_SHA256
DHKEM_X448_HKDF_SHA512
Unknown(u16)
Implementations§
Trait Implementations§
impl Copy for HpkeKem
impl Eq for HpkeKem
impl StructuralPartialEq for HpkeKem
Auto Trait Implementations§
impl Freeze for HpkeKem
impl RefUnwindSafe for HpkeKem
impl Send for HpkeKem
impl Sync for HpkeKem
impl Unpin for HpkeKem
impl UnwindSafe for HpkeKem
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