2015-08-22 07:16:58 +08:00
|
|
|
Title: test_aes
|
|
|
|
|
|
|
|
Description:
|
|
|
|
|
|
|
|
This test verifies that the TinyCrypt AES APIs operate as expected.
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
Building and Running Project:
|
|
|
|
|
2016-11-03 21:42:00 +08:00
|
|
|
This project outputs to the console. It can be built and executed
|
2015-08-22 07:16:58 +08:00
|
|
|
on QEMU as follows:
|
|
|
|
|
|
|
|
make qemu
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Troubleshooting:
|
|
|
|
|
|
|
|
Problems caused by out-dated project information can be addressed by
|
|
|
|
issuing one of the following commands then rebuilding the project:
|
|
|
|
|
|
|
|
make clean # discard results of previous builds
|
|
|
|
# but keep existing configuration info
|
|
|
|
or
|
|
|
|
make pristine # discard results of previous builds
|
|
|
|
# and restore pre-defined configuration info
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Sample Output:
|
|
|
|
tc_start() - Performing AES128 tests:
|
|
|
|
AES128 test_1 (NIST key schedule test):
|
|
|
|
===================================================================
|
|
|
|
PASS - test_1.
|
|
|
|
AES128 test_2 (NIST encryption test):
|
|
|
|
===================================================================
|
|
|
|
PASS - test_2.
|
|
|
|
AES128 test_3 (NIST fixed-key and variable-text):
|
|
|
|
===================================================================
|
|
|
|
PASS - test_3.
|
|
|
|
AES128 test #4 (NIST variable-key and fixed-text):
|
|
|
|
===================================================================
|
|
|
|
PASS - test_4.
|
|
|
|
All AES128 tests succeeded!
|
|
|
|
===================================================================
|
|
|
|
PASS - RegressionTask.
|
|
|
|
===================================================================
|
|
|
|
PROJECT EXECUTION SUCCESSFUL
|