#include <board.h>
#include <string.h>
Go to the source code of this file.
Defines |
#define | DATA_LEN_INBYTE 640 |
#define | DATA_LEN_INWORD (DATA_LEN_INBYTE/4) |
#define | DATA_LEN_INDWORD (DATA_LEN_INBYTE/8) |
#define | AES_VECTOR_0 0x11223344 |
#define | AES_VECTOR_1 0x55667788 |
#define | AES_VECTOR_2 0x11112222 |
#define | AES_VECTOR_3 0x33334444 |
#define | AES_KEY_0 0x01234567 |
#define | AES_KEY_1 0x89ABCDEF |
#define | AES_KEY_2 0x76543210 |
#define | AES_KEY_3 0xFEDCBA98 |
#define | AES_KEY_4 0x55AA55AA |
#define | AES_KEY_5 0xAA55AA55 |
#define | AES_KEY_6 0x0000FFFF |
#define | AES_KEY_7 0xFFFF0000 |
Functions |
void | XDMAC_Handler (void) |
| xDMA handler.
|
void | AES_Handler (void) |
| AES interrupt hander.
|
int | main (void) |
| AES Application entry point.
|
Variables |
const uint32_t | aes_keys [8] |
const uint32_t | aes_vectors [4] |
char | plaintext [DATA_LEN_INBYTE] |
Detailed Description
This file contains all the specific code for the AES
Definition in file main.c.
Function Documentation
AES Application entry point.
- Returns:
- Unused (ANSI-C compatibility).
Definition at line 407 of file main.c.
Variable Documentation
const uint32_t aes_keys[8] |
Initial value: {AES_KEY_0, AES_KEY_1, AES_KEY_2, AES_KEY_3,
AES_KEY_4, AES_KEY_5, AES_KEY_6, AES_KEY_7}
Definition at line 111 of file main.c.
const uint32_t aes_vectors[4] |
Initial value: { AES_VECTOR_0,
AES_VECTOR_1,
AES_VECTOR_2,
AES_VECTOR_3}
Definition at line 113 of file main.c.
char plaintext[DATA_LEN_INBYTE] |
Initial value:"\
The Advanced Encryption Standard (AES) is compliant with the A\
merican FIPS (Federal Information Processing Standard) Publicati\
on 197 specification. AES supports all five confidentiality mode\
s of operation for symmetrical key block cipher algorithms (ECB,\
CBC,OFB, CFB and CTR), as specified in the NIST Special Publicat\
ion 80038A. It is compatible with all these modes via Peripheral\
DMA Controller channels, minimizing processor intervention for \
large buffer transfers.The 128-bit/192-bit/256-bit key is stored\
in four/six/eight 32-bit registers (AES_KEYWRx) which are all wr\
ite-only ......................................................."
Definition at line 122 of file main.c.