X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fmain-rabbit-test.c;h=02538316dd1ed9ed4d0c017c1e0ec66c3fd6415b;hp=b60de60decc1d9941eb30d434f228eace58e614d;hb=701cee0d98aab48dd3192c8cc7c77eb42581bc56;hpb=21bfb1fb168b3114f675f34e257b6acc557b2de8 diff --git a/test_src/main-rabbit-test.c b/test_src/main-rabbit-test.c index b60de60..0253831 100644 --- a/test_src/main-rabbit-test.c +++ b/test_src/main-rabbit-test.c @@ -35,7 +35,9 @@ #include #include -char* algo_name = "Rabbit"; +#include + +const char* algo_name = "Rabbit"; /***************************************************************************** * additional validation-functions * @@ -60,12 +62,14 @@ void test_vector(void* key, void* iv, const void* ref){ cli_hexdump(ctx.buffer, 16); } ctx.buffer_idx=16; + rabbit_gen(&ctx); if(!ref || (memcmp_P(ctx.buffer, ref, 16))!=0){ fail = 1; cli_putstr_P(PSTR("\r\n S[0]: ")); cli_hexdump(ctx.buffer, 16); } ctx.buffer_idx=16; + rabbit_gen(&ctx); if(!ref || (memcmp_P(ctx.buffer, ref, 16))!=0){ fail = 1; cli_putstr_P(PSTR("\r\n S[0]: ")); @@ -212,7 +216,7 @@ const char test_str[] PROGMEM = "test"; const char performance_str[] PROGMEM = "performance"; const char echo_str[] PROGMEM = "echo"; -cmdlist_entry_t cmdlist[] PROGMEM = { +const cmdlist_entry_t cmdlist[] PROGMEM = { { nessie_str, NULL, testrun_nessie_rabbit}, { performance_str, NULL, testrun_performance_rabbit}, { first_str, NULL, nessie_first},