X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fget_test.rb;h=a08062aec6c2c7fff83e5332cd1fc714ace0a9b8;hb=498cf95d73faff93a848d2c0ffec3987769670bb;hp=7c9ea3cf0e3617582209045aa77feb26b3de38c4;hpb=3f2f2071c47e2e424af71cc85697f3eb26c24277;p=arm-crypto-lib.git diff --git a/host/get_test.rb b/host/get_test.rb index 7c9ea3c..a08062a 100644 --- a/host/get_test.rb +++ b/host/get_test.rb @@ -1,7 +1,7 @@ #!/usr/bin/ruby # get_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 @@ -27,7 +27,7 @@ def read_line(error_msg=true) puts("ERROR: read timeout!\n") if error_msg return nil end - s.gsub(/\006/, ''); + return s.delete("\006"); end def readTestVector(param) @@ -77,7 +77,7 @@ def readTestVector(param) set=m[1].to_i; print("\nSet "+m[1]+":"); end - if (m=/Set [0-9]*, vector#[\s]*([0-9]+):/.match(lb)) + if (m=/Set [0-9], vector#[\s]*([0-9]+):/.match(lb)) vector=m[1].to_i; #print(" "+m[1]); if(vector!=0 && vector % $linewidth==0)