PSA_ALG_IS_SIGN_HASH macro
Whether the specified algorithm is a signature algorithm that can be used with psa_sign_hash() and psa_verify_hash(). This encompasses all strict hash-and-sign algorithms categorized by PSA_ALG_IS_HASH_AND_SIGN(), as well as algorithms that follow the paradigm more loosely: - #PSA_ALG_RSA_PKCS1V15_SIGN_RAW (expects its input to be an encoded hash) - #PSA_ALG_ECDSA_ANY (doesn't specify what kind of hash the input is)
Arguments
alg
An algorithm identifier (value of type psa_algorithm_t).
Return value
1 if alg is a signature algorithm that can be used to sign a hash. 0 if alg is a signature algorithm that can only be used to sign a message. 0 if alg is not a signature algorithm. This macro can return either 0 or 1 if alg is not a supported algorithm identifier.