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

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

Issue 22849026: WebCrypto: Check for HmacKeyParams when seeing if a Key can be used for an Algorithm. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase onto master Created 7 years, 4 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/modules/crypto/Key.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 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: Type error. 6 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception T ypeError: Type error.
7 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Type error. 7 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty peError: Type error.
8 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Type error. 8 PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception Typ eError: Type error.
9 PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception No tSupportedError: The implementation did not support the requested type of object or operation.. 9 PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception No tSupportedError: The implementation did not support the requested type of object or operation..
10 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 10 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'}, keys.hmacSha1, data) threw exception Not SupportedError: The implementation did not support the requested type of object or operation.. 11 PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception Not SupportedError: The implementation did not support the requested type of object or operation..
12 PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exce ption NotSupportedError: The implementation did not support the requested type o f object or operation.. 12 PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exce ption NotSupportedError: The implementation did not support the requested type o f object or operation..
13 PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw e xception NotSupportedError: The implementation did not support the requested typ e of object or operation.. 13 PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw e xception NotSupportedError: The implementation did not support the requested typ e of object or operation..
14 PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exc eption NotSupportedError: The implementation did not support the requested type of object or operation.. 14 PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exc eption NotSupportedError: The implementation did not support the requested type of object or operation..
15 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data ) threw exception NotSupportedError: The implementation did not support the requ ested type of object or operation.. 15 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data ) threw exception NotSupportedError: The implementation did not support the requ ested type of object or operation..
16 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 16 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
17 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5'}, keys.rsaSsaSha1, data) thre w exception NotSupportedError: The implementation did not support the requested type of object or operation.. 17 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5'}, keys.rsaSsaSha1, data) thre w exception NotSupportedError: The implementation did not support the requested type of object or operation..
18 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: 3}, keys.rsaSsaSha1, d ata) threw exception NotSupportedError: The implementation did not support the r equested type of object or operation.. 18 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: 3}, keys.rsaSsaSha1, d ata) threw exception NotSupportedError: The implementation did not support the r equested type of object or operation..
19 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: null}, keys.rsaSsaSha1 , data) threw exception NotSupportedError: The implementation did not support th e requested type of object or operation.. 19 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: null}, keys.rsaSsaSha1 , data) threw exception NotSupportedError: The implementation did not support th e requested type of object or operation..
20 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 20 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
21 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'foo'}}, keys.r saSsaSha1, data) threw exception NotSupportedError: The implementation did not s upport the requested type of object or operation.. 21 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'foo'}}, keys.r saSsaSha1, data) threw exception NotSupportedError: The implementation did not s upport the requested type of object or operation..
22 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'AES-CBC'}}, ke ys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did n ot support the requested type of object or operation.. 22 PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'AES-CBC'}}, ke ys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did n ot support the requested type of object or operation..
23 PASS signResult.byteLength is 17 23 PASS signResult.byteLength is 17
24 PASS verifyResult is true 24 PASS verifyResult is true
25 PASS verifyResult is false 25 PASS verifyResult is false
26 PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, generatedHmacSh a1Key, data) threw exception NotSupportedError: key.algorithm does not match tha t of operation (HMAC's hash differs).
27 PASS crypto.subtle.sign(hmacSha1, generatedHmacSha1Key, data) did not throw exce ption.
26 PASS successfullyParsed is true 28 PASS successfullyParsed is true
27 29
28 TEST COMPLETE 30 TEST COMPLETE
29 31
OLDNEW
« no previous file with comments | « LayoutTests/crypto/sign-verify.html ('k') | Source/modules/crypto/Key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698