From c65eefa9abd6aa41a2f8f1a6d5c11b48a027762f Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Thu, 25 Jul 2024 10:20:41 +0100 Subject: [PATCH] Remove superfluous guard Signed-off-by: Thomas Daubney --- tf-psa-crypto/drivers/builtin/src/aes.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tf-psa-crypto/drivers/builtin/src/aes.c b/tf-psa-crypto/drivers/builtin/src/aes.c index 40370c29fc..0f96db0b32 100644 --- a/tf-psa-crypto/drivers/builtin/src/aes.c +++ b/tf-psa-crypto/drivers/builtin/src/aes.c @@ -841,7 +841,6 @@ int mbedtls_aes_xts_setkey_dec(mbedtls_aes_xts_context *ctx, AES_RT3(MBEDTLS_BYTE_3(Y0)); \ } while (0) -#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY) /* * AES-ECB block encryption */ @@ -965,7 +964,6 @@ static int mbedtls_internal_aes_decrypt(mbedtls_aes_context *ctx, return 0; } #endif /* !MBEDTLS_BLOCK_CIPHER_NO_DECRYPT */ -#endif /* !MBEDTLS_AES_USE_HARDWARE_ONLY */ /* * Our intrinsics-based implementation of AESNI requires the round keys to be