Enum psa_crypto::types::key_derivation::InputSecret [−][src]
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
Regular input of bytes or a key ID
Tuple Fields of Input
0: Input<'a>Output of a key agreement
Fields of KeyAgreement
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.
Trait Implementations
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
Mutably borrows from an owned value. Read more