]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - host/shavs_test.rb
grøstl, a first impression
[avr-crypto-lib.git] / host / shavs_test.rb
index e6a90d1555d5975a934138ade5d46c21437dd6dd..99553ff47bb3e49047188b58b6a5c6a0c83bb6bd 100644 (file)
@@ -57,7 +57,7 @@ def send_md(md_string)
     $sp.print(md_string[i].chr)
 #      print("DBG s: "+ md_string[i].chr) if $debug
        if(i%20==19)
-               sleep(0.01)
+               sleep(0.015)
        end             
   end
 end
@@ -92,7 +92,7 @@ def run_test(filename)
        b = (/[\s]*MD[\s]*=[\s]*([0-9a-fA-F]*).*/.match(avr_md))[1];
        a.upcase!
        b.upcase!
-       printf("\n%4d: ", line) if (pos%$linewidth==0 and $linewidth!=0)
+       printf("\n%4d (%4d): ", line, (line-1)*$linewidth) if (pos%$linewidth==0 and $linewidth!=0)
        line += 1               if (pos%$linewidth==0 and $linewidth!=0)
        #putc((a==b)?'*':'!')
        if(a==b)