This directory contains a basic C model of the AES unit targeting functional verfication of the AES unit during the design phase as well as later design verification.
Besides the actual model, this directory also contains an example application that:
Open the makefile and update the variable BORING_SSL_PATH pointing to the BoringSSL directory on your machine. If make cannot find the crypto library in that directory, the example is automatically linked to OpenSSL instead of BoringSSL.
Simply execute
make
to build the example and
./aes_example KEY_LEN_BYTES
to run the example. The optional argument KEY_LEN_BYTES determines the key length in bytes and is either 16, 24, or 32 for AES-128, 192 or 256, respectively. By default, a key length of 16 Bytes is used (AES-128).