Project

General

Profile

Bug #8690 » crash.rb

script to reproduce - drbrain (Eric Hodel), 07/26/2013 05:45 AM

 
require 'openssl'

key = OpenSSL::PKey::RSA.new 1024

cipher = OpenSSL::Cipher.new 'AES-128-CBC-HMAC-SHA1'
encryption_key = cipher.random_key

encrypted = key.export cipher, encryption_key

OpenSSL::PKey::RSA.new encrypted, encryption_key

(1-1/2)