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

outputLength and keying for blake2b digest #40921

Closed
panva opened this issue Nov 22, 2021 · 4 comments
Closed

outputLength and keying for blake2b digest #40921

panva opened this issue Nov 22, 2021 · 4 comments
Labels
crypto Issues and PRs related to the crypto subsystem. feature request Issues that request new features to be added to Node.js. openssl Issues and PRs related to the OpenSSL dependency. stale

Comments

@panva
Copy link
Member

panva commented Nov 22, 2021

Is your feature request related to a problem? Please describe.

local PASETO (Platform-Agnostic SEcurity TOkens) version 2 and 4 make use of keyed blake2b hashes of lower than default output lengths.

Describe the solution you'd like

A native crypto.createHash support for setting the initial digest state with desired output length and key input, for completeness optionally also salt and personalization.

@panva panva added crypto Issues and PRs related to the crypto subsystem. feature request Issues that request new features to be added to Node.js. labels Nov 22, 2021
@panva
Copy link
Member Author

panva commented Nov 22, 2021

cc @tniessen thoughts? Most likely blocked by openssl/openssl#980

I'm using @stablelib/blake2b atm which is a pure JS implementation.

@tniessen
Copy link
Member

I don't think there's much we can (or should) do until OpenSSL adds support. There is a reference implementation that we could pull in, but it might be better suited as a native addon for those who need those specific features.

@tniessen tniessen added the openssl Issues and PRs related to the OpenSSL dependency. label Nov 22, 2021
@targos targos moved this to Pending Triage in Node.js feature requests Apr 4, 2022
@github-actions
Copy link
Contributor

There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot added the stale label May 22, 2022
@github-actions
Copy link
Contributor

There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@targos targos moved this from Pending Triage to Stale in Node.js feature requests Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Issues and PRs related to the crypto subsystem. feature request Issues that request new features to be added to Node.js. openssl Issues and PRs related to the OpenSSL dependency. stale
Projects
None yet
Development

No branches or pull requests

2 participants