diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-24 00:01:36 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-27 23:07:42 +0900 |
commit | 7046ca938defcf8bc11b8f053a3f70a0c3a9766c (patch) | |
tree | b1f67cfc4f757864d7e0fab211dc7af782204bb6 | |
parent | bd9fc48fa2cab651ae3e634deb3c6cea8a6597e5 (diff) | |
download | ruby-7046ca938defcf8bc11b8f053a3f70a0c3a9766c.tar.gz |
test/openssl: X25519 doesn't support signing
-rw-r--r-- | test/openssl/test_pkey_ec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/openssl/test_pkey_ec.rb b/test/openssl/test_pkey_ec.rb index fe128fd455..9c00d5bf26 100644 --- a/test/openssl/test_pkey_ec.rb +++ b/test/openssl/test_pkey_ec.rb @@ -12,7 +12,9 @@ class OpenSSL::TestEC < Test::Unit::TestCase @keys = [] OpenSSL::PKey::EC.builtin_curves.each do |curve, comment| - next if curve.start_with?("Oakley") # Oakley curves are not suitable for ECDSA + # These curves are exceptional + next if ["Oakley", "X25519"].any? { |n| curve.start_with?(n) } + group = OpenSSL::PKey::EC::Group.new(curve) key = OpenSSL::PKey::EC.new(group) |