Method: Tem::Benchmarks#time_devchip_decrypt_rsa_long
- Defined in:
- lib/tem/benchmarks/devchip_decrypt.rb
#time_devchip_decrypt_rsa_long ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/tem/benchmarks/devchip_decrypt.rb', line 14 def time_devchip_decrypt_rsa_long pubek = @tem.pubek data = (1...120).map { |i| (i * i * 217 + i * 661 + 393) % 256 } encrypted_data = pubek.encrypt data print "RSA-encrypted blob has #{encrypted_data.length} bytes\n" do_timing { @tem.devchip_decrypt encrypted_data, 0 } end |