X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal-performance.c;h=e9ec7707a427141ea1d78ec33e840b2183918964;hb=b3e47e9020424fd3de83add191cabdc8a7d9e7f8;hp=26fd891de4326014e08755e65162eea58b7bc6a9;hpb=b7c1ef29c2b079e52613fd715374f819481810af;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); }