1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/psa_crypto: Fix definition of PSA_ALG_IS_WILDCARD

A definition of PSA_ALG_HASH_ANY does not exist, use
PSA_ALG_ANY_HASH instead.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
This commit is contained in:
Armin Wolf 2024-10-04 08:08:54 +02:00
parent e713b3d863
commit 94f2b82ede

View File

@ -237,7 +237,7 @@ extern "C" {
* 0 if alg is a non-wildcard algorithm encoding that is suitable for an operation.
*/
#define PSA_ALG_IS_WILDCARD(alg) \
(PSA_ALG_GET_HASH(alg) == PSA_ALG_HASH_ANY)
(PSA_ALG_GET_HASH(alg) == PSA_ALG_ANY_HASH)
/**
* @brief When setting a hash-and-sign algorithm in a key policy, permit any hash algorithm.