Method: Tem::Benchmarks#time_blank_bound_secpack_rsa

Defined in:
lib/tem/benchmarks/blank_bound_secpack.rb

#time_blank_bound_secpack_rsaObject



12
13
14
15
16
17
18
19
# File 'lib/tem/benchmarks/blank_bound_secpack.rb', line 12

def time_blank_bound_secpack_rsa
  secpack = blank_seclosure
  secpack.bind @tem.pubek, :secret, :plain
  print "RSA-bound SECpack has #{secpack.body.length} bytes, " +
        "executes #{blank_seclosure_opcount} instructions and produces " +
        "#{blank_seclosure_outcount} bytes\n"
  do_timing { @tem.execute secpack }
end