Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and jmartinez-silabs committed Jul 5, 2023
1 parent baa1c57 commit 01881f5
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions src/platform/silabs/efr32/psa_crypto_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 01881f5

Please sign in to comment.