| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
The if statement is not useless but there is a bug in the if statement below; it should have been else if, i.e., it needs to be a chain.
Sorry, something went wrong.
|
In that case there should also be a test case included. |
Sorry, something went wrong.
|
@bnoordhuis In the docs for ecdh.getPublicKey([encoding][, format]), the encoding and format arguments must be of type undefined or string. |
Sorry, something went wrong.
|
@indutny You are the author of those lines. What was the intent here? |
Sorry, something went wrong.
|
Passing raw number down there when needed? |
Sorry, something went wrong.
|
@indutny I am not sure I can follow your comment. Can you please elaborate? Right now this code path never worked because it always resulted in an error. Was this by accident and we miss a test case for this or should the if statement just be removed? |
Sorry, something went wrong.
|
@nodejs/tsc PTAL. I recommend removing this statement if we can not determine what it is meant for. |
Sorry, something went wrong.
|
Sorry for cryptic comment. I didn't have enough time to elaborate that day. The idea was that people may want to pass constant's raw numeric value into that function. Not sure if we want to have this API anymore, very likely we don't. It is going to be a major change, though. |
Sorry, something went wrong.
|
@indutny this never worked, so it is definitely not a semver-major. If a user would have passed in a numeric value a error would have been thrown. It was also never documented at all. As you say we do not want to support this anymore I guess we are safe to merge this. |
Sorry, something went wrong.
|
@bnoordhuis I guess it is clear now that it is fine to land this? |
Sorry, something went wrong.
|
Oh, you're right. LGTM then. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Wonderful! @starkwang would you be so kind and rebase? This could land otherwise. |
Sorry, something went wrong.
The if statement in `ECDH.getPublicKey` is useless. This change is to remove it.
|
@BridgeAR Sorry for my sluggishness. I've just rebased. |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
The if statement in `ECDH.getPublicKey` is useless. This change is to remove it. PR-URL: #15041 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
|
Diffie helman isn't on 8.x afaik. Please feel free to change the labels if neccessary |
Sorry, something went wrong.
The if statement in `ECDH.getPublicKey` is useless. This change is to remove it. PR-URL: nodejs/node#15041 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
| Back | FazBrowse Home | New Git URL |
The if statement in ECDH.getPublicKey is useless. This change is to remove it.
Checklist
Affected core subsystem(s)
crypto