Skip to content

Commit

Permalink
Missed one place to in test case ec
Browse files Browse the repository at this point in the history
  • Loading branch information
Antrapol committed Nov 13, 2023
1 parent 7ff3737 commit b92ee8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/openssl/test_pkey_ec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,16 @@ def test_check_key
assert_equal(true, key0.check_key)
assert_equal(true, key0.private?)
assert_equal(true, key0.public?)
assert_equal(256, key0.keysize_in_bits)

key1 = OpenSSL::PKey.read(key0.public_to_der)
assert_equal(true, key1.check_key)
assert_equal(false, key1.private?)
assert_equal(true, key1.public?)
assert_equal(256, key1.keysize_in_bits)

key2 = OpenSSL::PKey.read(key0.private_to_der)
assert_equal(true, key2.private?)
assert_equal(true, key2.public?)
assert_equal(true, key2.check_key)
assert_equal(256, key2.keysize_in_bits)

# Behavior of EVP_PKEY_public_check changes between OpenSSL 1.1.1 and 3.0
key4 = Fixtures.pkey("p256_too_large")
Expand Down

0 comments on commit b92ee8b

Please sign in to comment.