diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-07 16:50:32 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-28 00:56:24 +0900 |
commit | 1c2b9e345c36450e477ab25e7c5ece37c8cd2436 (patch) | |
tree | 77cc3470bafdb31b3c43fd17ed48deaa584f4a90 /History.md | |
parent | c382c52c8ab7e49401f5d55e82214fc8ef819524 (diff) | |
download | ruby-openssl-1c2b9e345c36450e477ab25e7c5ece37c8cd2436.tar.gz |
pkey: allow specifying conversion form in EC::Point#to_bntopic/pkey-ec-conversion-form
Currently, when we want to convert a point data into an octet string
with non-default conversion form, we have to set the desirable form to
the associated EC::Group beforehand. This is inconvenient and
counterintuitive because the conversion form is not actually related to
the EC group.
point = ...
point.group.point_conversion_form = :compressed
point.to_bn
So, allow specifying the form as an optional parameter, like this:
point = ...
point.to_bn(:compressed)
Diffstat (limited to 'History.md')
-rw-r--r-- | History.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -70,6 +70,9 @@ Notable changes linked with the EC key. Modifications to the EC::Group have no effect on the key. [[GH ruby/openssl#71]](https://github.com/ruby/openssl/pull/71) + - OpenSSL::PKey::EC::Point#to_bn allows specifying the point conversion form + by the optional argument. + * OpenSSL::SSL - OpenSSL::SSL::SSLSocket#tmp_key is added. A client can call it after the |