#include "sysclock.h"
#include "hw_gptm.h"
-#include "aes/aes.h"
+#include "aes.h"
#include "nessie_bc_test.h"
#include "performance_test.h"
}
}
+void crypto_test(void){
+ uint8_t test_data[16], test_key[32];
+ aes256_ctx_t ctx;
+ memset(test_key, 0xA5, 32);
+ memset(test_data, 0, 16);
+ aes256_init(test_key, &ctx);
+ aes256_enc(test_data, &ctx);
+ cli_putstr("\r\ncrypto test data:\r\n");
+ cli_hexdump_block(test_data, 16, 4, 8);
+}
+
+
void testrun_testkey_aes(void){
testrun_testkey_aes128();
testrun_testkey_aes192();
{ "testcmac72", NULL, testrun_aes128_cmac72 },
{ "testcmac0", NULL, testrun_aes192_cmac0 },
{ "testeax", NULL, testrun_aes128_eax },
+ { "quick-test", NULL, crypto_test },
{ "cmacvs_list", NULL, cmacvs_listalgos },
{ "cmacvs_set", (void*)1, (void_fpt)cmacvs_setalgo },
{ "cmacvs_test1", NULL, cmacvs_test1 },