pub fn is_hmac(self) -> bool {
        match self {
            Algorithm::Mac(mac_alg) => mac_alg.is_hmac(),
            _ => false,
        }
    }
/// Check if the algorithm is a HMAC algorithm, truncated or not
///
/// # Example
///
/// ```
/// use psa_crypto::types::algorithm::{Algorithm, Mac, FullLengthMac, Hash};
/// let hmac = Algorithm::Mac(Mac::Truncated {
///     mac_alg: FullLengthMac::Hmac { hash_alg: Hash::Sha256 },
///     mac_length: 30,
/// });
/// assert!(hmac.is_hmac());
/// ```
Check if the algorithm is a HMAC algorithm, truncated or not
Check if the algorithm is a HMAC algorithm truncated or not
pub fn is_hmac(self) -> bool {
        match self {
            Algorithm::Mac(mac_alg) => mac_alg.is_hmac(),
            _ => false,
        }
    }
pub fn is_hmac ( self ) -> bool { match self { Algorithm :: Mac ( mac_alg ) => mac_alg . is_hmac ( ) , _ => false , } }
Check if the algorithm is a HMAC algorithm, truncated or not
Check if the algorithm is a HMAC algorithm truncated or not
self
self
example
```
use psa_crypto::types::algorithm::{Algorithm, Mac, FullLengthMac, Hash};
let hmac = Algorithm::Mac(Mac::Truncated {
mac_alg: FullLengthMac::Hmac { hash_alg: Hash::Sha256 },
mac_length: 30,
});
assert!(hmac.is_hmac());
```
` ` ` use psa_crypto :: types :: algorithm :: { Algorithm Mac FullLengthMac Hash } ; let hmac = Algorithm :: Mac ( Mac :: Truncated { mac_alg : FullLengthMac :: Hmac { hash_alg : Hash :: Sha256 } mac_length : 30 } ) ; assert! ( hmac . is_hmac () ) ; ` ` `