X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-serpent-test.c;h=b4de5f432eff11bfbf461ebceea73f9cb1243980;hb=a15d02c94b1ce1fc9861e654e96e0ee369fe08e9;hp=5c450b64df58282e38797b46216f5d4a8a279fdc;hpb=981c5b71dd5c99d080b9f36b0db9a211eeef494f;p=avr-crypto-lib.git diff --git a/test_src/main-serpent-test.c b/test_src/main-serpent-test.c index 5c450b6..b4de5f4 100644 --- a/test_src/main-serpent-test.c +++ b/test_src/main-serpent-test.c @@ -62,6 +62,19 @@ void testrun_nessie_serpent(void){ nessie_bc_run(); } +void testrun_test_serpent(void){ + uint8_t key[32]; + serpent_ctx_t ctx; + uint8_t i; + memset(key, 0, 16); + serpent_init(key, 128, &ctx); + for(i=0; i<33; ++i){ + uart_putstr_P(PSTR("\r\n subkekey ")); + uart_hexdump(&i, 1); + uart_putstr_P(PSTR(" : ")); + uart_hexdump(ctx.k[i], 16); + } +} void testrun_performance_serpent(void){ uint64_t t; @@ -114,7 +127,7 @@ int main (void){ uart_putstr_P(PSTR(")\r\nloaded and running\r\n")); PGM_P u = PSTR("nessie\0test\0performance\0"); - void_fpt v[] = {testrun_nessie_serpent, testrun_nessie_serpent, testrun_performance_serpent}; + void_fpt v[] = {testrun_nessie_serpent, testrun_test_serpent, testrun_performance_serpent}; while(1){ if (!getnextwordn(str,20)){DEBUG_S("DBG: W1\r\n"); goto error;}