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.
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_init(), cbc_decrypt(), cbc_encrypt(), cfb_decrypt(), cfb_encrypt(), configure_usart(), ctr_blk_t::counter, cText, ctr_encrypt_decrypt(), ecb_decrypt(), ecb_encrypt(), i, ctr_blk_t::i_vector, init_vector, key_vectors, ctr_blk_t::nonce, ofb_encrypt(), printf, 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
[module_inst]
Global Variable declaration
Referenced by configure_serial_drv(), configure_usart(), configure_usart_callbacks(), main(), platform_serial_drv_tx_status(), platform_set_ble_rts_high(), platform_set_ble_rts_low(), serial_bridge_task(), serial_drv_send(), serial_read_byte(), serial_read_data(), setup_transfer_descriptor_rx(), setup_transfer_descriptor_tx(), setup_usart_channel(), usart_configure_flowcontrol(), and usart_read_callback().