Skip to content

crypto: use user-facing error for output encoding changes#64692

Open
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:crypto
Open

crypto: use user-facing error for output encoding changes#64692
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:crypto

Conversation

@Archkon

@Archkon Archkon commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64689

Replace the internal assertion with ERR_INVALID_ARG_VALUE when the
output encoding changes between Cipher or Decipher calls. Document the
encoding requirement and update the corresponding tests.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

@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 Jul 23, 2026
@panva

panva commented Jul 23, 2026

Copy link
Copy Markdown
Member

Technically a semver-major PRs that contain breaking changes and should be released in the next major version. but i'm inclined to say it's acceptable.

@Renegade334

Copy link
Copy Markdown
Member

Intermittent GHA outages, it's going to be a fun day...

@Renegade334 Renegade334 reopened this Jul 23, 2026
@Renegade334

Copy link
Copy Markdown
Member

Looks like this will need a push of some description to (hopefully) trigger the workflows.

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.

Passing different encodings to Cipheriv updates results in ERR_INTERNAL_ASSERTION

4 participants