pub enum WrappedKey {
Aes128GcmSivWrapped(Nonce, KeyBytes),
Aes256GcmSivWrapped(Nonce, KeyBytes),
}
Expand description
An AES256 key which has been wrapped using an AEAD, e.g. AES256-GCM-SIV. This can be safely stored in plaintext, and requires the wrapping key to be decoded.
Variants§
Trait Implementations§
Source§impl Debug for WrappedKey
impl Debug for WrappedKey
Source§impl<'de> Deserialize<'de> for WrappedKey
impl<'de> Deserialize<'de> for WrappedKey
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 WrappedKey
impl RefUnwindSafe for WrappedKey
impl Send for WrappedKey
impl Sync for WrappedKey
impl Unpin for WrappedKey
impl UnwindSafe for WrappedKey
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