From: leon breedt Date: 2005-01-22T14:10:25+09:00 Subject: OpenSSL::PKey::RSA accepts empty constructor (BUG?) It doesn't seem like you can do much with an empty RSA object (no #new parameters), so I'm not sure why its exposed to Ruby? It does not seem possible to set public/private key values after the fact on an RSA instance. Also, it allows for possible coredumps: irb(main):001:0> require 'openssl' => true irb(main):002:0> rsa = OpenSSL::PKey::RSA.new => -----BEGIN RSA PUBLIC KEY----- MAA= -----END RSA PUBLIC KEY----- irb(main):004:0> rsa.public_encrypt "data" (irb):4: [BUG] Segmentation fault ruby 1.8.2 (2004-12-23) [i386-linux] Leon