Microchip® Advanced Software Framework

aesa.c File Reference

AES software driver for SAM.

This file defines a useful set of functions for the AES on SAM devices.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "aesa.h"
#include "sysclk.h"
#include "sleepmgr.h"
#include "conf_aesa.h"

Functions

void aes_disable (struct aes_dev_inst *const dev_inst)
 Disable the AES. More...
 
void aes_enable (struct aes_dev_inst *const dev_inst)
 Enable the AES. More...
 
void aes_get_config_defaults (struct aes_config *const cfg)
 Initializes a AES configuration structure to defaults. More...
 
bool aes_init (struct aes_dev_inst *const dev_inst, Aesa *const aesa, struct aes_config *const cfg)
 Initialize the AES module. More...
 
void aes_set_callback (struct aes_dev_inst *const dev_inst, aes_interrupt_source_t source, aes_callback_t callback, uint8_t irq_level)
 Set callback for AES. More...
 
void aes_write_initvector (struct aes_dev_inst *const dev_inst, const uint32_t *p_vector)
 Write the initialization vector (for the CBC, CFB, OFB & CTR cipher modes) More...
 
void aes_write_key (struct aes_dev_inst *const dev_inst, const uint32_t *p_key)
 Write the 128/192/256bit cryptographic key. More...
 
void AESA_Handler (void)
 The AES interrupt handler. More...
 

Variables

aes_callback_t aes_callback_pointer
 AES callback function pointer. More...
 

void AESA_Handler ( void  )

The AES interrupt handler.

References aes_callback_pointer, and Assert.

aes_callback_t aes_callback_pointer

AES callback function pointer.

Referenced by aes_set_callback(), and AESA_Handler().