X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fnessie_check.rb;h=db69483f26f3dce72941d847f62b0cd03e2b5633;hb=7390f9235d6bc08b7fe34a5f43a04bd3b58f6ea6;hp=33eb4a383447dcb67cf10f6d0d6e663abef45dad;hpb=5f46191d2615ebe2caa6e111b478031a34f20b9e;p=arm-crypto-lib.git diff --git a/host/nessie_check.rb b/host/nessie_check.rb index 33eb4a3..db69483 100644 --- a/host/nessie_check.rb +++ b/host/nessie_check.rb @@ -1,7 +1,7 @@ #!/usr/bin/ruby # nessie_check.rb =begin - This file is part of the AVR-Crypto-Lib. + This file is part of the ARM-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -19,12 +19,18 @@ =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)