pub fn is_alg_permitted(self, alg: SignHash) -> bool {
        if let SignHash::Specific(_) = alg {
            if self == SignHash::Any {
                true
            } else {
                self == alg
            }
        } else {
            // Any is not permitted for a cryptographic operation
            false
        }
    }
/// Check if the alg given for a cryptographic operation is permitted to be used with this
/// algorithm as a policy
Check if the alg given for a cryptographic operation is permitted to be used with this
algorithm as a policy
Check if the alg given for a cryptographic operation is permitted to be used with this algorithm as a policy
pub fn is_alg_permitted(self, alg: SignHash) -> bool {
        if let SignHash::Specific(_) = alg {
            if self == SignHash::Any {
                true
            } else {
                self == alg
            }
        } else {
            // Any is not permitted for a cryptographic operation
            false
        }
    }
pub fn is_alg_permitted ( self , alg : SignHash ) -> bool { if let SignHash :: Specific ( _ ) = alg { if self == SignHash :: Any { true } else { self == alg } } else { // Any is not permitted for a cryptographic operation false } }
Check if the alg given for a cryptographic operation is permitted to be used with this
algorithm as a policy
Check if the alg given for a cryptographic operation is permitted to be used with this algorithm as a policy
self
alg
SignHash
self
alg
SignHash