aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-24 00:01:36 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-14 20:00:59 +0900
commit2fa7ddd6fd867be63f0765d6da5ead1b7422aafb (patch)
treed8d83005fc21e43f975b62d1144e25899422ba32
parent2a0601fdf79323989f1466069cfb68796035e5ea (diff)
downloadruby-2fa7ddd6fd867be63f0765d6da5ead1b7422aafb.tar.gz
test/openssl: X25519 doesn't support signing
-rw-r--r--test/openssl/test_pkey_ec.rb4
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)