Functions | |
static void | configure_usart (void) |
Function Prototypes. More... | |
void | HardFault_Handler (void) |
Hard fault handler to handle if any hard fault occurs. More... | |
int | main (void) |
Main application function. -> Initialize clock -> Initialize USART for print functions -> Initialize AES to generate Key schedule for AES-128 -> Based on the AES mode enabled in conf_example.h file, execute encryption and decryption of a message and compare them against input data to check its functionality. -> The decrypted message can be viewed on the COM port terminal . More... | |
Variables | |
uint8_t | cText [64] |
uint8_t | init_vector [] |
uint8_t | key_vectors [] |
uint8_t | pText [64] = {"Input_Text_blck1Input_Text_blck2Input_Text_blck3Input_Text_blck4"} |
uint8_t | pText1 [64] |
struct usart_module | usart_instance |
Support and FAQ: visit Microchip Support More... | |
|
static |
Function Prototypes.
Initialize USART to communicate with on board EDBG - SERCOM with the following settings.
Configure EDBG USART for stdio function.
References usart_config::baudrate, EDBG_CDC_MODULE, EDBG_CDC_SERCOM_MUX_SETTING, EDBG_CDC_SERCOM_PINMUX_PAD0, EDBG_CDC_SERCOM_PINMUX_PAD1, EDBG_CDC_SERCOM_PINMUX_PAD2, EDBG_CDC_SERCOM_PINMUX_PAD3, usart_config::mux_setting, usart_config::pinmux_pad0, usart_config::pinmux_pad1, usart_config::pinmux_pad2, usart_config::pinmux_pad3, usart_enable(), usart_get_config_defaults(), and usart_instance.
Referenced by main().
void HardFault_Handler | ( | void | ) |
Hard fault handler to handle if any hard fault occurs.
int main | ( | void | ) |
Main application function.
-> Initialize clock
-> Initialize USART for print functions
-> Initialize AES to generate Key schedule for AES-128
-> Based on the AES mode enabled in conf_example.h file,
execute encryption and decryption of a message and
compare them against input data to check its functionality.
-> The decrypted message can be viewed on the COM port terminal
.
References AES_CTR_COUNTER, AES_CTR_IVECTOR, AES_CTR_NONCE, aes_init(), cbc_decrypt(), cbc_encrypt(), cfb_decrypt(), cfb_encrypt(), CFB_MODE_128, configure_usart(), ctr_blk_t::counter, cText, ctr_encrypt_decrypt(), ecb_decrypt(), ecb_encrypt(), ctr_blk_t::i_vector, init_vector, key_vectors, ctr_blk_t::nonce, ofb_encrypt(), pText, pText1, and system_init().
uint8_t cText[64] |
Referenced by main().
uint8_t init_vector[] |
Referenced by main().
uint8_t key_vectors[] |
Referenced by main().
uint8_t pText[64] = {"Input_Text_blck1Input_Text_blck2Input_Text_blck3Input_Text_blck4"} |
Referenced by main().
uint8_t pText1[64] |
Referenced by main().
struct usart_module usart_instance |
Support and FAQ: visit Microchip Support
Global Variable declaration
Referenced by configure_usart().