From efb077906de51e6eb4a08503face44804d326f54 Mon Sep 17 00:00:00 2001 From: anshikakalpana Date: Tue, 2 Jun 2026 23:38:59 +0530 Subject: [PATCH] doc: fix AES-OCB IV length in SubtleCrypto.supports example Signed-off-by: anshikakalpana --- doc/api/webcrypto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/webcrypto.md b/doc/api/webcrypto.md index 3645e0f263328c..291dbb6d107368 100644 --- a/doc/api/webcrypto.md +++ b/doc/api/webcrypto.md @@ -500,7 +500,7 @@ const key = await crypto.subtle.deriveKey( ['encrypt', 'decrypt'], ); const plaintext = 'Hello, world!'; -const iv = crypto.getRandomValues(new Uint8Array(16)); +const iv = crypto.getRandomValues(new Uint8Array(12)); const encrypted = await crypto.subtle.encrypt( { name: encryptionAlg, iv }, key,