diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-24 16:30:15 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-24 16:30:15 +0000 |
commit | 85500b6634290809aafc7be3eaec9f0c77b50ca9 (patch) | |
tree | 182bb2bc4938d4e0464613ca9eb06c99ea3f9c94 /enc/unicode.c | |
parent | 8cbd74a362a918b6ce332d6240432318165527b0 (diff) | |
download | ruby-85500b6634290809aafc7be3eaec9f0c77b50ca9.tar.gz |
openssl: add EC.generate
* ext/openssl/ossl_pkey_ec.c (ec_key_new_from_group): Create a new
EC_KEY on given EC group. Extracted from ossl_ec_key_initialize().
(ossl_ec_key_s_generate): Added. Create a new EC instance and
generate a random private and public key.
(ossl_ec_key_initialize): Use ec_key_new_from_group().
(Init_ossl_ec): Define the new method EC.generate. This change is
for consistency with other PKey types. [ruby-core:45541] [Bug #6567]
* test/openssl/test_pkey_ec.rb: Test that EC.generate works.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
0 files changed, 0 insertions, 0 deletions