Skip to content

doc: fix AES-OCB IV length in SubtleCrypto.supports example#63717

Open
Anshikakalpana wants to merge 1 commit into
nodejs:mainfrom
Anshikakalpana:fix/aes-ocb-iv-length
Open

doc: fix AES-OCB IV length in SubtleCrypto.supports example#63717
Anshikakalpana wants to merge 1 commit into
nodejs:mainfrom
Anshikakalpana:fix/aes-ocb-iv-length

Conversation

@Anshikakalpana
Copy link
Copy Markdown
Contributor

Fixes: #63713
The example uses a 16-byte IV for AES-OCB, but AES-OCB requires at most 15 bytes, causing a DOMException when run. Fix by using 12 bytes, which satisfies both AES-OCB and AES-GCM constraints.

@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. doc Issues and PRs related to the documentations. labels Jun 2, 2026
Signed-off-by: anshikakalpana <anshikajain196872@gmail.com>
@Anshikakalpana Anshikakalpana force-pushed the fix/aes-ocb-iv-length branch from 04a04ae to efb0779 Compare June 2, 2026 18:22
@Renegade334 Renegade334 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. crypto Issues and PRs related to the crypto subsystem. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SubtleCrypto.supports example uses invalid AES-OCB IV length

4 participants