Add means to disable AES

This commit is contained in:
Peter D. Gray 2020-10-06 13:21:59 -04:00
parent aba6ba441b
commit 2a04e6be23
No known key found for this signature in database
GPG Key ID: F0E6CC6AFC16CF7B

View File

@ -13,7 +13,9 @@
// NOTE: These are not header files, but C files.
#ifndef EXCLUDE_AES
#include "modtcc-aes.c"
#endif
#include "modtcc-crc.c"
#include "modtcc-bip32.c"
#include "modtcc-bip39.c"
@ -43,7 +45,9 @@
STATIC const mp_rom_map_elem_t mp_module_tcc_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorcrypto) },
#ifndef EXCLUDE_AES
{ MP_ROM_QSTR(MP_QSTR_AES), MP_ROM_PTR(&mod_trezorcrypto_AES_type) },
#endif
{ MP_ROM_QSTR(MP_QSTR_crc), MP_ROM_PTR(&mod_trezorcrypto_crc_module) },
{ MP_ROM_QSTR(MP_QSTR_bip32), MP_ROM_PTR(&mod_trezorcrypto_bip32_module) },
{ MP_ROM_QSTR(MP_QSTR_bip39), MP_ROM_PTR(&mod_trezorcrypto_bip39_module) },