A simple program to create test vectors for the Digital Design (BIL264) AES project. Utilizes both OpenSSL and a homebrew AES adaptation of tiny-aes-c for failure-control. It is recommended that you run the internal test at all times.
cmake -DCMAKE_BUILD_TYPE=Debug . && make- Almost guaranteed to work and suitable for debugging.
cmake -DCMAKE_BUILD_TYPE=Release . && make- Aggresive optmization but it will still work.
There really isn't much point in using the Release build type apart from amusement. Both take almost no time to run.
aes_benchgen - generate test vectors
Usage: aes_benchgen [OPTION] ...
Options:
-[-i]nternal: check openssl and self aes consistency
-[-k]eyexpand: generate key expansion vectors
-[-a]ddroundkey: generate AddRoundKey vectors
-[-s]ubbytes: generate SubBytes vectors
-[-S]hiftrows: generate ShiftColumns vectors
-[-m]ixcolumns: generate MixColumns vectors
-[-r]ound: generate 2 complete round vectors
-[-c]ipher: generate high-level test vector
-[-h]elp: display this message and exit
No arguments run all tests
This repository is licenced under the BSD-3-Clause. Refer to LICENSE.md for more details.
- OpenSSL project team for the OpenSSL library.
- kokko for the tiny-AES-c file.
- Chris Wellons for the optparse header.