1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/openssl
rhe 85500b6634 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
2016-05-24 16:30:15 +00:00
..
lib openssl: fix possible SEGV on race between SSLSocket#stop and #connect 2016-05-21 07:25:00 +00:00
depend Update dependencies. 2016-04-11 11:50:00 +00:00
deprecation.rb
extconf.rb openssl/extconf.rb: NO SSL macros first 2016-05-09 00:05:33 +00:00
openssl_missing.c openssl: register ex_data index for X509_STORE{_CTX,} respectively 2016-05-19 04:53:05 +00:00
openssl_missing.h openssl: register ex_data index for X509_STORE{_CTX,} respectively 2016-05-19 04:53:05 +00:00
ossl.c openssl: Avoid reference to unset global variable in Init_openssl() 2016-05-23 12:10:38 +00:00
ossl.h openssl: avoid deprecated M_ASN1_* macros 2016-05-24 12:39:57 +00:00
ossl_asn1.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_asn1.h
ossl_bio.c
ossl_bio.h
ossl_bn.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_bn.h
ossl_cipher.c openssl: make Cipher#key= and #iv= reject too long values 2016-05-24 13:09:03 +00:00
ossl_cipher.h
ossl_config.c
ossl_config.h
ossl_digest.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_digest.h
ossl_engine.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_engine.h
ossl_hmac.c
ossl_hmac.h
ossl_ns_spki.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_ns_spki.h
ossl_ocsp.c
ossl_ocsp.h
ossl_pkcs5.c
ossl_pkcs5.h
ossl_pkcs7.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_pkcs7.h
ossl_pkcs12.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_pkcs12.h
ossl_pkey.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_pkey.h
ossl_pkey_dh.c openssl: clear OpenSSL error queue before return to Ruby 2016-05-18 04:07:47 +00:00
ossl_pkey_dsa.c openssl: improve handling of password for encrypted PEM 2016-05-20 15:05:25 +00:00
ossl_pkey_ec.c openssl: add EC.generate 2016-05-24 16:30:15 +00:00
ossl_pkey_rsa.c openssl: improve handling of password for encrypted PEM 2016-05-20 15:05:25 +00:00
ossl_rand.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_rand.h
ossl_ssl.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_ssl.h
ossl_ssl_session.c
ossl_version.h
ossl_x509.c
ossl_x509.h
ossl_x509attr.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_x509cert.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ossl_x509crl.c openssl: clear OpenSSL error queue before return to Ruby 2016-05-18 04:07:47 +00:00
ossl_x509ext.c openssl: avoid deprecated M_ASN1_* macros 2016-05-24 12:39:57 +00:00
ossl_x509name.c
ossl_x509req.c openssl: clear OpenSSL error queue before return to Ruby 2016-05-18 04:07:47 +00:00
ossl_x509revoked.c
ossl_x509store.c openssl: use StringValueCStr() where NUL-terminated string is expected 2016-05-23 11:40:07 +00:00
ruby_missing.h