Skip to content

crypto.hash XOF hash functions outputLength option #57312

Description

@panva

What is the problem this feature will solve?

This is follow up to #51044 (comment) (cc @tniessen @joyeecheung)

We should add the ability to define outputLength for XOF hash functions in crypto.hash so that it's on par with the crypto.createHash API

What is the feature you are proposing to solve the problem?

Being able to use e.g. shake128 and shake256 with varying output lengths using crypto.hash

What alternatives have you considered?

No response

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

    feature requestIssues requesting new Node.js features.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions