[−][src]Enum psa_crypto::types::key_derivation::Inputs
Wrapper around KeyDerivation to enforce correct Inputs
Variants
HKDF algorithm.
Fields of Hkdf
hash_alg: HashA hash algorithm to use
salt: Option<Input<'a>>Salt, used in the "extract" step. It is optional; if omitted, the derivation uses an empty salt.
Typically a direct input, can also be a key of type RawData.
secret: InputSecret<'a>Secret, used in the "extract" step. This is typically a key of type Derive , or the shared secret
resulting from a key agreement, using Input::KeyAgreement.
Must be a key or key agreement input if used with psa_key_derivation_output_key.
info: Input<'a>Info, used in the "expand" step. Typically a direct input, can also be a key of type RawData.
TLS-1.2 PRF algorithm.
Fields of Tls12Prf
hash_alg: HashA hash algorithm to use.
seed: Input<'a>Seed, typically a direct input, can also be a key of type RawData.
secret: InputSecret<'a>Secret, used in the "extract" step. This is typically a key of type Derive , or the shared secret
resulting from a key agreement, using Input::KeyAgreement.
Must be a key or key agreement input if used with psa_key_derivation_output_key.
label: Input<'a>Label. Typically a direct input, can also be a key of type RawData.
TLS-1.2 PSK-to-MasterSecret algorithm.
Fields of Tls12PskToMs
hash_alg: HashA hash algorithm to use.
seed: Input<'a>Seed, typically a direct input, can also be a key of type RawData.
secret: InputSecret<'a>Secret, used in the "extract" step. This is typically a key of type Derive , or the shared secret
resulting from a key agreement, using Input::KeyAgreement.
Must be a key or key agreement input if used with psa_key_derivation_output_key.
Must not be larger than PSA_TLS12_PSK_TO_MS_PSK_MAX_SIZE.
label: Input<'a>Label. Typically a direct input, can also be a key of type RawData.
Implementations
impl Inputs<'_>[src]
pub fn key_derivation(&self) -> KeyDerivation[src]
Retrieve key derivation algorithm without inputs
Trait Implementations
impl<'a> Clone for Inputs<'a>[src]
impl<'a> Copy for Inputs<'a>[src]
impl<'a> Debug for Inputs<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Inputs<'a>[src]
impl<'a> Send for Inputs<'a>[src]
impl<'a> Sync for Inputs<'a>[src]
impl<'a> Unpin for Inputs<'a>[src]
impl<'a> UnwindSafe for Inputs<'a>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,