diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-10-09 15:32:19 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-10-09 15:32:19 +0900 |
commit | 417d0da56e80f84aac2461b501488dc30b8d133c (patch) | |
tree | 54405cd1fac63d7fef0bb6bda5c0f59c81eb65fc /test | |
parent | 01e6fead07013bc20fb833d418ad834a51dbb8de (diff) | |
parent | 1c2b9e345c36450e477ab25e7c5ece37c8cd2436 (diff) | |
download | ruby-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.rb | 4 |
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 |