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

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

Issue 39093002: [webcrypto] Add some more layouttests for crypto.subtle.digest() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests cypto.subtle.sign and crypto.subtle.verify 1 Tests cypto.subtle.sign and crypto.subtle.verify
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 crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception T ypeError: Invalid signature argument. 6 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception T ypeError: Invalid signature argument.
7 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Invalid signature argument. 7 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Invalid signature argument.
8 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Invalid signature argument. 8 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Invalid signature argument.
9 PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception No tSupportedError: Algorithm: SHA-1: Unsupported operation. 9 PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception No tSupportedError: Algorithm: SHA-1: Unsupported operation.
10 PASS crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data) threw e xception NotSupportedError: Algorithm: RSAES-PKCS1-v1_5: Unsupported operation. 10 PASS crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data) threw e xception NotSupportedError: Algorithm: RSAES-PKCS1-v1_5: Unsupported operation.
11 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data) threw exception NotSupportedError: key.algorithm does not match that of op eration (HMAC's hash differs). 11 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data) threw exception NotSupportedError: key.algorithm does not match that of op eration (HMAC's hash differs).
12 PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception Typ eError: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary. 12 PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception Typ eError: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary.
13 PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exce ption TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object. 13 PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exce ption TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object.
14 PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw e xception TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object. 14 PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw e xception TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object.
15 PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exc eption TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or not a string. 15 PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exc eption TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or not a string.
16 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data ) threw exception NotSupportedError: Algorithm: HMAC: HmacParams: hash: Algorith m: Unrecognized algorithm name. 16 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data ) threw exception NotSupportedError: Algorithm: HMAC: HmacParams: hash: Algorith m: Unrecognized algorithm name.
17 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: Algorithm: HMAC: HmacParams: hash: Algo rithm: AES-CBC: Unsupported operation. 17 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: Algorithm: HMAC: HmacParams: hash: Algo rithm: AES-CBC: Unsupported operation.
18 PASS signResult is '[89 0d 9b 89 4b 23 97 69 ac 77 25 04 66 dc e4 2a f9 26 ed 76 ]' 18 PASS: HMAC SHA1 signature should be [890d9b894b239769ac77250466dce42af926ed76] a nd was
19 PASS verifyResult is true 19 PASS verifyResult is true
20 PASS verifyResult is false 20 PASS verifyResult is false
21 PASS successfullyParsed is true 21 PASS successfullyParsed is true
22 22
23 TEST COMPLETE 23 TEST COMPLETE
24 24
OLDNEW
« no previous file with comments | « LayoutTests/crypto/sign-verify.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698