PSA_MAC_LENGTH macro
The size of the output of psa_mac_sign_finish(), in bytes. This is also the MAC size that psa_mac_verify_finish() expects. \warning This macro may evaluate its arguments multiple times or zero times, so you should not pass arguments that contain side effects.
Arguments
key_type
The type of the MAC key.
key_bits
The size of the MAC key in bits.
alg
A MAC algorithm (\c PSA_ALG_XXX value such that #PSA_ALG_IS_MAC(\p alg) is true).
Return value
The MAC size for the specified algorithm with the specified key parameters. 0 if the MAC algorithm is not recognized. Either 0 or the correct size for a MAC algorithm that the implementation recognizes, but does not support. Unspecified if the key parameters are not consistent with the algorithm.