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

Side by Side Diff: components/test/data/webcrypto/ecdsa.json

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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
« no previous file with comments | « components/test/data/webcrypto/ecdh.json ('k') | components/test/data/webcrypto/hmac.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file contains known answers for ECDSA verify() testing. 1 // This file contains known answers for ECDSA verify() testing.
2 // The tests include successful and unsuccessful verifications. 2 // The tests include successful and unsuccessful verifications.
3 // 3 //
4 // These are the possible fields for each test: 4 // These are the possible fields for each test:
5 // "key_format" -- The format of the key data. Can be one of: {"jwk", "spki", "nist". 5 // "key_format" -- The format of the key data. Can be one of: {"jwk", "spki", "nist".
6 // "key" -- The public key data. Either a dictionary JWK, or hex encoded bytes (for SPKI) 6 // "key" -- The public key data. Either a dictionary JWK, or hex encoded bytes (for SPKI)
7 // "msg" -- The hex-encoded message to be verified 7 // "msg" -- The hex-encoded message to be verified
8 // "sig" -- The hex-encoded ECDSA signature as a concatenation of "r" and "s". 8 // "sig" -- The hex-encoded ECDSA signature as a concatenation of "r" and "s".
9 // "error" -- Optional. If provided, verify() is expected to fail with the ind icated error. 9 // "error" -- Optional. If provided, verify() is expected to fail with the ind icated error.
10 // "verify_result" -- Expected boolean result from verify(). 10 // "verify_result" -- Expected boolean result from verify().
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 "kty": "EC", 154 "kty": "EC",
155 "crv": "P-384", 155 "crv": "P-384",
156 "x": "CHSi4Lj_RI8OVDIeJ_Tx5k0GTN630m9FjDLpMBIPTlfchcJpP5d-7UqOzI25gbTZ", 156 "x": "CHSi4Lj_RI8OVDIeJ_Tx5k0GTN630m9FjDLpMBIPTlfchcJpP5d-7UqOzI25gbTZ",
157 "y": "H2lEbfT0xvXeGQA_RfiR0OvNL__bXIHAQOjWmUxDx_7tuYpKMe37NeiaMAE8O5Jn" 157 "y": "H2lEbfT0xvXeGQA_RfiR0OvNL__bXIHAQOjWmUxDx_7tuYpKMe37NeiaMAE8O5Jn"
158 }, 158 },
159 "msg": "3f0783a58e66f3d2c0ccfb5fac3f09db6f8609d0592bc77fdffed9cf0e137d26a867 057665f3ad81beebbbdb723d5a47c580828f10f7347ab8a9c24d195f736dfae6eae37d88fe3b4735 e7c669a80ac1913e5c24c8c1d5cdb15f994f3ec2f1c774752e14f596b38c2fbf037616d608244d3d a7d4badf351330f947e04cc350e7", 159 "msg": "3f0783a58e66f3d2c0ccfb5fac3f09db6f8609d0592bc77fdffed9cf0e137d26a867 057665f3ad81beebbbdb723d5a47c580828f10f7347ab8a9c24d195f736dfae6eae37d88fe3b4735 e7c669a80ac1913e5c24c8c1d5cdb15f994f3ec2f1c774752e14f596b38c2fbf037616d608244d3d a7d4badf351330f947e04cc350e7",
160 "sig": "", 160 "sig": "",
161 "verify_result": false 161 "verify_result": false
162 } 162 }
163 ] 163 ]
OLDNEW
« no previous file with comments | « components/test/data/webcrypto/ecdh.json ('k') | components/test/data/webcrypto/hmac.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698