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

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

Issue 835633002: Change the WebCrypto behavior when importing EC private keys without a public key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_private_tests
Patch Set: properly rebase 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/ecdsa_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 // This file contains valid EC private keys in both JWK format, and PKCS8 format . 1 // This file contains valid EC private keys in both JWK format, and PKCS8 format .
2 [ 2 [
3 { 3 {
4 "crv": "P-256", 4 "crv": "P-256",
5 "jwk": { 5 "jwk": {
6 "kty": "EC", 6 "kty": "EC",
7 "crv": "P-256", 7 "crv": "P-256",
8 "d": "H-M5UMX0YRJK6ZLCvf3xxzsWFfVxvVZ-YNGaofSM30I", 8 "d": "H-M5UMX0YRJK6ZLCvf3xxzsWFfVxvVZ-YNGaofSM30I",
9 "x": "fBEMZtz9qAf25p5F3bPHT2mhSE0gPo3Frajpqd18s8c", 9 "x": "fBEMZtz9qAf25p5F3bPHT2mhSE0gPo3Frajpqd18s8c",
10 "y": "DfRImG5RveXRV2-ZkB-cLGqAakf9kHZDpyuDVZfvyMY" 10 "y": "DfRImG5RveXRV2-ZkB-cLGqAakf9kHZDpyuDVZfvyMY"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 { 66 {
67 "crv": "P-256", 67 "crv": "P-256",
68 "jwk": { 68 "jwk": {
69 "kty":"EC", 69 "kty":"EC",
70 "crv": "P-256", 70 "crv": "P-256",
71 "d": "AMdmwJND1DN-6tBaXOFsiZgIyPFcfHpMffcjHITC1bw", 71 "d": "AMdmwJND1DN-6tBaXOFsiZgIyPFcfHpMffcjHITC1bw",
72 "x":"t9PMXQhdi3cHs-Vy0iPxbNXid9P7k_sbGxGycoRjzsU", 72 "x":"t9PMXQhdi3cHs-Vy0iPxbNXid9P7k_sbGxGycoRjzsU",
73 "y":"gKEET8d0MXwkffogoA-3jRQZjTSmNxeUfoxxQ-y53xM" 73 "y":"gKEET8d0MXwkffogoA-3jRQZjTSmNxeUfoxxQ-y53xM"
74 }, 74 },
75 "pkcs8": "308186020100301306072A8648CE3D020106082A8648CE3D030107046C306A0201 01041FC766C09343D4337EEAD05A5CE16C899808C8F15C7C7A4C7DF7231C84C2D5BCA14403420004 B7D3CC5D085D8B7707B3E572D223F16CD5E277D3FB93FB1B1B11B2728463CEC580A1044FC774317C 247DFA20A00FB78D14198D34A63717947E8C7143ECB9DF13" 75 "pkcs8": "308186020100301306072A8648CE3D020106082A8648CE3D030107046C306A0201 01041FC766C09343D4337EEAD05A5CE16C899808C8F15C7C7A4C7DF7231C84C2D5BCA14403420004 B7D3CC5D085D8B7707B3E572D223F16CD5E277D3FB93FB1B1B11B2728463CEC580A1044FC774317C 247DFA20A00FB78D14198D34A63717947E8C7143ECB9DF13"
76 },
77
78 // In this test the PKCS8 input data does NOT contain the optional publicKey f ield.
79 // * When importing from PKCS8 (original_pkcs8) and then exporting to JWK,
80 // the "x" and "y" parameters are synthesized.
81 // * When importing from PKCS8 (original_pkcs8) and then exporting back to
82 // PKCS8 (exported_pkcs8), the publicKey field is added. This is why
83 // original_pkcs8 != exported_pkcs8.
84 {
85 "crv": "P-256",
86 "jwk": {
87 "kty": "EC",
88 "crv": "P-256",
89 "d": "H-M5UMX0YRJK6ZLCvf3xxzsWFfVxvVZ-YNGaofSM30I",
90 "x": "fBEMZtz9qAf25p5F3bPHT2mhSE0gPo3Frajpqd18s8c",
91 "y": "DfRImG5RveXRV2-ZkB-cLGqAakf9kHZDpyuDVZfvyMY"
92 },
93 "original_pkcs8": "3041020100301306072A8648CE3D020106082A8648CE3D03010704273 02502010104201FE33950C5F461124AE992C2BDFDF1C73B1615F571BD567E60D19AA1F48CDF42",
94 "exported_pkcs8": "308187020100301306072A8648CE3D020106082A8648CE3D030107046 D306B02010104201FE33950C5F461124AE992C2BDFDF1C73B1615F571BD567E60D19AA1F48CDF42A 144034200047C110C66DCFDA807F6E69E45DDB3C74F69A1484D203E8DC5ADA8E9A9DD7CB3C70DF44 8986E51BDE5D1576F99901F9C2C6A806A47FD907643A72B835597EFC8C6"
76 } 95 }
77 ] 96 ]
OLDNEW
« no previous file with comments | « content/child/webcrypto/test/ecdsa_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698