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

Side by Side Diff: LayoutTests/crypto/sign-verify-expected.txt

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase yet again (another conflict) 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
« no previous file with comments | « LayoutTests/crypto/sign-verify.html ('k') | Source/heap/ThreadState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation 1 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
2 CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: Unsupported operation 2 CONSOLE ERROR: Algorithm: RSAES-PKCS1-v1_5: Unsupported operation
3 CONSOLE ERROR: key.algorithm does not match that of operation (HMAC's hash diffe rs)
4 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
5 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object
6 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object
7 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or no t a string
8 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Unrecognized algori thm name
9 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: AES-CBC: Unsupporte d operation
10 Tests cypto.subtle.sign and crypto.subtle.verify 3 Tests cypto.subtle.sign and crypto.subtle.verify
11 4
12 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
13 6
14 7
15 PASS tmpKey.type is 'secret' 8 PASS tmpKey.type is 'secret'
16 PASS tmpKey.extractable is false 9 PASS tmpKey.extractable is false
17 PASS tmpKey.algorithm.name is 'HMAC' 10 PASS tmpKey.algorithm.name is 'HMAC'
11 PASS tmpKey.algorithm.hash.name is 'SHA-1'
18 PASS tmpKey.usages.join(',') is 'sign,verify' 12 PASS tmpKey.usages.join(',') is 'sign,verify'
19 PASS tmpKey.type is 'secret' 13 PASS tmpKey.type is 'secret'
20 PASS tmpKey.extractable is false 14 PASS tmpKey.extractable is false
21 PASS tmpKey.algorithm.name is 'HMAC' 15 PASS tmpKey.algorithm.name is 'HMAC'
16 PASS tmpKey.algorithm.hash.name is 'SHA-256'
22 PASS tmpKey.usages.join(',') is 'sign,verify' 17 PASS tmpKey.usages.join(',') is 'sign,verify'
23 PASS tmpKey.type is 'secret' 18 PASS tmpKey.type is 'secret'
24 PASS tmpKey.extractable is false 19 PASS tmpKey.extractable is false
25 PASS tmpKey.algorithm.name is 'HMAC' 20 PASS tmpKey.algorithm.name is 'HMAC'
21 PASS tmpKey.algorithm.hash.name is 'SHA-1'
26 PASS tmpKey.usages.join(',') is 'sign,verify' 22 PASS tmpKey.usages.join(',') is 'sign,verify'
27 PASS tmpKey.type is 'secret' 23 PASS tmpKey.type is 'secret'
28 PASS tmpKey.extractable is false 24 PASS tmpKey.extractable is false
29 PASS tmpKey.algorithm.name is 'HMAC' 25 PASS tmpKey.algorithm.name is 'HMAC'
26 PASS tmpKey.algorithm.hash.name is 'SHA-1'
30 PASS tmpKey.usages.join(',') is 'sign,verify' 27 PASS tmpKey.usages.join(',') is 'sign,verify'
31 PASS tmpKey.type is 'secret' 28 PASS tmpKey.type is 'secret'
32 PASS tmpKey.extractable is false 29 PASS tmpKey.extractable is false
33 PASS tmpKey.algorithm.name is 'HMAC' 30 PASS tmpKey.algorithm.name is 'HMAC'
31 PASS tmpKey.algorithm.hash.name is 'SHA-256'
34 PASS tmpKey.usages.join(',') is 'sign,verify' 32 PASS tmpKey.usages.join(',') is 'sign,verify'
35 PASS tmpKey.type is 'secret' 33 PASS tmpKey.type is 'secret'
36 PASS tmpKey.extractable is false 34 PASS tmpKey.extractable is false
37 PASS tmpKey.algorithm.name is 'HMAC' 35 PASS tmpKey.algorithm.name is 'HMAC'
36 PASS tmpKey.algorithm.hash.name is 'SHA-256'
38 PASS tmpKey.usages.join(',') is 'sign,verify' 37 PASS tmpKey.usages.join(',') is 'sign,verify'
39 PASS: Mac should be [fbdb1d1b18aa6c08324b7d64b71fb76370690e1d] and was 38 PASS: Mac should be [fbdb1d1b18aa6c08324b7d64b71fb76370690e1d] and was
40 PASS: Mac should be [b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c71214429 2c5ad] and was 39 PASS: Mac should be [b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c71214429 2c5ad] and was
41 PASS: Mac should be [3c8162589aafaee024fc9a5ca50dd2336fe3eb28] and was 40 PASS: Mac should be [3c8162589aafaee024fc9a5ca50dd2336fe3eb28] and was
42 PASS: Mac should be [4ac41ab89f625c60125ed65ffa958c6b490ea670] and was 41 PASS: Mac should be [4ac41ab89f625c60125ed65ffa958c6b490ea670] and was
43 PASS: Mac should be [769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a1660 5ac8b] and was 42 PASS: Mac should be [769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a1660 5ac8b] and was
44 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425 2801b] and was 43 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425 2801b] and was
45 PASS verifyResult is true 44 PASS verifyResult is true
46 PASS verifyResult is true 45 PASS verifyResult is true
47 PASS verifyResult is true 46 PASS verifyResult is true
48 PASS verifyResult is true 47 PASS verifyResult is true
49 PASS verifyResult is true 48 PASS verifyResult is true
50 PASS verifyResult is true 49 PASS verifyResult is true
51 PASS verifyResult is false 50 PASS verifyResult is false
52 PASS verifyResult is false 51 PASS verifyResult is false
53 PASS verifyResult is false 52 PASS verifyResult is false
54 PASS verifyResult is false 53 PASS verifyResult is false
55 PASS verifyResult is false 54 PASS verifyResult is false
56 PASS verifyResult is false 55 PASS verifyResult is false
57 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception T ypeError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argume nt. 56 PASS crypto.subtle.verify(hmac, keys.hmacSha1, null, data) threw exception TypeE rror: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument.
58 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argumen t. 57 PASS crypto.subtle.verify(hmac, keys.hmacSha1, 'a', data) threw exception TypeEr ror: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument.
59 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument . 58 PASS crypto.subtle.verify(hmac, keys.hmacSha1, [], data) threw exception TypeErr or: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument.
60 PASS: 'crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data)' rejected with n ull 59 PASS: 'crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data)' rejected with n ull
61 PASS: 'crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data)' reje cted with null 60 PASS: 'crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data)' reje cted with null
62 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1 , data)' rejected with null
63 PASS: 'crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data)' rejected with nu ll
64 PASS: 'crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data)' rejecte d with null
65 PASS: 'crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data)' reje cted with null
66 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data)' reject ed with null
67 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, da ta)' rejected with null
68 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1 , data)' rejected with null
69 PASS successfullyParsed is true 61 PASS successfullyParsed is true
70 62
71 TEST COMPLETE 63 TEST COMPLETE
72 64
OLDNEW
« no previous file with comments | « LayoutTests/crypto/sign-verify.html ('k') | Source/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698