From 5ed8a0ec73ad31ad67b995ebd9a8d7f8e1063702 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 27 May 2022 09:47:53 +0200 Subject: [PATCH] Overall PSA PAKE API style issues fixes Signed-off-by: Neil Armstrong --- include/psa/crypto_extra.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/psa/crypto_extra.h b/include/psa/crypto_extra.h index 50ca25e4e1..f6cf7514fa 100644 --- a/include/psa/crypto_extra.h +++ b/include/psa/crypto_extra.h @@ -1862,7 +1862,7 @@ static inline void psa_pake_cs_set_algorithm( psa_pake_cipher_suite_t *cipher_suite, psa_algorithm_t algorithm) { - if( !PSA_ALG_IS_PAKE(algorithm) ) + if( !PSA_ALG_IS_PAKE( algorithm ) ) cipher_suite->algorithm = 0; else cipher_suite->algorithm = algorithm; @@ -1871,8 +1871,8 @@ static inline void psa_pake_cs_set_algorithm( static inline psa_pake_primitive_t psa_pake_cs_get_primitive( const psa_pake_cipher_suite_t *cipher_suite ) { - return( PSA_PAKE_PRIMITIVE(cipher_suite->type, cipher_suite->family, - cipher_suite->bits) ); + return( PSA_PAKE_PRIMITIVE( cipher_suite->type, cipher_suite->family, + cipher_suite->bits ) ); } static inline void psa_pake_cs_set_primitive( @@ -1905,7 +1905,7 @@ static inline psa_algorithm_t psa_pake_cs_get_hash( static inline void psa_pake_cs_set_hash( psa_pake_cipher_suite_t *cipher_suite, psa_algorithm_t hash ) { - if( !PSA_ALG_IS_HASH(hash) ) + if( !PSA_ALG_IS_HASH( hash ) ) cipher_suite->hash = 0; else cipher_suite->hash = hash;