SAMV71 Xplained Ultra Software Package 1.3

Advanced Encryption Standard Example

Purpose

This application demonstrates the Advanced Encryption Standard (AES) peripheral integrated in some of SAMV7 micro-controllers family. It encrypts and decrypts several test values in Electronic CodeBook (ECB) and Cipher Block Chaining (CBC),OBC,OFB,TRC modes and checks them against the known answers.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

This example shows how to configure AES in encryption and decryption mode. In encryption mode, it encrypts plain text with one of ECB, CBC, OFB ,CFB and CTR mode. Programmable key mode with processing using with or without DMA support. In decryption mode, it decrypts cipher data generate from encryption mode and get the known plain value.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. In the terminal window, the following text should appear (values depend on the board and chip used):
          -- AES Example xxx --
          -- SAMxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
          -- Menu Choices for this example--
    
  4. Input command according to the menu.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines