Skip to content

Commit

Permalink
sys/psa_crypto: Fix definition of PSA_ALG_IS_WILDCARD
Browse files Browse the repository at this point in the history
A definition of PSA_ALG_HASH_ANY does not exist, use
PSA_ALG_ANY_HASH instead.

Signed-off-by: Armin Wolf <[email protected]>
  • Loading branch information
Wer-Wolf committed Oct 29, 2024
1 parent e713b3d commit 94f2b82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 94f2b82

Please sign in to comment.