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

pub enum SignHash {
    Specific(Hash),
    Any,
}

Enumeration of hash algorithms used in "hash-and-sign" algorithms.

Variants

Specific(Hash)

A specific hash algorithm to choose.

Any

In a hash-and-sign algorithm policy, allow any hash algorithm. This value must not be used to build an algorithm specification to perform an operation. It is only valid to build policies, for signature algorithms.

Implementations

impl SignHash[src]

pub fn is_alg_permitted(self, alg: SignHash) -> 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 SignHash[src]

impl Copy for SignHash[src]

impl Debug for SignHash[src]

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

impl From<Hash> for SignHash[src]

impl PartialEq<SignHash> for SignHash[src]

impl Serialize for SignHash[src]

impl StructuralPartialEq for SignHash[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.