Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
crypto: add rsa-pss keygen parameters#39927
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
crypto: add rsa-pss keygen parameters #39927
Uh oh!
There was an error while loading. Please reload this page.
Conversation
panva commented Aug 29, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
623d387 to 2916114Comparepanva commented Aug 29, 2021
cc @nodejs/crypto |
tniessen commented Aug 31, 2021
I think it makes sense to do this in two steps: add the new options in a semver-minor PR and runtime-deprecate the old options in a semver-major PR. It's more work, but if we don't do that, we can't use these options in any Node.js version < 17. |
panva commented Aug 31, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Sounds good. Do you recommend to apply the undocumented to be deprecated properties like so? let{ hash, hashAlgorithm }=optionsif(hash)deprecationNotice()hashAlgorithm??=hash// proceed with hashAlgorithm |
tniessen commented Aug 31, 2021
@panva I am not sure. It generally looks good to me but I have a slight preference for throwing if both are set and not equal. |
panva commented Aug 31, 2021
Sounds good, I'll prepare the PR(s) to supersede this one. |
tniessen commented Aug 31, 2021
@panva I think you can keep this one for either part and open one more for the other part :) Thank you! |
2916114 to a56bd8aCompare3b3a62f to 6cbaea2Comparepanva commented Aug 31, 2021
@tniessen never did a deprecation before, can you please check? |
6cbaea2 to a1e3fd9Comparea1e3fd9 to 18c2c49Comparetniessen commented Aug 31, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Runtime deprecations must be semver-major:
We can do a documentation-only deprecation as semver-minor (or a documentation-only deprecation with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot commented Sep 1, 2021 • edited by jasnell
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by jasnell
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tniessen commented Sep 4, 2021
I'd love to see a test that ensures that |
panva commented Sep 4, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Can't do that because |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot commented Sep 4, 2021
nodejs-github-bot commented Sep 5, 2021
panva commented Sep 5, 2021
Landed in c6b0ae8 |
PR-URL: #39927 Reviewed-By: James M Snell <[email protected]>
PR-URL: #39927 Reviewed-By: James M Snell <[email protected]>
PR-URL: #39927 Reviewed-By: James M Snell <[email protected]>
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: TODO
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: TODO
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: #40175
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: #40175
This PR deprecates (documentation-only deprecation with
--pending-deprecation) undocumented API for RSA-PSS key generation parameters that specify theRSASSA-PSS-paramssequence and replaces them with options aligned withasymmetricKeyDetailsproperty names.The update is so that the option names and their values match the ones exposed via
asymmetricKeyDetailsfrom #39851. See #39851 (comment) and #39851 (comment)It issemver-majorbecause despite it being undocumented before it might be in use in by users.Edit: We will runtime deprecate the undocumented ones via a followup PR, this is now a
semver-minoras it is not breaking potential existing use of the undocumented API.