Skip to content

Commit 65c5a77

Browse files
pkey/ec: AWS-LC disallows serialization of explicit curves
1 parent 3117897 commit 65c5a77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/openssl/test_pkey_ec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ def test_ec_group
309309
assert_equal group1.to_der, group2.to_der
310310
assert_equal group1, group2
311311
group2.asn1_flag ^=OpenSSL::PKey::EC::NAMED_CURVE
312-
assert_not_equal group1.to_der, group2.to_der
312+
# AWS-LC does not support serializing explicit curves.
313+
unless aws_lc?
314+
assert_not_equal group1.to_der, group2.to_der
315+
end
313316
assert_equal group1, group2
314317

315318
group3 = group1.dup

0 commit comments

Comments
 (0)