pub struct KemParameters {
pub public_key: Vec<u8>,
pub ciphertext: Vec<u8>,
pub params: HashMap<String, Vec<u8>>,
}Expand description
Key Encapsulation Mechanism (KEM) parameters
Used by algorithms that employ key encapsulation (ML-KEM, etc.)
Fields§
§public_key: Vec<u8>Public key for KEM
ciphertext: Vec<u8>Encapsulated ciphertext
params: HashMap<String, Vec<u8>>Algorithm-specific parameters
Trait Implementations§
Source§impl Clone for KemParameters
impl Clone for KemParameters
Source§fn clone(&self) -> KemParameters
fn clone(&self) -> KemParameters
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 KemParameters
impl Debug for KemParameters
Source§impl<'de> Deserialize<'de> for KemParameters
impl<'de> Deserialize<'de> for KemParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KemParameters
impl PartialEq for KemParameters
Source§impl Serialize for KemParameters
impl Serialize for KemParameters
impl Eq for KemParameters
impl StructuralPartialEq for KemParameters
Auto Trait Implementations§
impl Freeze for KemParameters
impl RefUnwindSafe for KemParameters
impl Send for KemParameters
impl Sync for KemParameters
impl Unpin for KemParameters
impl UnwindSafe for KemParameters
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