From 01881f5c01e368216195cd1528f351cfaf6d2e78 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 5 Jul 2023 17:21:33 +0000 Subject: [PATCH] Restyled by clang-format --- src/platform/silabs/efr32/psa_crypto_config.h | 39 +++++-------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/src/platform/silabs/efr32/psa_crypto_config.h b/src/platform/silabs/efr32/psa_crypto_config.h index d70db3a4e82092..165a7b94967e74 100644 --- a/src/platform/silabs/efr32/psa_crypto_config.h +++ b/src/platform/silabs/efr32/psa_crypto_config.h @@ -87,55 +87,36 @@ #define TFM_CRYPTO_ASYM_ENCRYPT_MODULE_DISABLED // HASH module -#if !defined(PSA_WANT_ALG_SHA_1) \ - && !defined(PSA_WANT_ALG_SHA_224) \ - && !defined(PSA_WANT_ALG_SHA_256) \ - && !defined(PSA_WANT_ALG_SHA_384) \ - && !defined(PSA_WANT_ALG_SHA_512) \ - && !defined(PSA_WANT_ALG_MD5) +#if !defined(PSA_WANT_ALG_SHA_1) && !defined(PSA_WANT_ALG_SHA_224) && !defined(PSA_WANT_ALG_SHA_256) && \ + !defined(PSA_WANT_ALG_SHA_384) && !defined(PSA_WANT_ALG_SHA_512) && !defined(PSA_WANT_ALG_MD5) #define TFM_CRYPTO_HASH_MODULE_DISABLED #endif // AEAD module -#if !defined(PSA_WANT_ALG_CCM) \ - && !defined(PSA_WANT_ALG_GCM) \ - && !defined(PSA_WANT_ALG_CHACHA20_POLY1305) +#if !defined(PSA_WANT_ALG_CCM) && !defined(PSA_WANT_ALG_GCM) && !defined(PSA_WANT_ALG_CHACHA20_POLY1305) #define TFM_CRYPTO_AEAD_MODULE_DISABLED #endif // Asymmetric Sign module -#if !defined(PSA_WANT_ALG_ECDSA) \ - && !defined(PSA_WANT_ALG_EDDSA) \ - && !defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA) +#if !defined(PSA_WANT_ALG_ECDSA) && !defined(PSA_WANT_ALG_EDDSA) && !defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA) #define TFM_CRYPTO_ASYM_SIGN_MODULE_DISABLED #endif // Cipher module -#if !defined(PSA_WANT_ALG_CFB) \ - && !defined(PSA_WANT_ALG_CTR) \ - && !defined(PSA_WANT_ALG_CBC_NO_PADDING) \ - && !defined(PSA_WANT_ALG_CBC_PKCS7) \ - && !defined(PSA_WANT_ALG_ECB_NO_PADDING) \ - && !defined(PSA_WANT_ALG_XTS) \ - && !defined(PSA_WANT_ALG_OFB) \ - && !defined(PSA_WANT_ALG_STREAM_CIPHER) +#if !defined(PSA_WANT_ALG_CFB) && !defined(PSA_WANT_ALG_CTR) && !defined(PSA_WANT_ALG_CBC_NO_PADDING) && \ + !defined(PSA_WANT_ALG_CBC_PKCS7) && !defined(PSA_WANT_ALG_ECB_NO_PADDING) && !defined(PSA_WANT_ALG_XTS) && \ + !defined(PSA_WANT_ALG_OFB) && !defined(PSA_WANT_ALG_STREAM_CIPHER) #define TFM_CRYPTO_CIPHER_MODULE_DISABLED #endif // MAC module -#if !defined(PSA_WANT_ALG_HMAC) \ - && !defined(PSA_WANT_ALG_CMAC) \ - && !defined(PSA_WANT_ALG_CBC_MAC) +#if !defined(PSA_WANT_ALG_HMAC) && !defined(PSA_WANT_ALG_CMAC) && !defined(PSA_WANT_ALG_CBC_MAC) #define TFM_CRYPTO_MAC_MODULE_DISABLED #endif // Key derivation module -#if !defined(PSA_WANT_ALG_PBKDF2_HMAC) \ - && !defined(PSA_WANT_ALG_HKDF) \ - && !defined(PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128) \ - && !defined(PSA_WANT_ALG_TLS12_PRF) \ - && !defined(PSA_WANT_ALG_TLS12_PSK_TO_MS) \ - && !defined(PSA_WANT_ALG_ECDH) +#if !defined(PSA_WANT_ALG_PBKDF2_HMAC) && !defined(PSA_WANT_ALG_HKDF) && !defined(PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128) && \ + !defined(PSA_WANT_ALG_TLS12_PRF) && !defined(PSA_WANT_ALG_TLS12_PSK_TO_MS) && !defined(PSA_WANT_ALG_ECDH) #define TFM_CRYPTO_KEY_DERIVATION_MODULE_DISABLED #endif