pub enum DerivedKeyInput<'a> {
Secret(&'a [u8]),
Agreement {
key: &'a dyn KeyAgreementKey,
parameters: KeyAgreementParameters<'a>,
},
}Expand description
Application-owned key-establishment input; private handles and secret bytes are borrowed, and document data cannot replace their provenance.
Variants§
Secret(&'a [u8])
Caller-selected secret or password octets.
Agreement
Caller-selected private handle and peer parameters for agreement.
Fields
§
key: &'a dyn KeyAgreementKeyOpaque private key belonging to the selected provider.
§
parameters: KeyAgreementParameters<'a>Encoded public peer and the requested agreement algorithm.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DerivedKeyInput<'a>
impl<'a> !UnwindSafe for DerivedKeyInput<'a>
impl<'a> Freeze for DerivedKeyInput<'a>
impl<'a> Send for DerivedKeyInput<'a>
impl<'a> Sync for DerivedKeyInput<'a>
impl<'a> Unpin for DerivedKeyInput<'a>
impl<'a> UnsafeUnpin for DerivedKeyInput<'a>
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