Enum aws_lc_rs::cipher::EncryptionContext
source · #[non_exhaustive]pub enum EncryptionContext {
Iv128(FixedLength<IV_LEN_128_BIT>),
}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.
Iv128(FixedLength<IV_LEN_128_BIT>)
A 128-bit Initialization Vector.
Trait Implementations§
source§impl Debug for EncryptionContext
impl Debug for EncryptionContext
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 EncryptionContext> for &'a [u8]
impl<'a> TryFrom<&'a EncryptionContext> for &'a [u8]
§type Error = Unspecified
type Error = Unspecified
The type returned in the event of a conversion error.
source§fn try_from(value: &'a EncryptionContext) -> Result<Self, Unspecified>
fn try_from(value: &'a EncryptionContext) -> Result<Self, Unspecified>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for EncryptionContext
impl Send for EncryptionContext
impl Sync for EncryptionContext
impl Unpin for EncryptionContext
impl UnwindSafe for EncryptionContext
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