OLD | NEW |
| 1 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary |
1 Tests cypto.subtle.importKey. | 2 Tests cypto.subtle.importKey. |
2 | 3 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 5 |
5 | 6 |
6 PASS key.type is 'secret' | 7 PASS key.type is 'secret' |
7 PASS key.extractable is true | 8 PASS key.extractable is true |
8 PASS key.algorithm.name is 'HMAC' | 9 PASS key.algorithm.name is 'HMAC' |
9 PASS key.algorithm.hash.name is 'SHA-256' | 10 PASS key.algorithm.hash.name is 'SHA-256' |
10 PASS key.usages.join(',') is 'encrypt,sign' | 11 PASS key.usages.join(',') is 'encrypt,sign' |
11 PASS key.type is 'secret' | 12 PASS key.type is 'secret' |
12 PASS key.extractable is true | 13 PASS key.extractable is true |
13 PASS key.algorithm.name is 'AES-CBC' | 14 PASS key.algorithm.name is 'AES-CBC' |
14 PASS key.usages.join(',') is '' | 15 PASS key.usages.join(',') is '' |
15 PASS key.type is 'secret' | 16 PASS key.type is 'secret' |
16 PASS key.extractable is false | 17 PASS key.extractable is false |
17 PASS key.algorithm.name is 'AES-CBC' | 18 PASS key.algorithm.name is 'AES-CBC' |
18 PASS key.usages.join(',') is '' | 19 PASS key.usages.join(',') is '' |
19 rejected with null | 20 rejected with null |
20 rejected with null | 21 rejected with null |
21 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key
Usages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypt
o': Invalid keyFormat argument. | 22 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key
Usages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypt
o': Invalid keyFormat argument. |
22 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])
threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inva
lid keyUsages argument. | 23 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])
threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inva
lid keyUsages argument. |
23 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['S
IGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto
': Invalid keyFormat argument. | 24 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['S
IGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto
': Invalid keyFormat argument. |
24 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t
hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval
id keyData argument. | 25 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t
hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval
id keyData argument. |
25 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages)
threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv
alid keyData argument. | 26 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages)
threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv
alid keyData argument. |
26 PASS crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUs
ages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto'
: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary. | |
27 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU
sages) threw exception NotSupportedError: Failed to execute 'importKey' on 'Subt
leCrypto': Algorithm: SHA-1: Unsupported operation. | 27 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU
sages) threw exception NotSupportedError: Failed to execute 'importKey' on 'Subt
leCrypto': Algorithm: SHA-1: Unsupported operation. |
| 28 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key
Usages)' rejected with null |
28 PASS successfullyParsed is true | 29 PASS successfullyParsed is true |
29 | 30 |
30 TEST COMPLETE | 31 TEST COMPLETE |
31 | 32 |
OLD | NEW |