PSA_ALG_IS_KEY_DERIVATION_STRETCHING macro
Whether the specified algorithm is a key stretching / password hashing algorithm. A key stretching / password hashing algorithm is a key derivation algorithm that is suitable for use with a low-entropy secret such as a password. Equivalently, it's a key derivation algorithm that uses a #PSA_KEY_DERIVATION_INPUT_PASSWORD input step.
Syntax
#define PSA_ALG_IS_KEY_DERIVATION_STRETCHING(alg) \
(PSA_ALG_IS_KEY_DERIVATION(alg) && \
(alg) & PSA_ALG_KEY_DERIVATION_STRETCHING_FLAG)
Arguments
alg
An algorithm identifier (value of type #psa_algorithm_t).
Return value
1 if \p alg is a key stretching / password hashing algorithm, 0 otherwise. This macro may return either 0 or 1 if \p alg is not a supported algorithm identifier.
![]()
#define PSA_ALG_IS_KEY_DERIVATION_STRETCHING(alg) \