diff options
author | Jun Aruga <[email protected]> | 2023-08-22 20:31:16 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-08-28 12:05:32 +0900 |
commit | 69d9fda9f5b579c6992621f4cd165cd3ca7b4b3e (patch) | |
tree | 14d75e93256cd96d3df82747857f5f4c3a663255 | |
parent | 80f35d96ae60fdf238ff62982094b4b4dbd13ecf (diff) |
[ruby/openssl] Remove the pending logics by the pend_on_openssl_issue_21493.
Because we will add a workaround to avoid this issue.
https://github.com/ruby/openssl/commit/d157ba1d3b
-rw-r--r-- | test/openssl/test_pkey.rb | 6 | ||||
-rw-r--r-- | test/openssl/utils.rb | 16 |
2 files changed, 0 insertions, 22 deletions
diff --git a/test/openssl/test_pkey.rb b/test/openssl/test_pkey.rb index da3ae5d67d..5fe37e2d64 100644 --- a/test/openssl/test_pkey.rb +++ b/test/openssl/test_pkey.rb @@ -82,8 +82,6 @@ class OpenSSL::TestPKey < OpenSSL::PKeyTestCase end def test_ed25519 - pend_on_openssl_issue_21493 - # Test vector from RFC 8032 Section 7.1 TEST 2 priv_pem = <<~EOF -----BEGIN PRIVATE KEY----- @@ -148,8 +146,6 @@ class OpenSSL::TestPKey < OpenSSL::PKeyTestCase end def test_x25519 - pend_on_openssl_issue_21493 - # Test vector from RFC 7748 Section 6.1 alice_pem = <<~EOF -----BEGIN PRIVATE KEY----- @@ -202,8 +198,6 @@ class OpenSSL::TestPKey < OpenSSL::PKeyTestCase end def test_compare? - pend_on_openssl_issue_21493 - key1 = Fixtures.pkey("rsa1024") key2 = Fixtures.pkey("rsa1024") key3 = Fixtures.pkey("rsa2048") diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index b5ffbe1c99..3d4d05fe02 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -144,22 +144,6 @@ module OpenSSL::TestUtils return false unless version !major || (version.map(&:to_i) <=> [major, minor, fix]) >= 0 end - - # OpenSSL 3: x25519 a decode from and then encode to a pem file corrupts the - # key if fips+base provider is used - # This issue happens in OpenSSL between 3.0,0 and 3.0.10 or between 3.1.0 and - # 3.1.2. - # https://github.com/openssl/openssl/issues/21493 - # https://github.com/openssl/openssl/pull/21519 - def pend_on_openssl_issue_21493 - if OpenSSL.fips_mode && - ( - (openssl?(3, 0, 0, 0) && !openssl?(3, 0, 0, 11)) || - (openssl?(3, 1, 0, 0) && !openssl?(3, 1, 0, 3)) - ) - pend('See <https://github.com/openssl/openssl/issues/21493>') - end - end end class OpenSSL::TestCase < Test::Unit::TestCase |