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

Side by Side Diff: content/test/data/webcrypto/ecdh.json

Issue 816403002: [WebCrypto] Cleanup in LoadTestKeys() in ecdh unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build fix Created 5 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
« no previous file with comments | « content/child/webcrypto/test/ecdh_unittest.cc ('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 // TODO(eroman): Use known test vectors. The samples I used here I generated mys elf. 1 // TODO(eroman): Use known test vectors. The samples I used here I generated mys elf.
2 [ 2 [
3 // Test key derivation using ECDH (P-256), using a public and private key from 3 // Test key derivation using ECDH (P-256), using a public and private key from
4 // different key pairs. 4 // different key pairs.
5 { 5 {
6 "public_key": { 6 "public_key": {
7 "crv": "P-256", 7 "crv": "P-256",
8 "kty":"EC", 8 "kty":"EC",
9 "x":"u6dWhaRHrvFF0CiFVuUUFafU6ixveQf9trHDXJ8hgV8", 9 "x":"u6dWhaRHrvFF0CiFVuUUFafU6ixveQf9trHDXJ8hgV8",
10 "y":"thSm4LIY35vDD-5LE454eB7TShn919DVVGZ_7tWdjTE" 10 "y":"thSm4LIY35vDD-5LE454eB7TShn919DVVGZ_7tWdjTE"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 }, 142 },
143 143
144 "public_key": { 144 "public_key": {
145 "crv":"P-521", 145 "crv":"P-521",
146 "kty":"EC", 146 "kty":"EC",
147 "x":"ADRllQ0B7icrnJ7ib2r-CXvymGFiC_3f6_o0SzLMBIggM8ndQm9l768SToMy1hUo64Jso fGSQ37P4CRqT_QeivBD", 147 "x":"ADRllQ0B7icrnJ7ib2r-CXvymGFiC_3f6_o0SzLMBIggM8ndQm9l768SToMy1hUo64Jso fGSQ37P4CRqT_QeivBD",
148 "y":"ALKEzew1Xe4Sv86lZVqb2xxZ0l7WrE3DPJ93fUtSPih5iH8jg0GPDKMVoA5ffFmqPwbdg S2BK18PBFIT7QDGb2Zx" 148 "y":"ALKEzew1Xe4Sv86lZVqb2xxZ0l7WrE3DPJ93fUtSPih5iH8jg0GPDKMVoA5ffFmqPwbdg S2BK18PBFIT7QDGb2Zx"
149 }, 149 },
150 150
151 "length_bits": 521, 151 "length_bits": 521,
152 "derived_bytes": "0117D54D84379D0FD385BE068455A77A5366AB534FF172AB0A121F37D1 80DCCD19607ABB0C41CB9F6F12B01303AC4A69DC2D1D05180181FD496D9769B46BFFEC3400" 152 "derived_bytes": "0117D54D84379D0FD385BE068455A77A5366AB534FF172AB0A121F37D1 80DCCD19607ABB0C41CB9F6F12B01303AC4A69DC2D1D05180181FD496D9769B46BFFEC3400",
153 "valid_p521_keys": true // Special variable use by ecdh_unittest.cc::LoadTes tKeys
153 }, 154 },
154 155
155 // Same as above but with the public/private switched. 156 // Same as above but with the public/private switched.
156 { 157 {
157 "public_key": { 158 "public_key": {
158 "crv":"P-521", 159 "crv":"P-521",
159 "kty":"EC", 160 "kty":"EC",
160 "x":"ACw6DX7wqwHVO-JzyOet0B-r10YVLv5R5q_IfiWCzclg0u_x57NCtOcFCFpM2ZnS22tyY jZb0gBHGcgUE_I-h-6s", 161 "x":"ACw6DX7wqwHVO-JzyOet0B-r10YVLv5R5q_IfiWCzclg0u_x57NCtOcFCFpM2ZnS22tyY jZb0gBHGcgUE_I-h-6s",
161 "y":"Actm2tCHBPOKLZMpJV3DaVOluln9zBsE2I0g6iV73I4M-liqA1rLSJN8q-vcSQtZF0Jvz wuvGkGuTbvT_DaRQ2pf" 162 "y":"Actm2tCHBPOKLZMpJV3DaVOluln9zBsE2I0g6iV73I4M-liqA1rLSJN8q-vcSQtZF0Jvz wuvGkGuTbvT_DaRQ2pf"
162 }, 163 },
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 "d":"uN2YSQvxuxhQQ9Y1XXjYi1vr2ZTdzuoDX18PYu4LU-0", 405 "d":"uN2YSQvxuxhQQ9Y1XXjYi1vr2ZTdzuoDX18PYu4LU-0",
405 "x":"S2S3tjygMB0DkM-N9jYUgGLt_9_H6km5P9V6V_KS4_4", 406 "x":"S2S3tjygMB0DkM-N9jYUgGLt_9_H6km5P9V6V_KS4_4",
406 "y":"03j8Tyqgrc4R4FAUV2C7-im96yMmfmO_5Om6Kr8YP3o", 407 "y":"03j8Tyqgrc4R4FAUV2C7-im96yMmfmO_5Om6Kr8YP3o",
407 "use": "enc" 408 "use": "enc"
408 }, 409 },
409 410
410 "private_key_error": "DataError: The JWK \"use\" member was inconsistent wit h that specified by the Web Crypto call. The JWK usage must be a superset of tho se requested" 411 "private_key_error": "DataError: The JWK \"use\" member was inconsistent wit h that specified by the Web Crypto call. The JWK usage must be a superset of tho se requested"
411 } 412 }
412 ] 413 ]
413 414
OLDNEW
« no previous file with comments | « content/child/webcrypto/test/ecdh_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698