Skip to content

Commit 683de5d

Browse files
Anshikakalpanaaduh95
authored andcommitted
doc: fix AES-OCB IV length in SubtleCrypto.supports example
Signed-off-by: anshikakalpana <[email protected]> PR-URL: #63717 Fixes: #63713 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: René <[email protected]>
1 parent 98ce551 commit 683de5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/webcrypto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ const key = await crypto.subtle.deriveKey(
497497
['encrypt', 'decrypt'],
498498
);
499499
const plaintext = 'Hello, world!';
500-
const iv = crypto.getRandomValues(new Uint8Array(16));
500+
const iv = crypto.getRandomValues(new Uint8Array(12));
501501
const encrypted = await crypto.subtle.encrypt(
502502
{ name: encryptionAlg, iv },
503503
key,

0 commit comments

Comments
 (0)