]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - host/nessie_check.rb
adjusting make-system for AEAD-Ciphers
[avr-crypto-lib.git] / host / nessie_check.rb
index 33eb4a383447dcb67cf10f6d0d6e663abef45dad..cea8925e31438c8295f1b01ab5c89279d0677d13 100644 (file)
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 =end
 
+$debug = true
+
 def skip_header(file)
   begin
     l = file.gets().strip
+    l = '' if !l
   end until /[*]{10,}.*/.match(l)
   begin
     l = file.gets().strip
+    l = '' if !l
   end until /[*]{10,}.*/.match(l)
   begin
     l = file.gets().strip
+    l = '' if !l
   end until /[=]{5,}.*/.match(l)
   begin
     l = file.gets().strip
+    l = '' if !l
   end until /[=]{5,}.*/.match(l)
 end
 
@@ -85,8 +91,8 @@ def compare(fname1, fname2)
        end
        if(a!=b and a!=nil and b!=nil)
          $error += 1
-#        puts("a key: "+a[0]+" value: "+a[1])
-#        puts("b key: "+b[0]+" value: "+b[1])
+         puts("a key: "+a[0]+" value: "+a[1]) if $debug
+         puts("b key: "+b[0]+" value: "+b[1]) if $debug
        end
   end until a==nil or b==nil
 end