X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal-performance.c;h=e9ec7707a427141ea1d78ec33e840b2183918964;hb=01166b227940a23b4b666d2bda5964bfd2fbc9da;hp=5108f2544d7ad5a8ef5276b7e1440b8411a35cfc;hpb=2deab9197b8d9d74c01156777b250746c36fba07;p=avr-crypto-lib.git diff --git a/hfal-performance.c b/hfal-performance.c index 5108f25..e9ec770 100644 --- a/hfal-performance.c +++ b/hfal-performance.c @@ -60,6 +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: hashfunction" "\r\n hashsize (bits): ")); printvalue(hf.hashsize_b); @@ -107,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); }