OLD | NEW |
1 CONSOLE ERROR: Invalid keyFormat argument | 1 CONSOLE ERROR: Invalid keyFormat argument |
2 CONSOLE ERROR: key is not extractable | |
3 CONSOLE ERROR: key.usages does not permit this operation | |
4 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation | 2 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation |
5 CONSOLE ERROR: key.algorithm does not match that of operation | 3 CONSOLE ERROR: key.algorithm does not match that of operation |
6 CONSOLE ERROR: Invalid keyFormat argument | 4 Tests calls to unwrapKey() with bad inputs. |
7 CONSOLE ERROR: key.usages does not permit this operation | |
8 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation | |
9 CONSOLE ERROR: key.algorithm does not match that of operation | |
10 Tests cypto.subtle.sign and crypto.subtle.verify | |
11 | 5 |
12 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
13 | 7 |
14 | 8 |
15 PASS crypto.subtle.wrapKey('raw', 1, wrappingKey, wrapAlgorithm) threw exception
TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid key argument. | |
16 PASS crypto.subtle.wrapKey('raw', key, '', wrapAlgorithm) threw exception TypeEr
ror: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid wrappingKey argument
. | |
17 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, undefined) threw exception T
ypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm: Not an objec
t. | |
18 PASS crypto.subtle.unwrapKey('raw', null, unwrappingKey, unwrapAlgorithm, unwrap
pedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to ex
ecute 'unwrapKey' on 'SubtleCrypto': Invalid wrappedKey argument. | 9 PASS crypto.subtle.unwrapKey('raw', null, unwrappingKey, unwrapAlgorithm, unwrap
pedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to ex
ecute 'unwrapKey' on 'SubtleCrypto': Invalid wrappedKey argument. |
19 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, unwrapped
KeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execu
te 'unwrapKey' on 'SubtleCrypto': Invalid unwrappingKey argument. | 10 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, unwrapped
KeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execu
te 'unwrapKey' on 'SubtleCrypto': Invalid unwrappingKey argument. |
20 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, null, ext
ractable, 9) threw exception TypeError: The 7th argument is neither an array, no
r does it have indexed properties.. | 11 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, null, ext
ractable, 9) threw exception TypeError: The 7th argument is neither an array, no
r does it have indexed properties.. |
21 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, null, unwrappedKe
yAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute
'unwrapKey' on 'SubtleCrypto': Algorithm: Not an object. | 12 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, null, unwrappedKe
yAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute
'unwrapKey' on 'SubtleCrypto': Algorithm: Not an object. |
22 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgorithm,
3, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapK
ey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object.. | 13 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgorithm,
3, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapK
ey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object.. |
23 PASS: 'crypto.subtle.wrapKey('bad-format', key, wrappingKey, wrapAlgorithm)' rej
ected with null | 14 PASS error is null |
24 PASS: 'crypto.subtle.wrapKey('raw', keys.aesCbcJustDecrypt, wrappingKey, wrapAlg
orithm)' rejected with null | 15 PASS error is null |
25 PASS: 'crypto.subtle.wrapKey('raw', key, keys.aesCbcJustDecrypt, wrapAlgorithm)'
rejected with null | 16 PASS error is null |
26 PASS: 'crypto.subtle.wrapKey('raw', key, wrappingKey, {name: 'SHA-1'})' rejected
with null | |
27 PASS: 'crypto.subtle.wrapKey('raw', key, wrappingKey, aesCtrAlgorithm)' rejected
with null | |
28 PASS: 'crypto.subtle.unwrapKey('bad-format', wrappedKey, unwrappingKey, unwrapAl
gorithm, unwrappedKeyAlgorithm, extractable, keyUsages)' rejected with null | |
29 PASS: 'crypto.subtle.unwrapKey('raw', wrappedKey, keys.aesCbcJustDecrypt, unwrap
Algorithm, unwrappedKeyAlgorithm, extractable, keyUsages)' rejected with null | |
30 PASS: 'crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, {name: 'SHA-1'}
, unwrappedKeyAlgorithm, extractable, keyUsages)' rejected with null | |
31 PASS: 'crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, aesCtrAlgorithm
, unwrappedKeyAlgorithm, extractable, keyUsages)' rejected with null | |
32 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
33 | 18 |
34 TEST COMPLETE | 19 TEST COMPLETE |
35 | 20 |
OLD | NEW |