Skip to content

outputLength and keying for blake2b digest #40921

Description

@panva

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.feature requestIssues requesting new Node.js features.opensslIssues and PRs related to the OpenSSL dependency.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions