pub enum KeyWrapAlgorithm {
AesKw128,
AesKw256,
}Expand description
Supported symmetric key-wrap algorithms.
Variants§
AesKw128
RFC 3394 AES key wrap with a 128-bit KEK.
AesKw256
RFC 3394 AES key wrap with a 256-bit KEK.
Implementations§
Source§impl KeyWrapAlgorithm
impl KeyWrapAlgorithm
Sourcepub const fn key_kind(self) -> SymmetricKeyKind
pub const fn key_kind(self) -> SymmetricKeyKind
Family of the wrapping key, not of the wrapped content key.
Sourcepub fn from_uri(uri: &str) -> Result<Self, XmlEncError>
pub fn from_uri(uri: &str) -> Result<Self, XmlEncError>
Parse a supported XMLEnc symmetric key-wrap URI.
Sourcepub const fn requires_explicit_permission(self) -> bool
pub const fn requires_explicit_permission(self) -> bool
Whether use requires an explicit compiled-policy allowlist entry.
Trait Implementations§
Source§impl Clone for KeyWrapAlgorithm
impl Clone for KeyWrapAlgorithm
impl Copy for KeyWrapAlgorithm
Source§impl Debug for KeyWrapAlgorithm
impl Debug for KeyWrapAlgorithm
impl Eq for KeyWrapAlgorithm
Source§impl Hash for KeyWrapAlgorithm
impl Hash for KeyWrapAlgorithm
Source§impl PartialEq for KeyWrapAlgorithm
impl PartialEq 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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