Microchip® Advanced Software Framework

aes.c File Reference

SAM Advanced Encryption Standard driver.

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 <aes.h>
#include <system.h>

Functions

void aes_disable (struct aes_module *const module)
 Disable the AES module. More...
 
void aes_enable (struct aes_module *const module)
 Enable the AES module. More...
 
void aes_get_config_defaults (struct aes_config *const config)
 Initializes an AES configuration structure to defaults. More...
 
void aes_init (struct aes_module *const module, Aes *const hw, struct aes_config *const config)
 Initialize the AES module. More...
 
void aes_read_output_data (struct aes_module *const module, uint32_t *output_data_buffer)
 Read the output data. More...
 
void aes_set_config (struct aes_module *const module, Aes *const hw, struct aes_config *const config)
 Configure the AES module. More...
 
void aes_write_init_vector (struct aes_module *const module, const uint32_t *vector)
 Write the initialization vector (for the CBC, CFB, OFB, CTR, and GCM cipher modes). More...
 
void aes_write_input_data (struct aes_module *const module, const uint32_t *input_data_buffer)
 Write the input data (four consecutive 32-bit words). More...
 
void aes_write_key (struct aes_module *const module, const uint32_t *key)
 Write the 128/192/256-bit cryptographic key. More...