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

Side by Side Diff: LayoutTests/crypto/resources/keys.js

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests Created 6 years 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 | « LayoutTests/crypto/resources/common.js ('k') | LayoutTests/crypto/resources/random-values.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 var kKeyData = {
2
3 // The following key pair is comprised of the SPKI (public key) and PKCS#8
4 // (private key) representations of the key pair provided in Example 1 of the
5 // NIST test vectors at ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors .txt
6 rsa1: {
7 modulusLengthBits: 1024,
8 publicExponent: "010001",
9
10 spki: "30819f300d06092a864886f70d010101050003818d0030818902818100a56e4a0e701 017" +
11 "589a5187dc7ea841d156f2ec0e36ad52a44dfeb1e61f7ad991d8c51056ffedb162b4c0f2" +
12 "83a12a88a394dff526ab7291cbb307ceabfce0b1dfd5cd9508096d5b2b8b6df5d671ef63" +
13 "77c0921cb23c270a70e2598e6ff89d19f105acc2d3f0cb35f29280e1386b6f64c4ef22e1" +
14 "e1f20d0ce8cffb2249bd9a21370203010001",
15
16 pkcs8: "30820275020100300d06092a864886f70d01010105000482025f3082025b02010002 8181" +
17 "00a56e4a0e701017589a5187dc7ea841d156f2ec0e36ad52a44dfeb1e61f7ad991d8c510" +
18 "56ffedb162b4c0f283a12a88a394dff526ab7291cbb307ceabfce0b1dfd5cd9508096d5b" +
19 "2b8b6df5d671ef6377c0921cb23c270a70e2598e6ff89d19f105acc2d3f0cb35f29280e1" +
20 "386b6f64c4ef22e1e1f20d0ce8cffb2249bd9a2137020301000102818033a5042a90b27d" +
21 "4f5451ca9bbbd0b44771a101af884340aef9885f2a4bbe92e894a724ac3c568c8f97853a" +
22 "d07c0266c8c6a3ca0929f1e8f11231884429fc4d9ae55fee896a10ce707c3ed7e734e447" +
23 "27a39574501a532683109c2abacaba283c31b4bd2f53c3ee37e352cee34f9e503bd80c06" +
24 "22ad79c6dcee883547c6a3b325024100e7e8942720a877517273a356053ea2a1bc0c94aa" +
25 "72d55c6e86296b2dfc967948c0a72cbccca7eacb35706e09a1df55a1535bd9b3cc34160b" +
26 "3b6dcd3eda8e6443024100b69dca1cf7d4d7ec81e75b90fcca874abcde123fd2700180aa" +
27 "90479b6e48de8d67ed24f9f19d85ba275874f542cd20dc723e6963364a1f9425452b269a" +
28 "6799fd024028fa13938655be1f8a159cbaca5a72ea190c30089e19cd274a556f36c4f6e1" +
29 "9f554b34c077790427bbdd8dd3ede2448328f385d81b30e8e43b2fffa02786197902401a" +
30 "8b38f398fa712049898d7fb79ee0a77668791299cdfa09efc0e507acb21ed74301ef5bfd" +
31 "48be455eaeb6e1678255827580a8e4e8e14151d1510a82a3f2e729024027156aba4126d2" +
32 "4a81f3a528cbfb27f56886f840a9f6e86e17a44b94fe9319584b8e22fdde1e5a2e3bd8aa" +
33 "5ba8d8584194eb2190acf832b847f13a3d24a79f4d",
34 },
35
36 // FIXME: Replace rsa2,rsa3 with a key pair (unknown what private key was for
37 // these).
38 rsa2: {
39 modulusLengthBits: 1024,
40 publicExponent: "010001",
41
42 spki: "30819f300d06092a864886f70d010101050003818d0030818902818100b2" +
43 "89c62ecc3ddf64154817203439eaa0dc07a65954429a7b6098a77235673d" +
44 "96df1f06bd3c1ae73990867199e678bf95b3728fcd4686136e6ee9dd4c09" +
45 "eb490eb7cb953c388668b759263f61d6a7dfcabf27b5c9d6972455b12b66" +
46 "d483843286d6b871f35f912a773c97c1932255fcee05ce7b8af213879f01" +
47 "7de4232a306a410203010001"
48 },
49
50 rsa3: {
51 modulusLengthBits: 2048,
52 publicExponent: "010001",
53
54 spki: "30820122300d06092a864886f70d01010105000382010f003082010a0282" +
55 "010100b4c8b631194aef0154b1479ab7a534b60ca878981108680f0ae6b7" +
56 "c88cb6010f6dbf9f665646208410575cb923b26bf874a24b4cd801c9bba9" +
57 "67062ae506cdcf307add4380d0d93077a4c1f0fc06d498dc729f811335c5" +
58 "30b90fe9bf9f3979ccec050a48e8923045b19368e1e89ea4157538e8059e" +
59 "53320f47c155f1741310a93ed153a7f3af2d46c388b95d82518527a02b7b" +
60 "d9ab7edc4bcb737677f679c5c6de5e1ebed3a29d6b99b8eace2d59ceb533" +
61 "e001cf39c5671495d51d3ee34406ea4fdb0c626dee68da256b8a12f9f650" +
62 "59ccc85a2190ce1385152d62785e00cae702e77c4c597b86a6268adbf043" +
63 "dda68881c790f1517671fb7d198fca5ba97bef0203010001"
64 },
65
66 // The following key pair was generated using:
67 //
68 // openssl genrsa -out pair.pem 2048
69 // openssl rsa -in pair.pem -out spki.der -outform DER -pubout
70 // openssl pkcs8 -topk8 -inform PEM -outform DER -in pair.pem -out pkcs8.der - nocrypt
71 // xxd -p spki.der
72 // xxd -p pkcs8.der
73 rsa4: {
74 modulusLengthBits: 2048,
75 publicExponent: "010001",
76
77 spki: "30820122300d06092a864886f70d01010105000382010f003082010a0282" +
78 "010100e085e33c42d3f3d63434e0bf1b812c444e790ff6c0becf2cc9de89" +
79 "5afa601457bd0fafa81e2b977ab818d086d018491d7ff45be40e916c4c81" +
80 "b3d055ac1803b514e1010b983ff072b77fa228dd47024e65a3c72ab4e2ed" +
81 "02901ba43351dcd87beef92036983c42495d9efec5b4ea1113848b532870" +
82 "99cff1ba58a7829af733f19269101da8c10aa1d5d6b34d381dbb0704e589" +
83 "04c3504a1922f6956e95596780a5db08fe944ff3056ec070eafa66f8c1c5" +
84 "d7dcde4ce2c2694f240aec528eb699089e29f669fb3405c47d6309a60993" +
85 "6e8b64e003b5f40743be6b7c2d5673e305cc4e2d154b2a046fba889b6091" +
86 "3271b00d5321fd15f82cc41b2894ffc2e54d0b0203010001",
87
88 pkcs8: "308204bd020100300d06092a864886f70d0101010500048204a7308204a3" +
89 "0201000282010100e085e33c42d3f3d63434e0bf1b812c444e790ff6c0be" +
90 "cf2cc9de895afa601457bd0fafa81e2b977ab818d086d018491d7ff45be4" +
91 "0e916c4c81b3d055ac1803b514e1010b983ff072b77fa228dd47024e65a3" +
92 "c72ab4e2ed02901ba43351dcd87beef92036983c42495d9efec5b4ea1113" +
93 "848b53287099cff1ba58a7829af733f19269101da8c10aa1d5d6b34d381d" +
94 "bb0704e58904c3504a1922f6956e95596780a5db08fe944ff3056ec070ea" +
95 "fa66f8c1c5d7dcde4ce2c2694f240aec528eb699089e29f669fb3405c47d" +
96 "6309a609936e8b64e003b5f40743be6b7c2d5673e305cc4e2d154b2a046f" +
97 "ba889b60913271b00d5321fd15f82cc41b2894ffc2e54d0b020301000102" +
98 "8201007ae930b59b8bf66f6c130a79f42fa9b117187521caf069f005eeda" +
99 "58c0b9fa48f1c9f58a5e41d4e22c880117dc317f4d33efeca2134b8ef2ef" +
100 "0a25e1d09d30e25fb4b162cc8d2c2f50bf0161c78908fd2bed15aa0e6e2f" +
101 "fb78327998529748b7c7e1ffbd8367718e423f390fb8736eb7b596a4067e" +
102 "65e58d5a4b1020927f03a293d5d3b32931d2a06542e9bbeab7e90085afc9" +
103 "fe145d1c28f44a97f8d9eb8c41913ed9f40261ac5f86806254e26aa8502b" +
104 "92779794a7b08ea299865cbdfeab4dd16307169902b46dbe132b035f7e27" +
105 "42f779f5b39a0b40099434a8af14c78f705abaa7474633a7c6306b2673a9" +
106 "7aae35b6a3bf6a5fdd9a6b8d17bd6bbfa1872902818100f2bdbf99a43a40" +
107 "64ac5c85ccff42cccf14fa35250a8d77db6746478d0aea456377dc304688" +
108 "a55b1d2b14c46189ff4f92b078902ff66d144116038667cbbf5bfe80a775" +
109 "aa6eb9885686193debf030eaba00a8cbf26a4fdce1cb433a3a0ccd9696d6" +
110 "4448141b0c5d9dfb32bdc29a271594d8e2bc0639daeec705b2cc12419876" +
111 "b702818100ecc964d844657b98dc6b3c6df58a4b5adff0cf5ac1a68679de" +
112 "2baccb4cda1b767f879e441769e5cc0065d8e573f9d728bbd4e25553ee8a" +
113 "2ba779eb219ad0a108daea34e7054d1767e644bdb63880234ac8143a9dda" +
114 "28d3f9196508088e2722ab86a3aa10e599b3caf226e69bee90a1ae7f289b" +
115 "945a34a4fed5e34f9d216b284d028180150ba27afda4174523347a5d459c" +
116 "5309793620396feac8037bb6ba295e52e565345520d25cb2896dc3f86ef6" +
117 "4df296c18f0f44e103aa7d610f398b03a0c49c833a404a91563c3bb7d4b4" +
118 "878bd72d468c8dd614a895d30ac180cff952631dc7fa97e51fa2ae9da9d8" +
119 "3299399e8fa2e7da19dbbe95839a99ad23af56c6166dd38d02818005da64" +
120 "97c3f90e391519c180a65528cfb2416d9ebcb2b5184619a647d03a83fb45" +
121 "e3c051c692638fcb62b91dd2e4162177a327851c720510572f7854785337" +
122 "e7d4217df547f843dfd99d516333ba5724fe1521edccfabd62a6f20c64c9" +
123 "bec5e89f876428cec421e19e62bfc892f918460bf6a101e5c8ef5b2d4655" +
124 "2d792a00f102818100b7d0e59415405a3ce9503e95078078518d381f4273" +
125 "106d67863cfee642d2b82186d9932b7cd921bf1867257473ccd2058d9c88" +
126 "a223701701aa8370b90878df96a6950e3b3ed52326a5cabbf376c97aa644" +
127 "c50fafe38f7496fb9e69efdd138b3525d8b7ac162bd75fe84cb4ce7066d6" +
128 "b786e80c42d5e63059ae939c7bcfa497ed"
129 },
130 jwkRSAPublicKeyJSON : {
131 kty: "RSA",
132 alg: "RS1",
133 n: "rcCUCv7Oc1HVam1DIhCzqknThWawOp8QLk8Ziy2p10ByjQFCajoFiyuAWl-R1WXZaf4xitLR racT9agpzIzc-MbLSHIGgWQGO21lGiImy5ftZ-D8bHAqRz2y15pzD4c4CEou7XSSLDoRnR0QG5MsDhD6 s2gV9mwHkrtkCxtMWdBi-77as8wGmlNRldcOSgZDLK8UnCSgA1OguZ989bFyc8tOOEIb0xUSfPSz3LPS CnyYz68aDjmKVeNH-ig857OScyWbGyEy3Biw64qun3juUlNWsJ3zngkOdteYWytx5Qr4XKNs6R-Myyq7 2KUp02mJDZiiyiglxML_i3-_CeecCw",
134 e: "AQAB"
135 },
136
137 jwkRSAPrivateKeyJSON : {
138 kty: "RSA",
139 alg: "RS1",
140 n: "rcCUCv7Oc1HVam1DIhCzqknThWawOp8QLk8Ziy2p10ByjQFCajoFiyuAWl-R1WXZaf4xitLR racT9agpzIzc-MbLSHIGgWQGO21lGiImy5ftZ-D8bHAqRz2y15pzD4c4CEou7XSSLDoRnR0QG5MsDhD6 s2gV9mwHkrtkCxtMWdBi-77as8wGmlNRldcOSgZDLK8UnCSgA1OguZ989bFyc8tOOEIb0xUSfPSz3LPS CnyYz68aDjmKVeNH-ig857OScyWbGyEy3Biw64qun3juUlNWsJ3zngkOdteYWytx5Qr4XKNs6R-Myyq7 2KUp02mJDZiiyiglxML_i3-_CeecCw",
141 e: "AQAB",
142 d: "eNLS37aCz7RXSNPD_DtLBJ6j5T8cSxdzRBCjPaI6WcGqJp16lq3UTwuoDLAqlA9oGYm238ds IWpuucP_lQtbWe-7SpxoI6_vmYGf7YVUHv1-DF9qiOmSrMmdxMnVOzYXY8RaT6thPjn_J5cfLV2xI_Lw srMtmpdSyNlgX0zTUhwtuahgAKMEChYjH2EnjHdHw6sY2-wApdcQI7ULE0oo5RzbQZpmuhcN9hiBc0L3 hhF0qo50mbl02_65_GQ7DpVkXBxNgRBLzlPabmzzG2oAhfefLgYmSC1opaCkXE6vRWQNWNL45RZNZFYM 3uoJghOMqGeocM0BpjdChHrPOlFvSQ",
143 p: "4miTuAjKMeH5uJ5KB397QUwhbkYEgSbcA2mifmSkvE2018gb55qkBHK1eVryf1_m43LNlc6O _ak6gfzdZIZvS5NCGjPl0q09plUpu8qFOSspBwA67qGH76lFlZLn_d4yglS7wfLru4_5Ys8qLLs-DqVL viwposOnyyWqwM5AXp0",
144 q: "xHYrzkivtmnz_sGchnWGc0q-pDOkKicptRpv2pMFIIXxnFX5aMeEXIZjVujXtwUy1UlFIN2G ZJSvy5KJ79mu_XyNnFHMzedH-A3ee3u8h1UUrZF-vUu1_e4U_x67NN1dedzUSKynN7pFl3OkuShMBWGV -cwzOPdcVAfVuZlxUMc",
145 dp: "fBzDzYDUBmBQGop7Hn0dvf_T27V6RqpctWo074CQZcFbP2atFVtKSj3viWT3xid2VHzcgiD HdfpM3nEVlEO1wwIonGCSvdjGEOZiiFVOjrZAOVxA8guOjyyFvqbXke06VwPIIVvfKeSU2zuhbP__1tt 6F_fxow4Kb2xonGT0GGk",
146 dq: "jmE2DiIPdhwDgLXAQpIaBqQ81bO3XfVT_LRULAwwwwlPuQV148H04zlh9TJ6Y2GZHYokV1U 0eOBpJxfkb7dLYtpJpuiBjRf4yIUEoGlkkI_QlJnFSFr-YjGRdfNHqWBkxlSMZL770R9mIATndGkH7z5 x-r9KwBZFC4FCG2hg_zE",
147 qi: "YCX_pLwbMBA1ThVH0WcwmnytqNcrMCEwTm7ByA2eU6nWbQrULvf7m9_kzfLUcjsnpAVlBQG 5JMXMy0Sq4ptwbywsa5-G8KAOOOR2L3v4hC-Eys9ftgFM_3i0o40eeQH4b3haPbntrIeMg8IzlOuVYKf 9-2QuKDoWeRdd7NsdxTk"
148 },
149
150 };
OLDNEW
« no previous file with comments | « LayoutTests/crypto/resources/common.js ('k') | LayoutTests/crypto/resources/random-values.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698