mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-12 09:54:38 +08:00
Use MBEDTLS_OPTIMIZE_ALWAYS in aesce
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
6cfd9b54ae
commit
f88a68cf51
@ -101,6 +101,7 @@ int mbedtls_aesce_has_support(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MBEDTLS_OPTIMIZE_ALWAYS
|
||||||
static uint8x16_t aesce_encrypt_block(uint8x16_t block,
|
static uint8x16_t aesce_encrypt_block(uint8x16_t block,
|
||||||
unsigned char *keys,
|
unsigned char *keys,
|
||||||
int rounds)
|
int rounds)
|
||||||
@ -167,6 +168,7 @@ rounds_10:
|
|||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MBEDTLS_OPTIMIZE_ALWAYS
|
||||||
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)
|
||||||
@ -249,6 +251,7 @@ rounds_10:
|
|||||||
/*
|
/*
|
||||||
* AES-ECB block en(de)cryption
|
* AES-ECB block en(de)cryption
|
||||||
*/
|
*/
|
||||||
|
MBEDTLS_OPTIMIZE_ALWAYS
|
||||||
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],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user