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,