mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-01 04:13:29 +00:00
aesce: fix unused parameter
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
19583e44ed
commit
c43479103a
@ -248,6 +248,8 @@ int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx,
|
|||||||
if (mode == MBEDTLS_AES_DECRYPT) {
|
if (mode == MBEDTLS_AES_DECRYPT) {
|
||||||
block = aesce_decrypt_block(block, keys, ctx->nr);
|
block = aesce_decrypt_block(block, keys, ctx->nr);
|
||||||
} else
|
} else
|
||||||
|
#else
|
||||||
|
(void) mode;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
block = aesce_encrypt_block(block, keys, ctx->nr);
|
block = aesce_encrypt_block(block, keys, ctx->nr);
|
||||||
|
@ -4644,7 +4644,7 @@ component_test_block_cipher_no_decrypt_aesce_armcc () {
|
|||||||
# test AESCE baremetal build
|
# test AESCE baremetal build
|
||||||
scripts/config.py set MBEDTLS_AESCE_C
|
scripts/config.py set MBEDTLS_AESCE_C
|
||||||
msg "build: default config + BLOCK_CIPHER_NO_DECRYPT with AESCE"
|
msg "build: default config + BLOCK_CIPHER_NO_DECRYPT with AESCE"
|
||||||
armc6_build_test "-O1 --target=aarch64-arm-none-eabi -march=armv8-a+crypto"
|
armc6_build_test "-O1 --target=aarch64-arm-none-eabi -march=armv8-a+crypto -Werror -Wall -Wextra"
|
||||||
|
|
||||||
# Make sure we don't have mbedtls_xxx_setkey_dec in AES/ARIA/CAMELLIA
|
# Make sure we don't have mbedtls_xxx_setkey_dec in AES/ARIA/CAMELLIA
|
||||||
not grep mbedtls_aes_setkey_dec library/aes.o
|
not grep mbedtls_aes_setkey_dec library/aes.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user