From 94f2b82edecf945cdfed937be9b3b704f942b56a Mon Sep 17 00:00:00 2001 From: Armin Wolf Date: Fri, 4 Oct 2024 08:08:54 +0200 Subject: [PATCH] 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 --- sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h b/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h index f45ae28080..78f4c37928 100644 --- a/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h +++ b/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h @@ -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.