PSA_ALG_SIGN_GET_HASH macro
Get the hash used by a hash-and-sign signature algorithm. A hash-and-sign algorithm is a signature algorithm which is composed of two phases: first a hashing phase which does not use the key and produces a hash of the input message, then a signing phase which only uses the hash and the key and not the message itself.
Arguments
alg
A signature algorithm (\c PSA_ALG_XXX value such that #PSA_ALG_IS_SIGN(\p alg) is true).
Return value
The underlying hash algorithm if \p alg is a hash-and-sign algorithm. 0 if \p alg is a signature algorithm that does not follow the hash-and-sign structure. Unspecified if \p alg is not a signature algorithm or if it is not supported by the implementation.