X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fmain-arcfour-test.c;fp=test_src%2Fmain-arcfour-test.c;h=dcaf2426023c588a705449a0bf785a0d0007c340;hp=eb2e63e56dd870a4735aa3ed58749972263a48d2;hb=a707b2a401ed87cbeee4888bba923f605e951c89;hpb=3a9f9d918fb95474996af535c225a7e187d88372 diff --git a/test_src/main-arcfour-test.c b/test_src/main-arcfour-test.c index eb2e63e..dcaf242 100644 --- a/test_src/main-arcfour-test.c +++ b/test_src/main-arcfour-test.c @@ -45,8 +45,7 @@ void testrun_nessie_arcfour(void){ } void testrun_performance_arcfour(void){ - uint64_t t; - char str[16]; + uint32_t t; uint8_t key[16]; arcfour_ctx_t ctx; @@ -55,21 +54,16 @@ void testrun_performance_arcfour(void){ memset(key, 0, 16); + uart0_flush(); startTimer(1); arcfour_init(key, 16, &ctx); t = stopTimer(); - cli_putstr_P(PSTR("\r\n\tctx-gen time: ")); - ultoa((unsigned long)t, str, 10); - cli_putstr(str); - + printf_P(PSTR("\tctx-gen time: %10"PRIu32"\n"), t); + uart0_flush(); startTimer(1); arcfour_gen(&ctx); t = stopTimer(); - cli_putstr_P(PSTR("\r\n\tencrypt time: ")); - ultoa((unsigned long)t, str, 10); - cli_putstr(str); - - cli_putstr_P(PSTR("\r\n")); + printf_P(PSTR("\tencrypt time: %10"PRIu32"\n"), t); }