]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - host/performance2wiki.rb
fixing some warnings (AES); simplifyning AES headers (now simply include "aes.h"...
[avr-crypto-lib.git] / host / performance2wiki.rb
index 29afa46194add6bec8de178038fb13649380e7f1..a60cde153a0eb29f517586347d7743ebb0988f35 100644 (file)
@@ -57,10 +57,10 @@ def process_hashfunction(fin, name)
   m = lb.match(/ctx2hash \(cycles\):[\s]*([\d]*)/)
   convtime = m[1].to_i()
   
-  printf("| %20s || %3s || %3s || || %4d || %4d || %4d ||" +
+  printf("| %20s || %3s || %3s || || %4d || || %4d || %4d ||" +
          " %6d || %6d || %7.2f || %6d || || || \n|-\n" , 
         name, $lang, $lang ,ctxsize, hashsize, blocksize, 
-           inittime, nextblocktime, nextblocktime.to_f/blocksize*8,
+           inittime, nextblocktime, nextblocktime.to_f/(blocksize/8),
                lastblocktime+convtime)
 end