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

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: 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
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 "curve": "P-256", 4 "curve": "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 "curve": "P-256", 67 "curve": "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 and then exporting to JWK, the "x" and "y"
80 // parameters are synthesized.
81 // * When importing from PKCS8 and then exporting back to PKCS8, the
82 // publicKey field is added. The input is "pkcs8_input", and the expected
83 // exported data is "pkcs8"
84 {
85 "curve": "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 "pkcs8_input": "3041020100301306072A8648CE3D020106082A8648CE3D03010704273025 02010104201FE33950C5F461124AE992C2BDFDF1C73B1615F571BD567E60D19AA1F48CDF42",
94 "pkcs8": "308187020100301306072A8648CE3D020106082A8648CE3D030107046D306B0201 0104201FE33950C5F461124AE992C2BDFDF1C73B1615F571BD567E60D19AA1F48CDF42A144034200 047C110C66DCFDA807F6E69E45DDB3C74F69A1484D203E8DC5ADA8E9A9DD7CB3C70DF448986E51BD E5D1576F99901F9C2C6A806A47FD907643A72B835597EFC8C6"
Ryan Sleevi 2015/01/02 22:45:23 I find naming the inputs "pkcs8" and "pkcs8_input"
eroman 2015/01/02 23:49:38 A couple ideas: (1) Rename them to "original_pkc
eroman 2015/01/06 21:14:36 Ryan: I have changed to strategy (1). You can see
76 } 95 }
77 ] 96 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698