Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: LayoutTests/crypto/importKey-expected.txt

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatte d key. 1 CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatte d key.
2 CONSOLE ERROR: Invalid keyFormat argument 2 CONSOLE ERROR: Invalid keyFormat argument
3 CONSOLE ERROR: Invalid keyUsages argument 3 CONSOLE ERROR: Invalid keyUsages argument
4 CONSOLE ERROR: Invalid keyFormat argument 4 CONSOLE ERROR: Invalid keyFormat argument
5 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary 5 CONSOLE ERROR: Algorithm: HMAC: HmacImporParams: hash: Missing or not a dictiona ry
6 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation 6 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
7 Tests cypto.subtle.importKey. 7 Tests cypto.subtle.importKey.
8 8
9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
10 10
11 11
12 PASS key.type is 'secret' 12 PASS key.type is 'secret'
13 PASS key.extractable is true 13 PASS key.extractable is true
14 PASS key.algorithm.name is 'HMAC' 14 PASS key.algorithm.name is 'HMAC'
15 PASS key.algorithm.hash.name is 'SHA-256'
15 PASS key.usages.join(',') is 'encrypt,sign' 16 PASS key.usages.join(',') is 'encrypt,sign'
16 PASS key.type is 'secret' 17 PASS key.type is 'secret'
17 PASS key.extractable is true 18 PASS key.extractable is true
18 PASS key.algorithm.name is 'AES-CBC' 19 PASS key.algorithm.name is 'AES-CBC'
20 PASS key.algorithm.length is 128
19 PASS key.usages.join(',') is '' 21 PASS key.usages.join(',') is ''
20 PASS key.type is 'secret' 22 PASS key.type is 'secret'
21 PASS key.extractable is false 23 PASS key.extractable is false
22 PASS key.algorithm.name is 'AES-CBC' 24 PASS key.algorithm.name is 'AES-CBC'
25 PASS key.algorithm.length is 128
23 PASS key.usages.join(',') is '' 26 PASS key.usages.join(',') is ''
24 rejected with null 27 rejected with null
28 PASS key.type is 'public'
29 PASS key.extractable is true
30 PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5'
31 PASS key.algorithm.hash.name is "SHA-1"
32 PASS key.algorithm.modulusLength is 1024
33 PASS: key.algorithm.publicExponent should be [010001] and was
34 PASS key.usages.join(',') is ''
35 PASS key.type is 'private'
36 PASS key.extractable is false
37 PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5'
38 PASS key.algorithm.hash.name is "SHA-1"
39 PASS key.algorithm.modulusLength is 1024
40 PASS: key.algorithm.publicExponent should be [010001] and was
41 PASS key.usages.join(',') is ''
25 rejected with null 42 rejected with null
26 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval id keyData argument. 43 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval id keyData argument.
27 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv alid keyData argument. 44 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv alid keyData argument.
28 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, k eyUsages)' rejected with null 45 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, k eyUsages)' rejected with null
29 PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'] )' rejected with null 46 PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'] )' rejected with null
30 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, [ 'SIGN'])' rejected with null 47 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, [ 'SIGN'])' rejected with null
31 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key Usages)' rejected with null 48 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key Usages)' rejected with null
32 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, ke yUsages)' rejected with null 49 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, ke yUsages)' rejected with null
33 PASS successfullyParsed is true 50 PASS successfullyParsed is true
34 51
35 TEST COMPLETE 52 TEST COMPLETE
36 53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698