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

Unified Diff: content/test/data/webcrypto/bad_ec_keys.json

Issue 838573003: Add another test for importing a bad EC key into WebCrypto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/webcrypto/bad_ec_keys.json
diff --git a/content/test/data/webcrypto/bad_ec_keys.json b/content/test/data/webcrypto/bad_ec_keys.json
index 66bf6a09aa337df12038cedd14aac67fa3bb4409..37e044a72ce92a742835aeb588e36d570f7d1619 100644
--- a/content/test/data/webcrypto/bad_ec_keys.json
+++ b/content/test/data/webcrypto/bad_ec_keys.json
@@ -209,6 +209,15 @@
// --------------------------------------------------------------------------
// Bad private keys (PKCS8)
// --------------------------------------------------------------------------
+
+ // The private key is exactly equal to the order, and the public key is
+ // private key * order.
+ {
+ "crv": "P-256",
+ "key_format": "pkcs8",
+ "key": "3066020100301306072A8648CE3D020106082A8648CE3D030107044C304A0201010420FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551A12303210000FFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551",
+ "error": "DataError"
+ },
// The private key is exactly equal to the order, and the public key is
// omitted.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698