pub fn is_hash_len_permitted(self, hash_len: usize) -> bool {
        match self {
            AsymmetricSignature::EcdsaAny | AsymmetricSignature::RsaPkcs1v15SignRaw => true,
            AsymmetricSignature::DeterministicEcdsa { hash_alg }
            | AsymmetricSignature::RsaPkcs1v15Sign { hash_alg }
            | AsymmetricSignature::Ecdsa { hash_alg }
            | AsymmetricSignature::RsaPss { hash_alg } => {
                if let SignHash::Specific(hash_alg) = hash_alg {
                    hash_alg.hash_length() == hash_len
                } else {
                    false
                }
            }
        }
    }
/// Determines if the given hash length is compatible with the asymmetric signature scheme
Determines if the given hash length is compatible with the asymmetric signature scheme
Determines if the given hash length is compatible with the asymmetric signature scheme
pub fn is_hash_len_permitted(self, hash_len: usize) -> bool {
        match self {
            AsymmetricSignature::EcdsaAny | AsymmetricSignature::RsaPkcs1v15SignRaw => true,
            AsymmetricSignature::DeterministicEcdsa { hash_alg }
            | AsymmetricSignature::RsaPkcs1v15Sign { hash_alg }
            | AsymmetricSignature::Ecdsa { hash_alg }
            | AsymmetricSignature::RsaPss { hash_alg } => {
                if let SignHash::Specific(hash_alg) = hash_alg {
                    hash_alg.hash_length() == hash_len
                } else {
                    false
                }
            }
        }
    }
pub fn is_hash_len_permitted ( self , hash_len : usize ) -> bool { match self { AsymmetricSignature :: EcdsaAny | AsymmetricSignature :: RsaPkcs1v15SignRaw => true , AsymmetricSignature :: DeterministicEcdsa { hash_alg } | AsymmetricSignature :: RsaPkcs1v15Sign { hash_alg } | AsymmetricSignature :: Ecdsa { hash_alg } | AsymmetricSignature :: RsaPss { hash_alg } => { if let SignHash :: Specific ( hash_alg ) = hash_alg { hash_alg . hash_length ( ) == hash_len } else { false } } } }
Determines if the given hash length is compatible with the asymmetric signature scheme
Determines if the given hash length is compatible with the asymmetric signature scheme
self
hash_len
usize
self
hash_len
usize