Skip to main content

Module aes256

Module aes256 

Source
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:

  1. StandardEnc — out-of-place encryption, full message
  2. StandardEncInPlace — in-place encryption, full message
  3. StandardDec — out-of-place decryption, full message (if test_decrypt)
  4. StandardDecInPlace — in-place decryption, full message (if test_decrypt)
  5. ChunkEnc1 — in-place encryption, first half
  6. ChunkEnc2 — in-place encryption, second half (no re-init, tests IV chaining)
  7. ChunkDec1 — in-place decryption, first half (if test_decrypt)
  8. ChunkDec2 — in-place decryption, second half (if test_decrypt)

Structs§

TestAES256Cbc
TestAES256Ctr
TestAES256Ecb