mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 19:16:58 -04:00
Respect -Os for everything except XTS
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
9bb7e6f4ce
commit
bd1add94c0
@ -173,7 +173,6 @@ rounds_10:
|
|||||||
/* Two rounds of AESCE decryption */
|
/* Two rounds of AESCE decryption */
|
||||||
#define AESCE_DECRYPT_ROUND_X2 AESCE_DECRYPT_ROUND; AESCE_DECRYPT_ROUND
|
#define AESCE_DECRYPT_ROUND_X2 AESCE_DECRYPT_ROUND; AESCE_DECRYPT_ROUND
|
||||||
|
|
||||||
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
|
||||||
static uint8x16_t aesce_decrypt_block(uint8x16_t block,
|
static uint8x16_t aesce_decrypt_block(uint8x16_t block,
|
||||||
unsigned char *keys,
|
unsigned char *keys,
|
||||||
int rounds)
|
int rounds)
|
||||||
@ -210,7 +209,6 @@ rounds_10:
|
|||||||
/*
|
/*
|
||||||
* AES-ECB block en(de)cryption
|
* AES-ECB block en(de)cryption
|
||||||
*/
|
*/
|
||||||
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
|
||||||
int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx,
|
int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx,
|
||||||
int mode,
|
int mode,
|
||||||
const unsigned char input[16],
|
const unsigned char input[16],
|
||||||
|
@ -326,7 +326,6 @@ int mbedtls_ccm_update_ad(mbedtls_ccm_context *ctx,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
|
||||||
int mbedtls_ccm_update(mbedtls_ccm_context *ctx,
|
int mbedtls_ccm_update(mbedtls_ccm_context *ctx,
|
||||||
const unsigned char *input, size_t input_len,
|
const unsigned char *input, size_t input_len,
|
||||||
unsigned char *output, size_t output_size,
|
unsigned char *output, size_t output_size,
|
||||||
|
@ -417,7 +417,6 @@ static int gcm_mask(mbedtls_gcm_context *ctx,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
|
||||||
int mbedtls_gcm_update(mbedtls_gcm_context *ctx,
|
int mbedtls_gcm_update(mbedtls_gcm_context *ctx,
|
||||||
const unsigned char *input, size_t input_length,
|
const unsigned char *input, size_t input_length,
|
||||||
unsigned char *output, size_t output_size,
|
unsigned char *output, size_t output_size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user