aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-10-09 15:32:19 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-10-09 15:32:19 +0900
commit417d0da56e80f84aac2461b501488dc30b8d133c (patch)
tree54405cd1fac63d7fef0bb6bda5c0f59c81eb65fc /test
parent01e6fead07013bc20fb833d418ad834a51dbb8de (diff)
parent1c2b9e345c36450e477ab25e7c5ece37c8cd2436 (diff)
downloadruby-openssl-417d0da56e80f84aac2461b501488dc30b8d133c.tar.gz
Merge branch 'topic/pkey-ec-conversion-form'
* topic/pkey-ec-conversion-form: pkey: allow specifying conversion form in EC::Point#to_bn
Diffstat (limited to 'test')
-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 53aa5a10..0058d8bf 100644
--- a/test/test_pkey_ec.rb
+++ b/test/test_pkey_ec.rb
@@ -244,6 +244,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