X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=main-noekeon-test.c;h=c7b21e722872b023048adcaf855ef67f060fb6aa;hb=bddd3069b50823af3bc567f073f574dff74d416c;hp=43eb3a90fc5080d481644d5ff7ae179b4078c60c;hpb=9e7453525f32441ea49ef1d9b3248e94d9554eec;p=avr-crypto-lib.git diff --git a/main-noekeon-test.c b/main-noekeon-test.c index 43eb3a9..c7b21e7 100644 --- a/main-noekeon-test.c +++ b/main-noekeon-test.c @@ -127,7 +127,6 @@ void testrun_stdtest_noekeon(void){ noekeon_enc(data, &ctx); testrun_stdtest_runindirect(data, key3); - uart_putstr_P(PSTR("\r\nTest vectors for block cipher Noekeon in Direct-Key Mode:\r\n")); memset(key, 0, 16); @@ -152,7 +151,7 @@ void testrun_stdtest_noekeon(void){ void testrun_performance_noekeon(void){ uint16_t i,c; uint64_t t; - char str[6]; + char str[16]; uint8_t key[16], data[16]; noekeon_ctx_t ctx; @@ -173,21 +172,22 @@ void testrun_performance_noekeon(void){ noekeon_init(key, &ctx); t = stopTimer(); uart_putstr_P(PSTR("\r\n\tctx-gen time: ")); - uart_hexdump(&t, 8); - + ultoa((unsigned long)t, str, 10); + uart_putstr(str); startTimer(1); - noekeon_enc(data, ctx); + noekeon_enc(data, &ctx); t = stopTimer(); uart_putstr_P(PSTR("\r\n\tencrypt time: ")); - uart_hexdump(&t, 8); - + ultoa((unsigned long)t, str, 10); + uart_putstr(str); startTimer(1); - noekeon_dec(data, ctx); + noekeon_dec(data, &ctx); t = stopTimer(); uart_putstr_P(PSTR("\r\n\tdecrypt time: ")); - uart_hexdump(&t, 8); + ultoa((unsigned long)t, str, 10); + uart_putstr(str); uart_putstr_P(PSTR("\r\n")); } /*****************************************************************************