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

[v9.x backport] crypto: add ECDH.convertKey to convert public keys #19745

Closed
wants to merge 2 commits into from

Conversation

targos
Copy link
Member

@targos targos commented Apr 2, 2018

ECDH.convertKey is used to convert public keys between different
formats.

PR-URL: #19080
Fixes: #18977
Reviewed-By: Ben Noordhuis [email protected]
Reviewed-By: James M Snell [email protected]

/cc @tniessen

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. v9.x labels Apr 2, 2018
@targos
Copy link
Member Author

targos commented Apr 2, 2018

- `curve` {string}
- `inputEncoding` {string}
- `outputEncoding` {string}
- `format` {string} Defaults to `uncompressed`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

-- `format` {string} Defaults to `uncompressed`.
+- `format` {string} **Default:** `uncompressed`

As per #19737 (will be backported, but without this fix).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Updated.

ECDH.convertKey is used to convert public keys between different
formats.

PR-URL: nodejs#19080
Fixes: nodejs#18977
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@targos targos force-pushed the backport-ecdh-convert-key branch from 73b22ed to 1b408f8 Compare April 4, 2018 13:07
@targos targos force-pushed the backport-ecdh-convert-key branch from 1b408f8 to 49573b7 Compare April 4, 2018 13:08
@targos
Copy link
Member Author

targos commented Apr 6, 2018

/cc @tniessen @jasnell @bnoordhuis

targos pushed a commit that referenced this pull request Apr 12, 2018
ECDH.convertKey is used to convert public keys between different
formats.

PR-URL: #19080
Fixes: #18977
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>

Backport-PR-URL: #19745
Reviewed-By: Tobias Nießen <[email protected]>
@targos
Copy link
Member Author

targos commented Apr 12, 2018

Landed in f06b41e

@targos targos closed this Apr 12, 2018
@targos targos deleted the backport-ecdh-convert-key branch April 12, 2018 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants