Enum psa_crypto::types::algorithm::SignHash
source · pub enum SignHash {
Specific(Hash),
Any,
}
Expand description
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§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SignHash
impl<'de> Deserialize<'de> for SignHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SignHash> for psa_algorithm_t
impl From<SignHash> for psa_algorithm_t
source§impl PartialEq for SignHash
impl PartialEq for SignHash
impl Copy for SignHash
impl Eq for SignHash
impl StructuralEq for SignHash
impl StructuralPartialEq for SignHash
Auto Trait Implementations§
impl RefUnwindSafe for SignHash
impl Send for SignHash
impl Sync for SignHash
impl Unpin for SignHash
impl UnwindSafe for SignHash
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more