#[non_exhaustive]pub enum DecryptionContext {
Iv128(FixedLength<IV_LEN_128_BIT>),
None,
}
Expand description
The contextual data used to encrypt or decrypt data.
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.
Trait Implementations§
Source§impl Debug for DecryptionContext
impl Debug for DecryptionContext
Source§impl From<DecryptionContext> for EncryptionContext
impl From<DecryptionContext> for EncryptionContext
Source§fn from(value: DecryptionContext) -> Self
fn from(value: DecryptionContext) -> Self
Converts to this type from the input type.
Source§impl From<EncryptionContext> for DecryptionContext
impl From<EncryptionContext> for DecryptionContext
Source§fn from(value: EncryptionContext) -> Self
fn from(value: EncryptionContext) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a DecryptionContext> for &'a [u8]
impl<'a> TryFrom<&'a DecryptionContext> for &'a [u8]
Source§type Error = Unspecified
type Error = Unspecified
The type returned in the event of a conversion error.
Source§fn try_from(value: &'a DecryptionContext) -> Result<Self, Unspecified>
fn try_from(value: &'a DecryptionContext) -> Result<Self, Unspecified>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DecryptionContext
impl RefUnwindSafe for DecryptionContext
impl Send for DecryptionContext
impl Sync for DecryptionContext
impl Unpin for DecryptionContext
impl UnwindSafe for DecryptionContext
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