pub struct RecoveredContentKey { /* private fields */ }Expand description
Secret candidate whose recovery validity is retained until content work ends. Debug output never exposes key bytes or padding validity.
Implementations§
Source§impl RecoveredContentKey
impl RecoveredContentKey
Sourcepub fn confirmed(bytes: Vec<u8>) -> Self
pub fn confirmed(bytes: Vec<u8>) -> Self
An explicitly supplied key, or one recovered by an integrity-checking mechanism such as OAEP or key wrap. Not for implicit-rejection output.
Sourcepub fn opaque(key: Arc<dyn ContentDecryptionKey>) -> Self
pub fn opaque(key: Arc<dyn ContentDecryptionKey>) -> Self
Retain a non-exportable content key until the content operation ends.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RecoveredContentKey
impl !UnwindSafe for RecoveredContentKey
impl Freeze for RecoveredContentKey
impl Send for RecoveredContentKey
impl Sync for RecoveredContentKey
impl Unpin for RecoveredContentKey
impl UnsafeUnpin for RecoveredContentKey
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