diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-24 00:01:36 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 18:43:53 +0900 |
commit | 407625e08a81a05f935a9fed13a3d42db6f4f45b (patch) | |
tree | 03e5476825e951186b0a9db4f7ae4ad46a718b34 | |
parent | ea4a206970f089843e7d57789560290d81bfe667 (diff) | |
download | ruby-407625e08a81a05f935a9fed13a3d42db6f4f45b.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) |