Skip to content

outputLength and keying for blake2b digest #40921

@panva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.feature requestIssues that request new features to be added to Node.js.opensslIssues and PRs related to the OpenSSL dependency.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions