Enum psa_crypto::types::key_derivation::InputSecret
source · [−]pub enum InputSecret<'a> {
Input(Input<'a>),
KeyAgreement {
alg: RawKeyAgreement,
private_key: Id,
peer_key: &'a [u8],
},
}Expand description
Enumeration of supported input data for different input steps
Variants
Input(Input<'a>)
Regular input of bytes or a key ID
KeyAgreement
Fields
alg: RawKeyAgreementKey agreement algorithm to use
private_key: IdPrivate key to use in key agreement
peer_key: &'a [u8]Public key data of peer key to use. Must be in the same format that key_management::import accepts for the public key
corresponding to the type of private key.
Output of a key agreement
Trait Implementations
sourceimpl<'a> Clone for InputSecret<'a>
impl<'a> Clone for InputSecret<'a>
sourcefn clone(&self) -> InputSecret<'a>
fn clone(&self) -> InputSecret<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for InputSecret<'a>
impl<'a> Debug for InputSecret<'a>
sourceimpl<'a> From<Input<'a>> for InputSecret<'a>
impl<'a> From<Input<'a>> for InputSecret<'a>
impl<'a> Copy for InputSecret<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for InputSecret<'a>
impl<'a> Send for InputSecret<'a>
impl<'a> Sync for InputSecret<'a>
impl<'a> Unpin for InputSecret<'a>
impl<'a> UnwindSafe for InputSecret<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more