Skip to content

crypto.hash XOF hash functions outputLength option #57312

@panva

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions