Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / test / data / webcrypto / pkcs1v15_sign.json
blob05e1ea14e3340f4a6b30bc26ce1f3efdb34482db
1 // Use the NIST test vectors from Example 1 of
2 // ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors.txt
3 // These vectors are known answers for RSA PKCS#1 v1.5 Signature with a SHA-1
4 // digest, using a predefined key pair.
7   // The following data are the input messages and corresponding computed RSA
8   // PKCS#1 v1.5 signatures from the NIST link above.
9   // PKCS#1 v1.5 Signature Example 1.1
10   {
11     "message_hex": "cdc87da223d786df3b45e0bbbc721326d1ee2af806cc315475cc6f0d9c66e1b62371d45ce2392e1ac92844c310102f156a0d8d52c1f4c40ba3aa65095786cb769757a6563ba958fed0bcc984e8b517a3d5f515b23b8a41e74aa867693f90dfb061a6e86dfaaee64472c00e5f20945729cbebe77f06ce78e08f4098fba41f9d6193c0317e8b60d4b6084acb42d29e3808a3bc372d85e331170fcbf7cc72d0b71c296648b3a4d10f416295d0807aa625cab2744fd9ea8fd223c42537029828bd16be02546f130fd2e33b936d2676e08aed1b73318b750a0167d0",
12     "signature_hex": "6bc3a06656842930a247e30d5864b4d819236ba7c68965862ad7dbc4e24af28e86bb531f03358be5fb74777c6086f850caef893f0d6fcc2d0c91ec013693b4ea00b80cd49aac4ecb5f8911afe539ada4a8f3823d1d13e472d1490547c659c7617f3d24087ddb6f2b72096167fc097cab18e9a458fcb634cdce8ee35894c484d7"
13   },
14   // PKCS#1 v1.5 Signature Example 1.2
15   {
16     "message_hex": "851384cdfe819c22ed6c4ccb30daeb5cf059bc8e1166b7e3530c4c233e2b5f8f71a1cca582d43ecc72b1bca16dfc7013226b9e",
17     "signature_hex": "84fd2ce734ec1da828d0f15bf49a8707c15d05948136de537a3db421384167c86fae022587ee9e137daee754738262932d271c744c6d3a189ad4311bdb020492e322fbddc40406ea860d4e8ea2a4084aa98b9622a446756fdb740ddb3d91db7670e211661bbf8709b11c08a70771422d1a12def29f0688a192aebd89e0f896f8"
18   },
19   // PKCS#1 v1.5 Signature Example1.3
20   {
21     "message_hex": "a4b159941761c40c6a82f2b80d1b94f5aa2654fd17e12d588864679b54cd04ef8bd03012be8dc37f4b83af7963faff0dfa225477437c48017ff2be8191cf3955fc07356eab3f322f7f620e21d254e5db4324279fe067e0910e2e81ca2cab31c745e67a54058eb50d993cdb9ed0b4d029c06d21a94ca661c3ce27fae1d6cb20f4564d66ce4767583d0e5f060215b59017be85ea848939127bd8c9c4d47b51056c031cf336f17c9980f3b8f5b9b6878e8b797aa43b882684333e17893fe9caa6aa299f7ed1a18ee2c54864b7b2b99b72618fb02574d139ef50f019c9eef416971338e7d470",
22     "signature_hex": "0b1f2e5180e5c7b4b5e672929f664c4896e50c35134b6de4d5a934252a3a245ff48340920e1034b7d5a5b524eb0e1cf12befef49b27b732d2c19e1c43217d6e1417381111a1d36de6375cf455b3c9812639dbc27600c751994fb61799ecf7da6bcf51540afd0174db4033188556675b1d763360af46feeca5b60f882829ee7b2"
23   },
24   // PKCS#1 v1.5 Signature Example 1.4
25   {
26     "message_hex": "bc656747fa9eafb3f0",
27     "signature_hex": "45607ad611cf5747a41ac94d0ffec878bdaf63f6b57a4b088bf36e34e109f840f24b742ada16102dabf951cbc44f8982e94ed4cd09448d20ec0efa73545f80b65406bed6194a61c340b4ad1568cbb75851049f11af1734964076e02029aee200e40e80be0f4361f69841c4f92a4450a2286d43289b405554c54d25c6ecb584f4"
28   },
29   // PKCS#1 v1.5 Signature Example 1.5
30   {
31     "message_hex": "b45581547e5427770c768e8b82b75564e0ea4e9c32594d6bff706544de0a8776c7a80b4576550eee1b2acabc7e8b7d3ef7bb5b03e462c11047eadd00629ae575480ac1470fe046f13a2bf5af17921dc4b0aa8b02bee6334911651d7f8525d10f32b51d33be520d3ddf5a709955a3dfe78283b9e0ab54046d150c177f037fdccc5be4ea5f68b5e5a38c9d7edcccc4975f455a6909b4",
32     "signature_hex": "54be9d90877515f450279c15b5f61ad6f15ecc95f18cbed82b65b1667a575809587994668044f3bc2ae7f884501f64f0b43f588cfa205a6ab704328c2d4ab92a7ae13440614d3e085f401da9ad28e2105e4a0edb681a6424df047388ce051ee9df7bc2163fe347520ad51ccd518064383e741acad3cbdc2cb5a7c68e868464c2"
33   },
34   // PKCS#1 v1.5 Signature Example 1.6
35   {
36     "message_hex": "10aae9a0ab0b595d0841207b700d48d75faedde3b775cd6b4cc88ae06e4694ec74ba18f8520d4f5ea69cbbe7cc2beba43efdc10215ac4eb32dc302a1f53dc6c4352267e7936cfebf7c8d67035784a3909fa859c7b7b59b8e39c5c2349f1886b705a30267d402f7486ab4f58cad5d69adb17ab8cd0ce1caf5025af4ae24b1fb8794c6070cc09a51e2f9911311e3877d0044c71c57a993395008806b723ac38373d395481818528c1e7053739282053529510e935cd0fa77b8fa53cc2d474bd4fb3cc5c672d6ffdc90a00f9848712c4bcfe46c60573659b11e6457e861f0f604b6138d144f8ce4e2da73",
37     "signature_hex": "0e6ff63a856b9cbd5dbe423183122047dd39d6f76d1b2310e546fe9ee73b33efa7c78f9474455c9e5b88cb383aafc3698668e7b7a59a9cbb5b0897b6c5afb7f8bac4b924e98d760a15fc43d2814ab2d5187f79bed9915a93397ebc22a7677506a02e076d3ffdc0441dbd4db00453dc28d830e0573f77b817b505c38b4a4bb5d0"
38   },
39   // PKCS#1 v1.5 Signature Example 1.7
40   {
41     "message_hex": "efb5da1b4d1e6d9a5dff92d0184da7e31f877d1281ddda625664869e8379e67ad3b75eae74a580e9827abd6eb7a002cb5411f5266797768fb8e95ae40e3e8b3466f5ab15d69553952939ec23e61d58497fac76aa1c0bb5a3cb4a54383587c7bb78d13eefda205443e6ce4365802df55c64713497984e7ca96722b3edf84d56",
42     "signature_hex": "8385d58533a995f72df262b70f40b391ddf515f464b9d2cc2d66398fc05689d811632946d62eabdca7a31fcf6cd6c981d28bbc29083e4a6d5b2b378ca4e540f060b96d53ad2693f82178b94e2e2f86b9accfa02025107e062ab7080175684501028f676461d81c008fe4750671649970878fc175cf98e96b2ecbf6874d77dacb"
43   },
44   // PKCS#1 v1.5 Signature Example 1.8
45   {
46     "message_hex": "53bb58ce42f1984940552657233b14969af365c0a561a4132af18af39432280e3e437082434b19231837184f02cf2b2e726bebf74d7ae3256d8b72f3eafdb134d33de06f2991d299d59f5468d43b9958d6a968f5969edbbc6e7185cbc716c7c945dafa9cc71ddfaaa01094a452ddf5e2407320400bf05ea9729cafbf0600e78807ef9462e3fde32ed7d981a56f4751ef64fb4549910ecc911d728053b39943004740e6f5821fe8d75c0617bf2c6b24bbfc34013fc95f0dedf5ba297f504fb833da2a436d1d8ff1cc5193e2a64389fced918e7feb6716330f66801db9497549cf1d3bd97cf1bc6255",
47     "signature_hex": "8e1f3d26ec7c6bbb8c54c5d25f3120587803af6d3c2b99a37ced6a3657d4ae54266f63fffde660c866d65d0ab0589e1d12d9ce6054b05c8668ae127171ccaae7f1cd409677f52157b6123ab227f27a00966d1439b42a32169d1070394026fc8bc93545b1ac252d0f7da751c02e33a47831fbd71514c2bbbd3adb6740c0fd68ad"
48   },
49   // PKCS#1 v1.5 Signature Example 1.9
50   {
51     "message_hex": "27cadc698450945f204ec3cf8c6cbd8ceb4cc0cbe312274fa96b04deac855160c0e04e4ac5d38210c27c",
52     "signature_hex": "7b63f9223356f35f6117f68c8f8220034fc2384ab5dc6904141f139314d6ee89f54ec6ffd18c413a23c5931c7fbb13c555ccfd590e0eaa853c8c94d2520cd4250d9a05a193b65dc749b82478af0156ee1de55ddad33ec1f0099cad6c891a3617c7393d05fbfbbb00528a001df0b204ebdf1a341090dea89f870a877458427f7b"
53   },
54   // PKCS#1 v1.5 Signature Example 1.10
55   {
56     "message_hex": "716407e901b9ef92d761b013fd13eb7ad72aed",
57     "signature_hex": "2a22dbe3774d5b297201b55a0f17f42dce63b7845cb325cfe951d0badb5c5a14472143d896c86cc339f83671164215abc97862f2151654e75a3b357c37311b3d7268cab540202e23bee52736f2cd86cce0c7dbde95e1c600a47395dc5eb0a472153fbc4fb21b643e0c04ae14dd37e97e617a7567c89652219781001ba6f83298"
58   },
59   // PKCS#1 v1.5 Signature Example 1.11
60   {
61     "message_hex": "46c24e4103001629c712dd4ce8d747ee595d6c744ccc4f71347d9b8abf49d1b8fb2ef91b95dc899d4c0e3d2997e638f4cf3f68e0498de5aabd13f0dfe02ff26ba4379104e78ffa95ffbd15067ef8cbd7eb7860fecc71abe13d5c720a66851f2defd4e795054d7bec024bb422a46a7368b56d95b47aebafbeadd612812593a70db9f96d451ee15edb299308d777f4bb68ed3377c32156b41b7a9c92a14c8b81144399c56a5a432f4f770aa97da8415d0bda2e813206031e70620031c881d616bffd5f03bf147c1e73766c26246208",
62     "signature_hex": "12235b0b406126d9d260d447e923a11051fb243079f446fd73a70181d53634d7a0968e4ee27777eda63f6e4a3a91ad5985998a4848da59ce697b24bb332fa2ad9ce462ca4affdc21dab908e8ce15af6eb9105b1abcf39142aa17b34c4c092386a7abbfe028afdbebc14f2ce26fbee5edeca11502d39a6b7403154843d98a62a7"
63   },
64   // PKCS#1 v1.5 Signature Example 1.12
65   {
66     "message_hex": "bc99a932aa16d622bfff79c50b4c42358673261129e28d6a918ff1b0f1c4f46ad8afa98b0ca0f56f967975b0a29be882e93b6cd3fc33e1faef72e52b2ae0a3f12024506e25690e902e782982145556532284cf505789738f4da31fa1333d3af862b2ba6b6ce7ab4cce6aba",
67     "signature_hex": "872ec5ad4f1846256f17e9936ac50e43e9963ea8c1e76f15879b7874d77d122a609dc8c561145b94bf4ffdffdeb17e6e76ffc6c10c0747f5e37a9f434f5609e79da5250215a457afdf12c6507cc1551f54a28010595826a2c9b97fa0aa851cc68b705d7a06d720ba027e4a1c0b019500fb63b78071684dcfa9772700b982dc66"
68   },
69   // PKCS#1 v1.5 Signature Example 1.13
70   {
71     "message_hex": "731e172ac063992c5b11ba170dfb23bb000d47ba195329cf278061037381514c146064c5285db130dd5bae98b772225950eab05d3ea996f6fffb9a8c8622913f279914c89ada4f3dd77666a868bfcbff2b95b7daf453d4e2c9d75beee7f8e70905e4066a4f73aecc67f956aa5a3292b8488c917d317cfdc86253e690381e15ab",
72     "signature_hex": "76204eacc1d63ec1d6ad5bd0692e1a2f686df6e64ca945c77a824de212efa6d9782d81b4591403ff4020620298c07ebd3a8a61c5bf4dad62cbfc4ae6a03937be4b49a216d570fc6e81872937876e27bd19cf601effc30ddca573c9d56cd4569bdb4851c450c42cb21e738cdd61027b8be5e9b410fc46aa3f29e4be9e64451346"
73   },
74   // PKCS#1 v1.5 Signature Example 1.14
75   {
76     "message_hex": "0211382683a74d8d2a2cb6a06550563be1c26ca62821e4ff163b720464fc3a28d91bedddc62749a5538eaf41fbe0c82a77e06ad99383c9e985ffb8a93fd4d7c58db51ad91ba461d69a8fd7ddabe2496757a0c49122c1a79a85cc0553e8214d036dfe0185efa0d05860c612fa0882c82d246e5830a67355dff18a2c36b732f988cfedc562264c6254b40fcabb97b760947568dcd6a17cda6ee8855bddbab93702471aa0cfb1bed2e13118eba1175b73c96253c108d0b2aba05ab8e17e84392e20085f47404d8365527dc3fb8f2bb48a50038e71361ccf973407",
77     "signature_hex": "525500918331f1042eae0c5c2054aa7f92deb26991b5796634f229daf9b49eb2054d87319f3cfa9b466bd075ef6699aea4bd4a195a1c52968b5e2b75e092d846ea1b5cc27905a8e1d5e5de0edfdb21391ebb951864ebd9f0b0ec35b6542871360a317b7ef13ae06af684e38e21b1e19bc7298e5d6fe0013a164bfa25d3e7313d"
78   },
79   // PKCS#1 v1.5 Signature Example 1.15
80   {
81     "message_hex": "fc6b700d22583388ab2f8dafcaf1a05620698020da4bae44dafbd0877b5012506dc3181d5c66bf023f348b41fd9f94795ab96452a4219f2d39d72af359cf195651c7",
82     "signature_hex": "4452a6cc2626b01e95ab306df0d0cc7484fbab3c22e9703283567f66eadc248dbda58fce7dd0c70cce3f150fca4b369dff3b6237e2b16281ab55b53fb13089c85cd265056b3d62a88bfc2135b16791f7fbcab9fd2dc33becb617be419d2c046142a4d47b338314552edd4b6fe9ce1104ecec4a9958d7331e930fc09bf08a6e64"
83   },
84   // PKCS#1 v1.5 Signature Example 1.16
85   {
86     "message_hex": "13ba086d709cfa5fedaa557a89181a6140f2300ed6d7c3febb6cf68abebcbc678f2bca3dc2330295eec45bb1c4075f3ada987eae88b39c51606cb80429e649d98acc8441b1f8897db86c5a4ce0abf28b1b81dca3667697b850696b74a5ebd85dec56c90f8abe513efa857853720be319607921bca947522cd8fac8cace5b827c3e5a129e7ee57f6b84932f14141ac4274e8cbb46e6912b0d3e2177d499d1840cd47d4d7ae0b4cdc4d3",
87     "signature_hex": "1f3b5a87db72a2c97bb3eff2a65a301268eacd89f42abc1098c1f2de77b0832a65d7815feb35070063f221bb3453bd434386c9a3fde18e3ca1687fb649e86c51d658619dde5debb86fe15491ff77ab748373f1be508880d66ea81e870e91cdf1704875c17f0b10103188bc64eef5a3551b414c733670215b1a22702562581ab1"
88   },
89   // PKCS#1 v1.5 Signature Example 1.17
90   {
91     "message_hex": "eb1e5935",
92     "signature_hex": "370cb9839ae6074f84b2acd6e6f6b7921b4b523463757f6446716140c4e6c0e75bec6ad0197ebfa86bf46d094f5f6cd36dca3a5cc73c8bbb70e2c7c9ab5d964ec8e3dfde481b4a1beffd01b4ad15b31ae7aebb9b70344a9411083165fdf9c3754bbb8b94dd34bd4813dfada1f6937de4267d5597ca09a31e83d7f1a79dd19b5e"
93   },
94   // PKCS#1 v1.5 Signature Example 1.18
95   {
96     "message_hex": "6346b153e889c8228209630071c8a57783f368760b8eb908cfc2b276",
97     "signature_hex": "2479c975c5b1ae4c4e940f473a9045b8bf5b0bfca78ec29a38dfbedc8a749b7a2692f7c52d5bc7c831c7232372a00fed3b6b49e760ec99e074ff2eead5134e8305725dfa39212b84bd4b8d80bc8bc17a512823a3beb18fc08e45ed19c26c817707d67fb05832ef1f12a33e90cd93b8a780319e2963ca25a2af7b09ad8f595c21"
98   },
99   // PKCS#1 v1.5 Signature Example 1.19
100   {
101     "message_hex": "64702db9f825a0f3abc361974659f5e9d30c3aa4f56feac69050c72905e77fe0c22f88a378c21fcf45fe8a5c717302093929",
102     "signature_hex": "152f3451c858d69594e6567dfb31291c1ee7860b9d15ebd5a5edd276ac3e6f7a8d1480e42b3381d2be023acf7ebbdb28de3d2163ae44259c6df98c335d045b61dac9dba9dbbb4e6ab4a083cd76b580cbe472206a1a9fd60680ceea1a570a29b0881c775eaef5525d6d2f344c28837d0aca422bbb0f1aba8f6861ae18bd73fe44"
103   },
104   // PKCS#1 v1.5 Signature Example 1.20
105   {
106     "message_hex": "941921de4a1c9c1618d6f3ca3c179f6e29bae6ddf9a6a564f929e3ce82cf3265d7837d5e692be8dcc9e86c",
107     "signature_hex": "7076c287fc6fff2b20537435e5a3107ce4da10716186d01539413e609d27d1da6fd952c61f4bab91c045fa4f8683ecc4f8dde74227f773cff3d96db84718c4944b06affeba94b725f1b07d3928b2490a85c2f1abf492a9177a7cd2ea0c9668756f825bbec900fa8ac3824e114387ef573780ca334882387b94e5aad7a27a28dc"
108   }