| OLD | NEW |
| 1 Tests cypto.subtle.encrypt and crypto.subtle.decrypt | 1 Tests cypto.subtle.encrypt and crypto.subtle.decrypt |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS: Failed to import key of length 0 bytes | 6 PASS: Failed to import key of length 0 bytes |
| 7 PASS: Failed to import key of length 1 bytes | 7 PASS: Failed to import key of length 1 bytes |
| 8 PASS: Failed to import key of length 15 bytes | 8 PASS: Failed to import key of length 15 bytes |
| 9 PASS: Failed to import key of length 17 bytes | 9 PASS: Failed to import key of length 17 bytes |
| 10 PASS: Failed to import key of length 31 bytes | 10 PASS: Failed to import key of length 31 bytes |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array[0]}, keys.aesCbc
, data) threw exception TypeError: undefined is not a function. | 50 PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array[0]}, keys.aesCbc
, data) threw exception TypeError: undefined is not a function. |
| 51 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data)
threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algori
thm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array. | 51 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data)
threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algori
thm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array. |
| 52 PASS crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data) threw exception
TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: A
esCtrParams: counter: Missing or not a Uint8Array. | 52 PASS crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data) threw exception
TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: A
esCtrParams: counter: Missing or not a Uint8Array. |
| 53 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[0]}, keys.a
esCtr, data) threw exception TypeError: undefined is not a function. | 53 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[0]}, keys.a
esCtr, data) threw exception TypeError: undefined is not a function. |
| 54 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.
aesCtr, data) threw exception TypeError: undefined is not a function. | 54 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.
aesCtr, data) threw exception TypeError: undefined is not a function. |
| 55 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.
aesCtr, data) threw exception TypeError: undefined is not a function. | 55 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.
aesCtr, data) threw exception TypeError: undefined is not a function. |
| 56 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: 0}, keys.aesCtr, data) threw exception TypeError: undefined is not a function. | 56 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: 0}, keys.aesCtr, data) threw exception TypeError: undefined is not a function. |
| 57 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: 18}, keys.aesCtr, data) threw exception TypeError: undefined is not a function
. | 57 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: 18}, keys.aesCtr, data) threw exception TypeError: undefined is not a function
. |
| 58 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: -3}, keys.aesCtr, data) threw exception TypeError: undefined is not a function
. | 58 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: -3}, keys.aesCtr, data) threw exception TypeError: undefined is not a function
. |
| 59 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: Infinity}, keys.aesCtr, data) threw exception TypeError: undefined is not a fu
nction. | 59 PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length
: Infinity}, keys.aesCtr, data) threw exception TypeError: undefined is not a fu
nction. |
| 60 PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSuppo
rtedError: key.algorithm does not match that of operation. | 60 PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSuppo
rtedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not
match that of operation. |
| 61 PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception
NotSupportedError: key.usages does not permit this operation. | 61 PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception
NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.usages do
es not permit this operation. |
| 62 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro
r: Invalid key argument. | 62 PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeErro
r: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument. |
| 63 PASS successfullyParsed is true | 63 PASS successfullyParsed is true |
| 64 | 64 |
| 65 TEST COMPLETE | 65 TEST COMPLETE |
| 66 | 66 |
| OLD | NEW |