Issue #4418 has been updated by Ippei Obayashi.


Hi, Martin

RSA#public_key returns a RSA object, DSA#public_key returns a
DSA object, but EC#public_key does not return a EC object (it returns a EC::Point object).
I feel this fact is also confusing.
----------------------------------------
Bug #4418: OpenSSL::PKey::DH#public_key
http://redmine.ruby-lang.org/issues/4418

Author: Ippei Obayashi
Status: Assigned
Priority: Normal
Assignee: Hiroshi NAKAMURA
Category: ext
Target version: 
ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]


 OpenSSL::PKey::DH#public_key ??????????????????????? DH ?????????????製????????????????????
   require 'openssl'
   dh = OpenSSL::PKey::DH.generate(1024) # => ?????????????????????????????????????
   p dh.pub_key # => ???????????表示
   p dh.public_key.pub_key # => nil
 
 DH ????????RSA??????????????????????????????????????????????????????????
 ???????????????????????????????????????????????????????????????止????????????????????????????????


-- 
http://redmine.ruby-lang.org