PSA_ALG_AT_LEAST_THIS_LENGTH_MAC macro
Macro to build a MAC minimum-MAC-length wildcard algorithm. A minimum-MAC-length MAC wildcard algorithm permits all MAC algorithms sharing the same base algorithm, and where the (potentially truncated) MAC length of the specific algorithm is equal to or larger then the wildcard algorithm's minimum MAC length.
Arguments
mac_alg
A MAC algorithm identifier (value of type #psa_algorithm_t such that #PSA_ALG_IS_MAC(\p mac_alg) is true).
min_mac_length
Desired minimum length of the message authentication code in bytes. This must be at most the untruncated length of the MAC and must be at least 1.
Return value
The corresponding MAC wildcard algorithm with the specified minimum length. Unspecified if \p mac_alg is not a supported MAC algorithm or if \p min_mac_length is less than 1 or too large for the specified MAC algorithm.
Notes
When setting the minimum required MAC length to less than the smallest MAC length allowed by the base algorithm, this effectively becomes an 'any-MAC-length-allowed' policy for that base algorithm.