Skip to content

Commit

Permalink
Remove tests that are using ED25519, it's not FIPS approved
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Mar 26, 2024
1 parent d5487ef commit 38ad166
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/openssl/test_pkey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,17 +433,6 @@ def test_s_from_parameters_dh_with_invalid_parameter
e = assert_raise(OpenSSL::PKey::PKeyError) { OpenSSL::PKey.from_parameters("DH", invalid: 1234) }
assert_match(/Invalid parameter "invalid"/, e.message)
end

def test_s_from_parameters_ed25519
key = OpenSSL::PKey.from_parameters("ED25519", pub: "\xD0\x8E\xA8\x96\xB6Fbi{$k\xAC\xB8\xA2V\xF4n\xC3\xD06}R\x8A\xE6I\xA7r\xF6D{W\x84")
assert_instance_of OpenSSL::PKey::PKey, key
assert_equal "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA0I6olrZGYml7JGusuKJW9G7D0DZ9UormSady9kR7V4Q=\n-----END PUBLIC KEY-----\n", key.public_to_pem
end

def test_s_from_parameters_ed25519_with_invalid_parameters
e = assert_raise(OpenSSL::PKey::PKeyError) { OpenSSL::PKey.from_parameters("ED25519", invalid: 12345) }
assert_equal 'Invalid parameter "invalid". Supported parameters: "pub, priv, pub_key, priv_key"', e.message
end
else
def test_from_parameter_raises_on_pre_3_openssl
e = assert_raise(OpenSSL::PKey::PKeyError) {
Expand Down

0 comments on commit 38ad166

Please sign in to comment.