pub struct WrappingKey(pub Vec<u8>);Expand description
Wrapping key W* carried in a grant.
Confidential leg. A must transmit this to T over a channel that
guarantees confidentiality. Any party observing W* can
unwrap K̂_{c*} from sealed state and decrypt M.
Length is profile-defined (32 bytes for the standard XChaCha20-Poly1305 AEAD-as-wrap profile).
Tuple Fields§
§0: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for WrappingKey
impl Clone for WrappingKey
Source§fn clone(&self) -> WrappingKey
fn clone(&self) -> WrappingKey
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 WrappingKey
impl Debug for WrappingKey
Source§impl<'de> Deserialize<'de> for WrappingKey
impl<'de> Deserialize<'de> for WrappingKey
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 Drop for WrappingKey
impl Drop for WrappingKey
Source§impl Serialize for WrappingKey
impl Serialize for WrappingKey
Auto Trait Implementations§
impl Freeze for WrappingKey
impl RefUnwindSafe for WrappingKey
impl Send for WrappingKey
impl Sync for WrappingKey
impl Unpin for WrappingKey
impl UnsafeUnpin for WrappingKey
impl UnwindSafe for WrappingKey
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