psa_mac_key_can_do() function
Check whether a given key type is valid for use with a given MAC algorithm Upon successful return of this function, the behavior of #PSA_MAC_LENGTH when called with the validated \p algorithm and \p key_type is well-defined.
Arguments
algorithm
The specific MAC algorithm (can be wildcard).
key_type
The key type of the key to be used with the \p algorithm.
Return value
#PSA_SUCCESS The \p key_type is valid for use with the \p algorithm #PSA_ERROR_INVALID_ARGUMENT The \p key_type is not valid for use with the \p algorithm