]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - host/get_test.rb
Adding Khazad
[arm-crypto-lib.git] / host / get_test.rb
index 7c9ea3cf0e3617582209045aa77feb26b3de38c4..a08062aec6c2c7fff83e5332cd1fc714ace0a9b8 100644 (file)
@@ -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)