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. A KEM real-or-rejection secret also
has no separate recovery-validity result; authenticated content decides
acceptance, or policy explicitly delegates authentication to the caller.
This constructor itself proves neither ciphertext integrity nor identity.
Do not use this for RSA-v1.5 recovery, whose validity must be
retained separately with recovery until content work completes.
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