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

Unified Diff: LayoutTests/crypto/resources/keys.js

Issue 206483010: [webcrypto] Refactor some layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « LayoutTests/crypto/resources/common.js ('k') | LayoutTests/crypto/sha-digest.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/resources/keys.js
diff --git a/LayoutTests/crypto/resources/keys.js b/LayoutTests/crypto/resources/keys.js
new file mode 100644
index 0000000000000000000000000000000000000000..3aac08c412c6fc4580b1dbc2bf84f583fba141e4
--- /dev/null
+++ b/LayoutTests/crypto/resources/keys.js
@@ -0,0 +1,65 @@
+var kKeyData = {
+
+ // The following key pair is comprised of the SPKI (public key) and PKCS#8
+ // (private key) representations of the key pair provided in Example 1 of the
+ // NIST test vectors at ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors.txt
+ rsa1: {
+ modulusLengthBits: 1024,
+ publicExponent: "010001",
+
+ spki: "30819f300d06092a864886f70d010101050003818d0030818902818100a56e4a0e701017" +
+ "589a5187dc7ea841d156f2ec0e36ad52a44dfeb1e61f7ad991d8c51056ffedb162b4c0f2" +
+ "83a12a88a394dff526ab7291cbb307ceabfce0b1dfd5cd9508096d5b2b8b6df5d671ef63" +
+ "77c0921cb23c270a70e2598e6ff89d19f105acc2d3f0cb35f29280e1386b6f64c4ef22e1" +
+ "e1f20d0ce8cffb2249bd9a21370203010001",
+
+ pkcs8: "30820275020100300d06092a864886f70d01010105000482025f3082025b020100028181" +
+ "00a56e4a0e701017589a5187dc7ea841d156f2ec0e36ad52a44dfeb1e61f7ad991d8c510" +
+ "56ffedb162b4c0f283a12a88a394dff526ab7291cbb307ceabfce0b1dfd5cd9508096d5b" +
+ "2b8b6df5d671ef6377c0921cb23c270a70e2598e6ff89d19f105acc2d3f0cb35f29280e1" +
+ "386b6f64c4ef22e1e1f20d0ce8cffb2249bd9a2137020301000102818033a5042a90b27d" +
+ "4f5451ca9bbbd0b44771a101af884340aef9885f2a4bbe92e894a724ac3c568c8f97853a" +
+ "d07c0266c8c6a3ca0929f1e8f11231884429fc4d9ae55fee896a10ce707c3ed7e734e447" +
+ "27a39574501a532683109c2abacaba283c31b4bd2f53c3ee37e352cee34f9e503bd80c06" +
+ "22ad79c6dcee883547c6a3b325024100e7e8942720a877517273a356053ea2a1bc0c94aa" +
+ "72d55c6e86296b2dfc967948c0a72cbccca7eacb35706e09a1df55a1535bd9b3cc34160b" +
+ "3b6dcd3eda8e6443024100b69dca1cf7d4d7ec81e75b90fcca874abcde123fd2700180aa" +
+ "90479b6e48de8d67ed24f9f19d85ba275874f542cd20dc723e6963364a1f9425452b269a" +
+ "6799fd024028fa13938655be1f8a159cbaca5a72ea190c30089e19cd274a556f36c4f6e1" +
+ "9f554b34c077790427bbdd8dd3ede2448328f385d81b30e8e43b2fffa02786197902401a" +
+ "8b38f398fa712049898d7fb79ee0a77668791299cdfa09efc0e507acb21ed74301ef5bfd" +
+ "48be455eaeb6e1678255827580a8e4e8e14151d1510a82a3f2e729024027156aba4126d2" +
+ "4a81f3a528cbfb27f56886f840a9f6e86e17a44b94fe9319584b8e22fdde1e5a2e3bd8aa" +
+ "5ba8d8584194eb2190acf832b847f13a3d24a79f4d",
+ },
+
+ // FIXME: Replace rsa2,rsa3 with a key pair (unknown what private key was for
+ // these).
+ rsa2: {
+ modulusLengthBits: 1024,
+ publicExponent: "010001",
+
+ spki: "30819f300d06092a864886f70d010101050003818d0030818902818100b2" +
+ "89c62ecc3ddf64154817203439eaa0dc07a65954429a7b6098a77235673d" +
+ "96df1f06bd3c1ae73990867199e678bf95b3728fcd4686136e6ee9dd4c09" +
+ "eb490eb7cb953c388668b759263f61d6a7dfcabf27b5c9d6972455b12b66" +
+ "d483843286d6b871f35f912a773c97c1932255fcee05ce7b8af213879f01" +
+ "7de4232a306a410203010001"
+ },
+
+ rsa3: {
+ modulusLengthBits: 2048,
+ publicExponent: "010001",
+
+ spki: "30820122300d06092a864886f70d01010105000382010f003082010a0282" +
+ "010100b4c8b631194aef0154b1479ab7a534b60ca878981108680f0ae6b7" +
+ "c88cb6010f6dbf9f665646208410575cb923b26bf874a24b4cd801c9bba9" +
+ "67062ae506cdcf307add4380d0d93077a4c1f0fc06d498dc729f811335c5" +
+ "30b90fe9bf9f3979ccec050a48e8923045b19368e1e89ea4157538e8059e" +
+ "53320f47c155f1741310a93ed153a7f3af2d46c388b95d82518527a02b7b" +
+ "d9ab7edc4bcb737677f679c5c6de5e1ebed3a29d6b99b8eace2d59ceb533" +
+ "e001cf39c5671495d51d3ee34406ea4fdb0c626dee68da256b8a12f9f650" +
+ "59ccc85a2190ce1385152d62785e00cae702e77c4c597b86a6268adbf043" +
+ "dda68881c790f1517671fb7d198fca5ba97bef0203010001"
+ }
+};
« no previous file with comments | « LayoutTests/crypto/resources/common.js ('k') | LayoutTests/crypto/sha-digest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698