Expand description
Test the AES hardware for ECB, CBC, and CTR modes using NIST SP 800-38A vectors.
Each test struct runs the following steps in sequence:
- StandardEnc — out-of-place encryption, full message
- StandardEncInPlace — in-place encryption, full message
- StandardDec — out-of-place decryption, full message (if test_decrypt)
- StandardDecInPlace — in-place decryption, full message (if test_decrypt)
- ChunkEnc1 — in-place encryption, first half
- ChunkEnc2 — in-place encryption, second half (no re-init, tests IV chaining)
- ChunkDec1 — in-place decryption, first half (if test_decrypt)
- ChunkDec2 — in-place decryption, second half (if test_decrypt)