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

Side by Side Diff: LayoutTests/crypto/hmac-import-jwk-expected.txt

Issue 298023002: [webcrypto] Import WebKit's webcrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove FIXME for unrecognized jwk usages (supported now) Created 6 years, 6 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/hmac-import-jwk.html ('k') | LayoutTests/crypto/import-jwk.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Test importing a JWK key for HMAC.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Importing a key...
7
8 PASS key.type is 'secret'
9 PASS key.extractable is false
10 PASS key.algorithm.name is 'HMAC'
11 PASS key.algorithm.length is 256
12 PASS key.usages is ["sign", "verify"]
13
14 Using the key to sign message 'foo'...
15 PASS bytesToHexString(new Uint8Array(signature)) is 'e03736fe098892b2a2da7781243 1f7c014d32e2fd69f3bcff883ac923a8fa2da'
16
17 Verifying the signature...
18 PASS verificationResult is true
19 PASS successfullyParsed is true
20
21 TEST COMPLETE
22
OLDNEW
« no previous file with comments | « LayoutTests/crypto/hmac-import-jwk.html ('k') | LayoutTests/crypto/import-jwk.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698