]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - host/nessie_check.rb
adding trivium
[arm-crypto-lib.git] / host / nessie_check.rb
index 95f3a83f3b8dff692c76436c019bc53dee813c4e..db69483f26f3dce72941d847f62b0cd03e2b5633 100644 (file)
 =end
 
 def skip_header(file)
+  i=0
   begin
+    i += 1
     l = file.gets().strip
-  end until /[*]{10,}.*/.match(l)
-  begin
-    l = file.gets().strip
-  end until /[*]{10,}.*/.match(l)
+  end until i>10 or m=/[*]{10,}.*/.match(l)
+  if(!m)
+    file.seek(0, IO::SEEK_SET)
+  else
+    begin
+      l = file.gets().strip
+    end until /[*]{10,}.*/.match(l)
+  end
   begin
     l = file.gets().strip
   end until /[=]{5,}.*/.match(l)