From: GOTOU Yuuzou Date: 2004-06-06T17:59:54+09:00 Subject: Re: Net::SSH update Hi, I'm a maintainer of OpenSSL module. In message <40C1C675.2000006@email.byu.edu>, `Jamis Buck ' wrote: > Well, the thunderous silence that followed my query prompted me to > continue with my self-assigned task to implement Net::SSH in solitude. > > However, I'm rapidly learning *why* Net::SSH has never, to date, been > implemented in Ruby--the OpenSSL module for Ruby leaves out some very > key features (no pun intended), namely: > > 1) It is frankly impossible to create an empty DH key with the Ruby > OpenSSL interface, and > > 2) There is no hook into the RSA_verify method. Is OpenSSL::PKey::RSA#verify not enough? require "openssl" rsa = OpenSSL::PKey::RSA.new(512) data = File.read(__FILE__) signature = rsa.sign(OpenSSL::Digest::SHA1.new, data) p rsa.verify(OpenSSL::Digest::SHA1.new, signature, data) > 1) Add the missing features to Ruby/OpenSSL and then submit patches, > hoping they'll get integrated into the main distro, or I hope this. I would be glad if you can help to improve our code. regards, -- gotoyuzo