X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fshavs_test2.rb;h=36c3e8cdeb00d1218f98573fa10c29f9daf9d6e1;hb=92e0ee3f719d375d69300c7c1c48138d52330fcf;hp=4d411cbc741705a7b440afe8c13e506d3a28006b;hpb=f59c19cdaa2b415ea72a30083ee7df085c2a6ae9;p=arm-crypto-lib.git diff --git a/host/shavs_test2.rb b/host/shavs_test2.rb index 4d411cb..36c3e8c 100644 --- a/host/shavs_test2.rb +++ b/host/shavs_test2.rb @@ -1,7 +1,7 @@ #!/usr/bin/ruby # shavs_test.rb =begin - This file is part of the AVR-Crypto-Lib. + This file is part of the ARM-Crypto-Lib. Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -24,7 +24,7 @@ require 'rubygems' require 'serialport' require 'getopt/std' -$buffer_size = 0 +$buffer_size = 0 # set automatically in init_system $conffile_check = Hash.new $conffile_check.default = 0 @@ -137,19 +137,19 @@ end =end def send_md(md_string) # puts 'DBG: send_md; md_string.length = '+md_string.length.to_s+'; buffer_size = '+$buffer_size.to_s - bs = $buffer_size*2 + bs = $buffer_size $sp.print("Msg = ") for i in 0..((md_string.length-1)/bs) # puts 'DBG bulk send' - if(md_string.length-i*bs also read config from +# -i skip until test nr. +# -j start with testfile +# -h ??? +# -d enable debug mode +# -c ??? +# -a ??? opts = Getopt::Std.getopts("s:f:i:j:hdca") @@ -299,7 +311,7 @@ algo_tasks.each do |algoa| puts("\n[errors: "+ nerrors.to_s() +"]") logfile.puts("[error] "+nerrors.to_s+" "+conf[algo]["file_#{i}"]+ " ("+Time.now.to_s()+")") end - i += 1 + i = i+1 end logfile.close() end