PSA_ALG_GET_HASH macro
Get the hash used by a composite algorithm.
Syntax
#define PSA_ALG_GET_HASH(alg) \
(((alg) & 0x000000ff) == 0 ? ((psa_algorithm_t) 0) : 0x02000000 | ((alg) & 0x000000ff))
Arguments
alg
An algorithm identifier (value of type #psa_algorithm_t).
Return value
The underlying hash algorithm if alg is a composite algorithm that uses a hash algorithm. \c 0 if alg is not a composite algorithm that uses a hash.
![]()
#define PSA_ALG_GET_HASH(alg) \