]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - host/shavs_test.rb
+Shabal
[avr-crypto-lib.git] / host / shavs_test.rb
index 1ce86fbcd69686c9ece0f3183161e29cc564e439..74d02c8f109fc539f4779d3300ac01de0db42f56 100644 (file)
@@ -25,16 +25,19 @@ require 'serialport'
 def init_system
   sleep 1
   $sp.print("echo  off \r")
+  print("DBG i: " + "echo  off \r"+"\n") if $debug
 #  line = $sp.readlines()
 #  print("DBG 0.0: ")
 #  print(line)
 #  sleep 1
   $sp.print("shavs_set #{$algo_select} \r")
+  print("DBG i: " + "shavs_set #{$algo_select} \r"+"\n") if $debug
 #  line = $sp.readlines()
 #  print("DBG 0.1: ")
 #  print(line)
 #  sleep 1
   $sp.print("shavs_test1 \r")
+  print("DBG i: " + "shavs_test1 \r"+"\n") if $debug
 #  line = $sp.readlines()
 #  print("DBG 0.2: ")
 #  print(line)
@@ -52,7 +55,7 @@ end
 def send_md(md_string)
   for i in 0..md_string.length-1
     $sp.print(md_string[i].chr)
-#      print(md_string[i].chr)
+#      print("DBG s: "+ md_string[i].chr) if $debug
        if(i%20==19)
                sleep(0.1)
        end