[][src]Enum parsec_interface::operations::psa_algorithm::KeyDerivation

pub enum KeyDerivation {
    Hkdf {
        hash_alg: Hash,
    },
    Tls12Prf {
        hash_alg: Hash,
    },
    Tls12PskToMs {
        hash_alg: Hash,
    },
}

Enumeration of key derivation functions supported.

Variants

Hkdf

HKDF algorithm.

Fields of Hkdf

hash_alg: Hash

A hash algorithm to use.

Tls12Prf

TLS-1.2 PRF algorithm.

Fields of Tls12Prf

hash_alg: Hash

A hash algorithm to use.

Tls12PskToMs

TLS-1.2 PSK-to-MasterSecret algorithm.

Fields of Tls12PskToMs

hash_alg: Hash

A hash algorithm to use.

Implementations

impl KeyDerivation[src]

pub fn is_alg_permitted(self, alg: KeyDerivation) -> bool[src]

Check if the alg given for a cryptographic operation is permitted to be used with this algorithm as a policy

Trait Implementations

impl Clone for KeyDerivation[src]

impl Copy for KeyDerivation[src]

impl Debug for KeyDerivation[src]

impl<'de> Deserialize<'de> for KeyDerivation[src]

impl From<KeyDerivation> for Algorithm[src]

impl PartialEq<KeyDerivation> for KeyDerivation[src]

impl Serialize for KeyDerivation[src]

impl StructuralPartialEq for KeyDerivation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.