Microchip® Advanced Software Framework

hw/sam0/aes_engine.c File Reference
#include <stdlib.h>
#include <stdint.h>
#include "aes_engine.h"
#include "asf.h"

Macros

#define SUB_BLOCK_COUNT   4
 

Functions

void AESEncode (unsigned char *block, unsigned char *masterKey)
 Encrypts the given block of data. More...
 
void AESInit (void)
 Initializes the AES Engine. More...
 

Variables

struct aes_module aes_instance
 
struct aes_config g_aes_cfg
 
static uint32_t io_data [SUB_BLOCK_COUNT]
 

#define SUB_BLOCK_COUNT   4

Referenced by 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.

struct aes_module aes_instance
struct aes_config g_aes_cfg
uint32_t io_data[SUB_BLOCK_COUNT]
static

Referenced by AESEncode().