mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Remove MBEDTLS_AES_ENCRYPT_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
@ -350,7 +350,6 @@
|
|||||||
*/
|
*/
|
||||||
//#define MBEDTLS_TIMING_ALT
|
//#define MBEDTLS_TIMING_ALT
|
||||||
|
|
||||||
//#define MBEDTLS_AES_ENCRYPT_ALT
|
|
||||||
//#define MBEDTLS_AES_DECRYPT_ALT
|
//#define MBEDTLS_AES_DECRYPT_ALT
|
||||||
//#define MBEDTLS_ECDH_GEN_PUBLIC_ALT
|
//#define MBEDTLS_ECDH_GEN_PUBLIC_ALT
|
||||||
//#define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
|
//#define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
|
||||||
|
@ -2243,7 +2243,7 @@ component_build_aes_variations () {
|
|||||||
|
|
||||||
build_test_config_combos ${BUILTIN_SRC_PATH}/aes.o validate_aes_config_variations \
|
build_test_config_combos ${BUILTIN_SRC_PATH}/aes.o validate_aes_config_variations \
|
||||||
"MBEDTLS_AES_DECRYPT_ALT" \
|
"MBEDTLS_AES_DECRYPT_ALT" \
|
||||||
"MBEDTLS_AES_ROM_TABLES" "MBEDTLS_AES_ENCRYPT_ALT" \
|
"MBEDTLS_AES_ROM_TABLES" \
|
||||||
"MBEDTLS_AES_FEWER_TABLES" "MBEDTLS_AES_USE_HARDWARE_ONLY" \
|
"MBEDTLS_AES_FEWER_TABLES" "MBEDTLS_AES_USE_HARDWARE_ONLY" \
|
||||||
"MBEDTLS_AESNI_C" "MBEDTLS_AESCE_C" "MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH"
|
"MBEDTLS_AESNI_C" "MBEDTLS_AESCE_C" "MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH"
|
||||||
|
|
||||||
@ -2260,7 +2260,7 @@ component_build_aes_variations () {
|
|||||||
scripts/config.py unset MBEDTLS_NIST_KW_C
|
scripts/config.py unset MBEDTLS_NIST_KW_C
|
||||||
build_test_config_combos ${BUILTIN_SRC_PATH}/aes.o validate_aes_config_variations \
|
build_test_config_combos ${BUILTIN_SRC_PATH}/aes.o validate_aes_config_variations \
|
||||||
"MBEDTLS_AES_DECRYPT_ALT" \
|
"MBEDTLS_AES_DECRYPT_ALT" \
|
||||||
"MBEDTLS_AES_ROM_TABLES" "MBEDTLS_AES_ENCRYPT_ALT" \
|
"MBEDTLS_AES_ROM_TABLES" \
|
||||||
"MBEDTLS_AES_FEWER_TABLES" "MBEDTLS_AES_USE_HARDWARE_ONLY" \
|
"MBEDTLS_AES_FEWER_TABLES" "MBEDTLS_AES_USE_HARDWARE_ONLY" \
|
||||||
"MBEDTLS_AESNI_C" "MBEDTLS_AESCE_C" "MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH"
|
"MBEDTLS_AESNI_C" "MBEDTLS_AESCE_C" "MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH"
|
||||||
}
|
}
|
||||||
|
@ -566,22 +566,6 @@ int mbedtls_aes_crypt_ctr(mbedtls_aes_context *ctx,
|
|||||||
unsigned char *output);
|
unsigned char *output);
|
||||||
#endif /* MBEDTLS_CIPHER_MODE_CTR */
|
#endif /* MBEDTLS_CIPHER_MODE_CTR */
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Internal AES block encryption function. This is only
|
|
||||||
* exposed to allow overriding it using
|
|
||||||
* \c MBEDTLS_AES_ENCRYPT_ALT.
|
|
||||||
*
|
|
||||||
* \param ctx The AES context to use for encryption.
|
|
||||||
* \param input The plaintext block.
|
|
||||||
* \param output The output (ciphertext) block.
|
|
||||||
*
|
|
||||||
* \return \c 0 on success.
|
|
||||||
*/
|
|
||||||
MBEDTLS_CHECK_RETURN_TYPICAL
|
|
||||||
int mbedtls_internal_aes_encrypt(mbedtls_aes_context *ctx,
|
|
||||||
const unsigned char input[16],
|
|
||||||
unsigned char output[16]);
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT)
|
#if !defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT)
|
||||||
/**
|
/**
|
||||||
* \brief Internal AES block decryption function. This is only
|
* \brief Internal AES block decryption function. This is only
|
||||||
|
@ -842,11 +842,12 @@ int mbedtls_aes_xts_setkey_dec(mbedtls_aes_xts_context *ctx,
|
|||||||
AES_RT3(MBEDTLS_BYTE_3(Y0)); \
|
AES_RT3(MBEDTLS_BYTE_3(Y0)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY)
|
||||||
/*
|
/*
|
||||||
* AES-ECB block encryption
|
* AES-ECB block encryption
|
||||||
*/
|
*/
|
||||||
#if !defined(MBEDTLS_AES_ENCRYPT_ALT)
|
MBEDTLS_CHECK_RETURN_TYPICAL
|
||||||
int mbedtls_internal_aes_encrypt(mbedtls_aes_context *ctx,
|
static int mbedtls_internal_aes_encrypt(mbedtls_aes_context *ctx,
|
||||||
const unsigned char input[16],
|
const unsigned char input[16],
|
||||||
unsigned char output[16])
|
unsigned char output[16])
|
||||||
{
|
{
|
||||||
@ -902,7 +903,7 @@ int mbedtls_internal_aes_encrypt(mbedtls_aes_context *ctx,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* !MBEDTLS_AES_ENCRYPT_ALT */
|
#endif /* !MBEDTLS_AES_USE_HARDWARE_ONLY */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AES-ECB block decryption
|
* AES-ECB block decryption
|
||||||
|
Reference in New Issue
Block a user