OLD | NEW |
1 Tests cypto.subtle.importKey. | 1 Tests cypto.subtle.importKey. |
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 key.type is 'private' | 6 PASS key.type is 'private' |
7 PASS key.extractable is true | 7 PASS key.extractable is true |
8 PASS key.algorithm.name is 'HMAC' | 8 PASS key.algorithm.name is 'HMAC' |
9 PASS key.algorithm.hash.name is 'SHA-256' | 9 PASS key.algorithm.hash.name is 'SHA-256' |
10 PASS key.usages.join(',') is 'encrypt,sign' | 10 PASS key.usages.join(',') is 'encrypt,sign' |
11 PASS key.type is 'private' | 11 PASS key.type is 'private' |
12 PASS key.extractable is true | 12 PASS key.extractable is true |
13 PASS key.algorithm.name is 'AES-CBC' | 13 PASS key.algorithm.name is 'AES-CBC' |
14 PASS key.usages.join(',') is '' | 14 PASS key.usages.join(',') is '' |
15 PASS key.type is 'private' | 15 PASS key.type is 'private' |
16 PASS key.extractable is false | 16 PASS key.extractable is false |
17 PASS key.algorithm.name is 'AES-CBC' | 17 PASS key.algorithm.name is 'AES-CBC' |
18 PASS key.usages.join(',') is '' | 18 PASS key.usages.join(',') is '' |
19 PASS key.type is 'public' | 19 PASS key.type is 'public' |
20 PASS key.extractable is false | 20 PASS key.extractable is false |
21 PASS key.algorithm.name is 'AES-CBC' | 21 PASS key.algorithm.name is 'AES-CBC' |
22 PASS key.usages.join(',') is '' | 22 PASS key.usages.join(',') is '' |
23 PASS key.type is 'public' | 23 PASS key.type is 'public' |
24 PASS key.extractable is false | 24 PASS key.extractable is false |
25 PASS key.algorithm.name is 'AES-CBC' | 25 PASS key.algorithm.name is 'AES-CBC' |
26 PASS key.usages.join(',') is '' | 26 PASS key.usages.join(',') is '' |
27 rejected with null | 27 rejected with null |
28 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, keyUsages)
threw exception NotSupportedError: The implementation did not support the reque
sted type of object or operation.. | |
29 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key
Usages) threw exception TypeError: Type error. | 28 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key
Usages) threw exception TypeError: Type error. |
30 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])
threw exception TypeError: Type error. | 29 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])
threw exception TypeError: Type error. |
31 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t
hrew exception TypeError: Type error. | 30 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t
hrew exception TypeError: Type error. |
32 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages)
threw exception TypeError: Type error. | 31 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages)
threw exception TypeError: Type error. |
33 PASS crypto.subtle.importKey(keyFormat, data, invalidHmac, extractable, keyUsage
s) threw exception NotSupportedError: The implementation did not support the req
uested type of object or operation.. | 32 PASS crypto.subtle.importKey(keyFormat, data, invalidHmac, extractable, keyUsage
s) threw exception NotSupportedError: The implementation did not support the req
uested type of object or operation.. |
34 PASS crypto.subtle.importKey(keyFormat, data, sha1, extractable, keyUsages) thre
w exception NotSupportedError: The implementation did not support the requested
type of object or operation.. | 33 PASS crypto.subtle.importKey(keyFormat, data, sha1, extractable, keyUsages) thre
w exception NotSupportedError: The implementation did not support the requested
type of object or operation.. |
35 PASS successfullyParsed is true | 34 PASS successfullyParsed is true |
36 | 35 |
37 TEST COMPLETE | 36 TEST COMPLETE |
38 | 37 |
OLD | NEW |