pub struct EncapsulatedKey {
pub algorithm: String,
pub bytes: Vec<u8>,
}Expand description
An encapsulated key — produced by encapsulate, consumed by threshold decapsulate.
Fields§
§algorithm: StringAlgorithm identifier.
bytes: Vec<u8>Encapsulated key bytes (the “ciphertext” of the KEM).
Trait Implementations§
Source§impl Clone for EncapsulatedKey
impl Clone for EncapsulatedKey
Source§fn clone(&self) -> EncapsulatedKey
fn clone(&self) -> EncapsulatedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EncapsulatedKey
impl Debug for EncapsulatedKey
Source§impl<'de> Deserialize<'de> for EncapsulatedKey
impl<'de> Deserialize<'de> for EncapsulatedKey
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
Auto Trait Implementations§
impl Freeze for EncapsulatedKey
impl RefUnwindSafe for EncapsulatedKey
impl Send for EncapsulatedKey
impl Sync for EncapsulatedKey
impl Unpin for EncapsulatedKey
impl UnsafeUnpin for EncapsulatedKey
impl UnwindSafe for EncapsulatedKey
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