From 4cfa443d2a2ae2ec184b5d44d40bb361f038d0da Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 6 May 2020 13:44:32 +0200 Subject: [PATCH] Fix macros Signed-off-by: Gilles Peskine --- include/psa/crypto_values.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto_values.h b/include/psa/crypto_values.h index ed8471e7b..18b2d5ad1 100644 --- a/include/psa/crypto_values.h +++ b/include/psa/crypto_values.h @@ -1586,10 +1586,10 @@ #define PSA_KEY_PERSISTENCE_READ_ONLY ((psa_key_persistence_t)0xff) #define PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) \ - ((psa_key_persistence_t)((lifetime) & 0x000000ff) + ((psa_key_persistence_t)((lifetime) & 0x000000ff)) #define PSA_KEY_LIFETIME_GET_LOCATION(lifetime) \ - ((psa_key_location_t)((lifetime) >> 8) + ((psa_key_location_t)((lifetime) >> 8)) /** Whether a key lifetime indicates that the key is volatile. *