OLD | NEW |
| (Empty) |
1 CONSOLE ERROR: Invalid keyFormat argument | |
2 CONSOLE ERROR: Invalid keyUsages argument | |
3 CONSOLE ERROR: Invalid keyFormat argument | |
4 CONSOLE ERROR: Algorithm: HMAC: HmacImporParams: hash: Missing or not a dictiona
ry | |
5 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation | |
6 Tests cypto.subtle.importKey. | |
7 | |
8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
9 | |
10 | |
11 PASS key.type is 'secret' | |
12 PASS key.extractable is true | |
13 PASS key.algorithm.name is 'HMAC' | |
14 PASS key.algorithm.hash.name is 'SHA-256' | |
15 PASS key.usages.join(',') is 'encrypt,sign' | |
16 PASS key.type is 'secret' | |
17 PASS key.extractable is true | |
18 PASS key.algorithm.name is 'AES-CBC' | |
19 PASS key.algorithm.length is 128 | |
20 PASS key.usages.join(',') is '' | |
21 PASS key.type is 'secret' | |
22 PASS key.extractable is false | |
23 PASS key.algorithm.name is 'AES-CBC' | |
24 PASS key.algorithm.length is 128 | |
25 PASS key.usages.join(',') is '' | |
26 rejected with null | |
27 PASS key.type is 'public' | |
28 PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5' | |
29 PASS key.algorithm.hash.name is "SHA-1" | |
30 PASS key.algorithm.modulusLength is 1024 | |
31 PASS: key.algorithm.publicExponent should be [010001] and was | |
32 PASS key.usages.join(',') is '' | |
33 PASS key.type is 'private' | |
34 PASS key.extractable is false | |
35 PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5' | |
36 PASS key.algorithm.hash.name is "SHA-1" | |
37 PASS key.algorithm.modulusLength is 1024 | |
38 PASS: key.algorithm.publicExponent should be [010001] and was | |
39 PASS key.usages.join(',') is '' | |
40 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t
hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval
id keyData argument. | |
41 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages)
threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv
alid keyData argument. | |
42 PASS crypto.subtle.importKey(keyFormat, data, null, extractable, keyUsages) thre
w exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Algorith
m: Not an object. | |
43 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, k
eyUsages)' rejected with null | |
44 PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']
)' rejected with null | |
45 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, [
'SIGN'])' rejected with null | |
46 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key
Usages)' rejected with null | |
47 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, ke
yUsages)' rejected with null | |
48 PASS successfullyParsed is true | |
49 | |
50 TEST COMPLETE | |
51 | |
OLD | NEW |