Skip to content

crypto: support extendable-output functions (shake128, shake256) #28757

Closed
@troppoli

Description

@troppoli
  • Node.js Version:10.16.0
  • OS:windows 10
  • Scope (install, code, runtime, meta, other?):runtime
  • Module (and version) (if relevant):crypto

The shake128 and shake256 hash functions allow you to specify the size of the digest, however the createHash call doesn't seem to allow setting those options.

        const hash = crypto.createHash('shake128');
        hash.update('blabadeblablabla');
        console.log( hash.digest('hex') );

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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions