aes-cbc-generate-key-expected.txt 900 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
Test generating an AES key using AES-CBC algorithm.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS crypto.subtle.generateKey("aes-cbc", extractable, ["encrypt", "decrypt"]) threw exception TypeError: Type error.
PASS crypto.subtle.generateKey({name: "aes-cbc"}, extractable, ["encrypt", "decrypt"]) threw exception TypeError: Type error.
PASS crypto.subtle.generateKey({name: "aes-cbc", length: undefined}, extractable, ["encrypt", "decrypt"]) threw exception TypeError: Type error.
PASS crypto.subtle.generateKey({name: "aes-cbc", length: {}}, extractable, ["encrypt", "decrypt"]) threw exception TypeError: Type error.
Generating a key...
PASS key.type is 'secret'
PASS key.extractable is true
13
PASS key.algorithm.name is 'AES-CBC'
14
PASS key.algorithm.length is 128
15
PASS key.usages is ['decrypt', 'encrypt']
16 17 18 19
PASS successfullyParsed is true

TEST COMPLETE