#[non_exhaustive]pub enum KeyWrapAlgorithm {
Aes128Kw,
Aes256Kw,
}Expand description
AES key wrap algorithm used to protect the content-encryption key in KARI.
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.
Aes128Kw
AES-128 key wrap (id-aes128-Wrap, RFC 3394).
Aes256Kw
AES-256 key wrap (id-aes256-Wrap, RFC 3394).
Trait Implementations§
Source§impl Clone for KeyWrapAlgorithm
impl Clone for KeyWrapAlgorithm
Source§fn clone(&self) -> KeyWrapAlgorithm
fn clone(&self) -> KeyWrapAlgorithm
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 KeyWrapAlgorithm
impl Debug for KeyWrapAlgorithm
Source§impl<'de> Deserialize<'de> for KeyWrapAlgorithm
impl<'de> Deserialize<'de> for KeyWrapAlgorithm
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 Display for KeyWrapAlgorithm
impl Display for KeyWrapAlgorithm
impl Eq for KeyWrapAlgorithm
Source§impl PartialEq for KeyWrapAlgorithm
impl PartialEq for KeyWrapAlgorithm
Source§fn eq(&self, other: &KeyWrapAlgorithm) -> bool
fn eq(&self, other: &KeyWrapAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeyWrapAlgorithm
impl Serialize for KeyWrapAlgorithm
impl StructuralPartialEq for KeyWrapAlgorithm
Auto Trait Implementations§
impl Freeze for KeyWrapAlgorithm
impl RefUnwindSafe for KeyWrapAlgorithm
impl Send for KeyWrapAlgorithm
impl Sync for KeyWrapAlgorithm
impl Unpin for KeyWrapAlgorithm
impl UnsafeUnpin for KeyWrapAlgorithm
impl UnwindSafe for KeyWrapAlgorithm
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