Skip to content

crypto: runtime-deprecate calling Hmac.digest() more than once#63624

Open
developers-universe-1 wants to merge 1 commit into
nodejs:mainfrom
developers-universe-1:dep0206-hmac-digest-runtime-deprecation
Open

crypto: runtime-deprecate calling Hmac.digest() more than once#63624
developers-universe-1 wants to merge 1 commit into
nodejs:mainfrom
developers-universe-1:dep0206-hmac-digest-runtime-deprecation

Conversation

@developers-universe-1
Copy link
Copy Markdown

Emit a DEP0206 deprecation warning when Hmac.digest() is called on an already-finalized instance. This behavior is inconsistent with Hash.digest() which throws ERR_CRYPTO_HASH_FINALIZED.

Fixes: #62838

Emit a DEP0206 deprecation warning when Hmac.digest() is called on an
already-finalized instance. This behavior is inconsistent with
Hash.digest() which throws ERR_CRYPTO_HASH_FINALIZED.

Refs: nodejs#62838
PR-URL: https://github.com/nodejs/node/pull/REPLACEME
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/userland-migrations

@nodejs-github-bot nodejs-github-bot added crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime-deprecate calling digest() on HMAC more than once

2 participants