Respect -Os for everything except XTS

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-06-16 13:50:14 +01:00
parent 9bb7e6f4ce
commit bd1add94c0
3 changed files with 0 additions and 4 deletions

View File

@ -173,7 +173,6 @@ rounds_10:
/* Two rounds of AESCE decryption */
#define AESCE_DECRYPT_ROUND_X2 AESCE_DECRYPT_ROUND; AESCE_DECRYPT_ROUND
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
static uint8x16_t aesce_decrypt_block(uint8x16_t block,
unsigned char *keys,
int rounds)
@ -210,7 +209,6 @@ rounds_10:
/*
* AES-ECB block en(de)cryption
*/
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx,
int mode,
const unsigned char input[16],

View File

@ -326,7 +326,6 @@ int mbedtls_ccm_update_ad(mbedtls_ccm_context *ctx,
return 0;
}
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
int mbedtls_ccm_update(mbedtls_ccm_context *ctx,
const unsigned char *input, size_t input_len,
unsigned char *output, size_t output_size,

View File

@ -417,7 +417,6 @@ static int gcm_mask(mbedtls_gcm_context *ctx,
return 0;
}
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
int mbedtls_gcm_update(mbedtls_gcm_context *ctx,
const unsigned char *input, size_t input_length,
unsigned char *output, size_t output_size,