X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal-performance.c;h=e9ec7707a427141ea1d78ec33e840b2183918964;hb=7701e318e4e2bac7f84dbf6e368f1501814948fc;hp=26fd891de4326014e08755e65162eea58b7bc6a9;hpb=dca8c6894a08717979d3e4f64908702620171dee;p=avr-crypto-lib.git diff --git a/hfal-performance.c b/hfal-performance.c index 26fd891..e9ec770 100644 --- a/hfal-performance.c +++ b/hfal-performance.c @@ -60,7 +60,7 @@ void hfal_performance(const hfdesc_t* hd){ cli_putstr_P(PSTR("\r\n\r\n === ")); cli_putstr_P(hf.name); cli_putstr_P(PSTR(" performance === " - "\r\n type: hash" + "\r\n type: hashfunction" "\r\n hashsize (bits): ")); printvalue(hf.hashsize_b); @@ -108,8 +108,10 @@ void hfal_performance_multiple(const hfdesc_t** hd_list){ const hfdesc_t* hd; for(;;){ hd = (void*)pgm_read_word(hd_list); - if(!hd) + if(!hd){ + cli_putstr_P(PSTR("\r\n\r\n End of performance figures\r\n")); return; + } hfal_performance(hd); hd_list = (void*)((uint8_t*)hd_list + 2); }