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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/webcrypto/test/ecdsa_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/webcrypto/ec_private_keys.json
diff --git a/content/test/data/webcrypto/ec_private_keys.json b/content/test/data/webcrypto/ec_private_keys.json
index 4d695b498285affcf479c0e19d3f75bcaea8ab8b..e1506dda9b6acaa8bdb8c8d74091428c6f85c910 100644
--- a/content/test/data/webcrypto/ec_private_keys.json
+++ b/content/test/data/webcrypto/ec_private_keys.json
@@ -73,5 +73,24 @@
"y":"gKEET8d0MXwkffogoA-3jRQZjTSmNxeUfoxxQ-y53xM"
},
"pkcs8": "308186020100301306072A8648CE3D020106082A8648CE3D030107046C306A020101041FC766C09343D4337EEAD05A5CE16C899808C8F15C7C7A4C7DF7231C84C2D5BCA14403420004B7D3CC5D085D8B7707B3E572D223F16CD5E277D3FB93FB1B1B11B2728463CEC580A1044FC774317C247DFA20A00FB78D14198D34A63717947E8C7143ECB9DF13"
+ },
+
+ // In this test the PKCS8 input data does NOT contain the optional publicKey field.
+ // * When importing from PKCS8 (original_pkcs8) and then exporting to JWK,
+ // the "x" and "y" parameters are synthesized.
+ // * When importing from PKCS8 (original_pkcs8) and then exporting back to
+ // PKCS8 (exported_pkcs8), the publicKey field is added. This is why
+ // original_pkcs8 != exported_pkcs8.
+ {
+ "crv": "P-256",
+ "jwk": {
+ "kty": "EC",
+ "crv": "P-256",
+ "d": "H-M5UMX0YRJK6ZLCvf3xxzsWFfVxvVZ-YNGaofSM30I",
+ "x": "fBEMZtz9qAf25p5F3bPHT2mhSE0gPo3Frajpqd18s8c",
+ "y": "DfRImG5RveXRV2-ZkB-cLGqAakf9kHZDpyuDVZfvyMY"
+ },
+ "original_pkcs8": "3041020100301306072A8648CE3D020106082A8648CE3D0301070427302502010104201FE33950C5F461124AE992C2BDFDF1C73B1615F571BD567E60D19AA1F48CDF42",
+ "exported_pkcs8": "308187020100301306072A8648CE3D020106082A8648CE3D030107046D306B02010104201FE33950C5F461124AE992C2BDFDF1C73B1615F571BD567E60D19AA1F48CDF42A144034200047C110C66DCFDA807F6E69E45DDB3C74F69A1484D203E8DC5ADA8E9A9DD7CB3C70DF448986E51BDE5D1576F99901F9C2C6A806A47FD907643A72B835597EFC8C6"
}
]
« 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