Skip to content

Commit efb0779

Browse files
doc: fix AES-OCB IV length in SubtleCrypto.supports example
Signed-off-by: anshikakalpana <anshikajain196872@gmail.com>
1 parent 3c2d2e3 commit efb0779

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
@@ -500,7 +500,7 @@ const key = await crypto.subtle.deriveKey(
500500
['encrypt', 'decrypt'],
501501
);
502502
const plaintext = 'Hello, world!';
503-
const iv = crypto.getRandomValues(new Uint8Array(16));
503+
const iv = crypto.getRandomValues(new Uint8Array(12));
504504
const encrypted = await crypto.subtle.encrypt(
505505
{ name: encryptionAlg, iv },
506506
key,

0 commit comments

Comments
 (0)