aes-cbc-invalid-length-expected.txt 519 Bytes
Newer Older's avatar committed
1 2 3 4 5 6 7 8
Test an unsupported AES key length.

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

Importing a raw AES key from string literal...
PASS key.type is 'secret'
PASS key.extractable is true
PASS is 'AES-CBC''s avatar committed
PASS key.algorithm.length is 176
PASS key.usages is ['decrypt', 'encrypt']'s avatar committed
12 13 14
Using the key to encrypt plaintext...
Failed, as expected. Note that the spec doesn't appear to clearly define which step should fail.
PASS successfullyParsed is true's avatar committed
15 16 17