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

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

Issue 141413003: [webcrypto] Match the error handling defined by the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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') | LayoutTests/crypto/wrap-unwrap.html » ('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: key.algorithm does not match that of operation (HMAC's hash diffe rs)
2 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
3 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object
4 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object
5 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or no t a string
6 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Unrecognized algori thm name
7 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: AES-CBC: Unsupporte d operation
1 Tests cypto.subtle.sign and crypto.subtle.verify 8 Tests cypto.subtle.sign and crypto.subtle.verify
2 9
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 10 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 11
5 12
6 PASS tmpKey.type is 'secret' 13 PASS tmpKey.type is 'secret'
7 PASS tmpKey.extractable is false 14 PASS tmpKey.extractable is false
8 PASS tmpKey.algorithm.name is 'HMAC' 15 PASS tmpKey.algorithm.name is 'HMAC'
9 PASS tmpKey.algorithm.hash.name is tmpHashName 16 PASS tmpKey.algorithm.hash.name is tmpHashName
10 PASS tmpKey.usages.join(',') is 'sign,verify' 17 PASS tmpKey.usages.join(',') is 'sign,verify'
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 PASS verifyResult is false 56 PASS verifyResult is false
50 PASS verifyResult is false 57 PASS verifyResult is false
51 PASS verifyResult is false 58 PASS verifyResult is false
52 PASS verifyResult is false 59 PASS verifyResult is false
53 PASS verifyResult is false 60 PASS verifyResult is false
54 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception T ypeError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argume nt. 61 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception T ypeError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argume nt.
55 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argumen t. 62 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argumen t.
56 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument . 63 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument .
57 PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception No tSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: SHA-1: U nsupported operation. 64 PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception No tSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: SHA-1: U nsupported operation.
58 PASS crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data) threw e xception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorith m: RSAES-PKCS1-v1_5: Unsupported operation. 65 PASS crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data) threw e xception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorith m: RSAES-PKCS1-v1_5: Unsupported operation.
59 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCryp to': key.algorithm does not match that of operation (HMAC's hash differs). 66 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1 , data)' rejected with null
60 PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception Typ eError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary. 67 PASS: 'crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data)' rejected with nu ll
61 PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exce ption TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: Hm acParams: hash: Algorithm: Not an object. 68 PASS: 'crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data)' rejecte d with null
62 PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw e xception TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object. 69 PASS: 'crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data)' reje cted with null
63 PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exc eption TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: H macParams: hash: Algorithm: name: Missing or not a string. 70 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data)' reject ed with null
64 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data ) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: Unrecognized algorithm name. 71 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, da ta)' rejected with null
65 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCryp to': Algorithm: HMAC: HmacParams: hash: Algorithm: AES-CBC: Unsupported operatio n. 72 PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1 , data)' rejected with null
66 PASS successfullyParsed is true 73 PASS successfullyParsed is true
67 74
68 TEST COMPLETE 75 TEST COMPLETE
69 76
OLDNEW
« no previous file with comments | « LayoutTests/crypto/sign-verify.html ('k') | LayoutTests/crypto/wrap-unwrap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698