Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AES Software Library Demo for SAM D21 Xplained Pro Documentation

Introduction

This is the documentation of software library implementation of AES-128 (FIPS -197)and its five confidentiality modes (FIPS SP800-38A) as per FIPS standard. This also give demonstration example implementing the five modes.

In this example, for a given 64 block of input plain text, AES encryption is performed. The Decryption is performed on the resulting cipher text. The resulting plain text should be same as that of the input plain text. This confirms the working of each mode.

The corresponding application note mentioned below should be referred for the detailed documentation about software library implementation and AES mode description. Application Note: Software library for AES-128 Encryption and Decryption

Main files related to this application

  • aes.c : AES-128 source file
  • aes.h : AES-128 header file
  • crypt.c : 5 modes of AES-128 source file
  • crypt.h : 5 modes of AES-128 header file
  • conf_clock.h : Clock configuration file
  • conf_example.h : Example configuration file
  • main.c : Main Application file

References

  • Application Note : Software library for AES-128 Encryption and Decryption
  • Respective Device datasheet
  • FIPS-197 standard for description about AES-128 algorithm
  • FIPS SP800-38A standard for 5 modes description

Compiler Support

This application supports

  • ARM GCC

Test Information

This example has been tested on SAM D21 Xplained Pro board. As the AES software library is platform independent, the implementation can be adopted for any device.

Setup Information of this example

The SAM D21 Xplained Pro board is connected to PC via EBDG port. Terminal window with EDBG Virtual COM port should be opened with setting 115200 baud rate, No parity and 1 stop bit with hardware flow control None. Once the firmware is programmed, the input plain text message and message after decrypting is printed. Both the message should be same if the encryption and decryption of all modes are executed properly.

Contact Information

For further information, visit http://www.microchip.com. Support and FAQ: visit Microchip Support

Author
Microchip Technology Inc : http://www.microchip.com