PSA_HASH_LENGTH macro
The size of the output of psa_hash_finish(), in bytes. This is also the hash size that psa_hash_verify() expects.
Arguments
alg
A hash algorithm (\c PSA_ALG_XXX value such that #PSA_ALG_IS_HASH(\p alg) is true), or an HMAC algorithm (#PSA_ALG_HMAC(\c hash_alg) where \c hash_alg is a hash algorithm).
Return value
The hash size for the specified hash algorithm. If the hash algorithm is not recognized, return 0.