This simple example shows how to use the Data Encryption Standard (DES) to encrypt and decrypt 8-byte block data by single DES and 3DES, 3 x 8-byte data block by DES CBC mode.
All AVR XMEGA devices with DES instruction in the AVR XMEGA core can be used. This example have been tested with the following setup:
The example will implement DES, 3DES and DES in CBC mode. It uses the xplain LEDS to show the AES operation results.
This example depends on the following modules:
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.