This is the implementation of AES Module.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | BLOCKSIZE 16 |
Functions | |
void | AESEncode (unsigned char *block, unsigned char *key) |
Encrypts the given block of data. More... | |
void | AESInit (void) |
Initializes the AES Engine. More... | |
#define BLOCKSIZE 16 |
void AESEncode | ( | unsigned char * | block, |
unsigned char * | masterKey | ||
) |
Encrypts the given block of data.
[in,out] | block | Block of input data to be encrypted |
[in] | key | Cryptographic key to be used in AES encryption |
References _rcon, _roundCounter, AES_AUTO_START, AES_CFB_SIZE_128, aes_clear_new_message(), AES_ECB_MODE, AES_ENCRYPTION, AES_ENCRYPTION_COMPLETE, aes_get_status(), aes_instance, AES_KEY_SIZE_128, aes_read_output_data(), aes_set_config(), aes_set_new_message(), aes_write_input_data(), aes_write_key(), BLOCKSIZE, aes_config::cfb_size, convert_byte_array_to_32_bit(), EncKeySchedule(), EncodeShiftRow(), aes_config::encrypt_mode, g_aes_cfg, i, io_data, aes_config::key_size, aes_config::lod, aes_config::opmode, STable, aes_config::start_mode, SUB_BLOCK_COUNT, and xtime.
Referenced by SAL_AESEncode().
void AESInit | ( | void | ) |
Initializes the AES Engine.
[setup_config]
[setup_config]
[setup_config_defaults]
[setup_config_defaults] [module_enable]
References aes_enable(), aes_get_config_defaults(), aes_init(), aes_instance, and g_aes_cfg.
Referenced by SAL_Init().