https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-06-10T09:37:07ZRuby Issue Tracking SystemRuby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=271362012-06-10T09:37:07ZMartinBosslet (Martin Bosslet)Martin.Bosslet@gmail.com
<ul><li><strong>Category</strong> set to <i>ext</i></li><li><strong>Assignee</strong> set to <i>MartinBosslet (Martin Bosslet)</i></li></ul> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=271372012-06-10T09:38:33ZMartinBosslet (Martin Bosslet)Martin.Bosslet@gmail.com
<ul></ul><p>Also related: <a href="https://bugs.ruby-lang.org/issues/6234" class="external">https://bugs.ruby-lang.org/issues/6234</a></p> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=365222013-02-18T21:48:58Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Target version</strong> changed from <i>2.0.0</i> to <i>2.6</i></li></ul> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=541382015-09-13T03:16:18Zzzak (zzak _)
<ul><li><strong>Assignee</strong> changed from <i>MartinBosslet (Martin Bosslet)</i> to <i>7150</i></li></ul> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=586192016-05-14T11:07:58Zrhenium (Kazuki Yamaguchi)k@rhe.jp
<ul></ul><p>I want to work on this before the release of openssl gem.</p>
<ul>
<li>
<p>EC#public_key returns an EC::Point, not an EC</p>
<p>I think it's better to add new #dup_public (or #public_pkey ?) method for each PKey types, rather than changing EC#public_key to return an EC. Compatibility is one of the reasons, but more important, the name 'public_key' is confusing.</p>
</li>
<li>
<p>EC#private? and #public? are missing</p>
<p>Adding aliases to #private_key? and #public_key? respectively should be enough.</p>
</li>
<li>
<p>EC#generate_key should be #generate_key!</p>
<p>DH has #generate_key!.</p>
</li>
<li>
<p>EC.generate is missing</p>
<p>This can be implemented as a shorthand for EC.new(group).generate_key.</p>
</li>
</ul> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=587892016-05-21T05:30:53ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Applied in changeset r55098.</p>
<hr>
<p>openssl: add OpenSSL::PKey::EC#private? and #public?</p>
<ul>
<li>
<p>ext/openssl/ossl_pkey_ec.c: rename PKey::EC#private_key? and<br>
#public_key? to #private? and #public? for consistency with other<br>
PKey types. Old names remain as alias. <a href="/issues/6567">[ruby-core:45541]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Let OpenSSL::PKey::EC follow the general PKey interface (Closed)" href="https://bugs.ruby-lang.org/issues/6567">#6567</a>]</p>
</li>
<li>
<p>test/openssl/test_pkey_ec.rb (test_check_key): check private? and<br>
public? works correctly.</p>
</li>
</ul> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=592402016-06-15T14:14:06Zrhenium (Kazuki Yamaguchi)k@rhe.jp
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/5600">Bug #5600</a>: OpenSSL::X509::Request can't sign() an OpenSSL::PKey::EC</i> added</li></ul> Ruby master - Bug #6567: Let OpenSSL::PKey::EC follow the general PKey interface https://bugs.ruby-lang.org/issues/6567?journal_id=594422016-07-02T02:22:52Zrhenium (Kazuki Yamaguchi)k@rhe.jp
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/10257">Bug #10257</a>: Generate X.509 certificate/request/CRL with elliptic curve keys</i> added</li></ul>