Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkey/ec: add support for octet string encoding of EC point #177

Merged
merged 2 commits into from
Dec 14, 2017

Commits on Dec 7, 2017

  1. Configuration menu
    Copy the full SHA
    717f4b9 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2017

  1. pkey/ec: add support for octet string encoding of EC point

    Add a new method named PKey::EC#to_octet_string that returns the octet
    string representation of the curve point. PKey::EC::Point#to_bn, which
    have already existed and is similar except that an instance of
    OpenSSL::BN is returned, is rewritten in Ruby.
    
    PKey::EC::Point#initialize now takes String as the second argument in
    the PKey::EC::Point.new(group, encoded_point) form.
    
    Also, update the tests to use #to_octet_string instead of #to_bn for
    better readability.
    rhenium committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    60ce7ea View commit details
    Browse the repository at this point in the history