aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pkey_ec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pkey_ec.rb')
-rw-r--r--test/test_pkey_ec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_pkey_ec.rb b/test/test_pkey_ec.rb
index dc205290..e281f80c 100644
--- a/test/test_pkey_ec.rb
+++ b/test/test_pkey_ec.rb
@@ -258,6 +258,10 @@ class OpenSSL::TestEC < OpenSSL::PKeyTestCase
raise
end
+ assert_equal 0x040603.to_bn, point.to_bn(:uncompressed)
+ assert_equal 0x0306.to_bn, point.to_bn(:compressed)
+ assert_equal 0x070603.to_bn, point.to_bn(:hybrid)
+
assert_equal 0x040603.to_bn, point.to_bn
assert_equal true, point.on_curve?
point.invert! # 8.5