[ruby-cvs:62315] rhe:r55152 (trunk): openssl: add EC.generate

rhe at ruby-lang.org rhe at ruby-lang.org
Wed May 25 01:30:15 JST 2016


rhe	2016-05-25 01:30:15 +0900 (Wed, 25 May 2016)

  New Revision: 55152

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55152

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_pkey_ec.c
    trunk/test/openssl/test_pkey_ec.rb


More information about the ruby-cvs mailing list