acvp_test.inc 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984
  1. /*
  2. * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #define PASS 1
  10. #define FAIL 0
  11. #define ITM(x) x, sizeof(x)
  12. #ifndef OPENSSL_NO_EC
  13. struct ecdsa_keygen_st {
  14. const char *curve_name;
  15. };
  16. struct ecdsa_pub_verify_st {
  17. const char *curve_name;
  18. const unsigned char *pub;
  19. size_t pub_len;
  20. int pass;
  21. };
  22. struct ecdsa_siggen_st {
  23. const char *digest_alg;
  24. const char *curve_name;
  25. const unsigned char *msg;
  26. size_t msg_len;
  27. };
  28. struct ecdsa_sigver_st {
  29. const char *digest_alg;
  30. const char *curve_name;
  31. const unsigned char *msg;
  32. size_t msg_len;
  33. const unsigned char *pub;
  34. size_t pub_len;
  35. const unsigned char *r;
  36. size_t r_len;
  37. const unsigned char *s;
  38. size_t s_len;
  39. int pass;
  40. };
  41. static const struct ecdsa_keygen_st ecdsa_keygen_data[] = {
  42. { "P-224" },
  43. };
  44. static const unsigned char ecdsa_pv_pub0[] = {
  45. POINT_CONVERSION_UNCOMPRESSED,
  46. 0x50, 0x0F, 0x05, 0x86, 0xD3, 0xAA, 0x8A, 0x48,
  47. 0x46, 0x63, 0x0D, 0xD7, 0xC7, 0x5D, 0x5F, 0x1D,
  48. 0xB2, 0xA7, 0x9B, 0xE8, 0xC8, 0xBB, 0xBE, 0x2C,
  49. 0x93, 0x33, 0xDC, 0xCB, 0xBB, 0x2F, 0xB3, 0xCF,
  50. 0x55, 0x88, 0x7A, 0x97, 0xD1, 0x75, 0x73, 0xFE,
  51. 0x92, 0x02, 0x5C, 0xC8, 0xE3, 0xF4, 0x35, 0x4B,
  52. 0x08, 0x7E, 0xF4, 0xD3, 0x7D, 0x86, 0x06, 0x92,
  53. 0xBA, 0x15, 0x3F, 0xCF, 0x0C, 0xC4, 0xBF, 0xBC,
  54. };
  55. static const unsigned char ecdsa_pv_pub1[] = {
  56. POINT_CONVERSION_UNCOMPRESSED,
  57. 0x1F, 0x74, 0xD6, 0x99, 0xEB, 0x1D, 0x4F, 0x26,
  58. 0x25, 0x5E, 0xD4, 0x6A, 0xA6, 0xD5, 0x23, 0xB3,
  59. 0xF5, 0x5D, 0x14, 0x38, 0xE0, 0x4D, 0x23, 0x7F,
  60. 0x9A, 0xE5, 0xB7, 0x1B, 0xF9, 0x7F, 0xAD, 0x7E,
  61. 0x0E, 0x1C, 0x06, 0xF4, 0x20, 0xF3, 0x8E, 0x93,
  62. 0x79, 0x11, 0x15, 0xD6, 0x82, 0x12, 0x14, 0xC2,
  63. 0xF9, 0x30, 0x61, 0x9A, 0xC3, 0x12, 0xE3, 0x88,
  64. 0x4E, 0xB1, 0x1A, 0x4B, 0x54, 0x6D, 0xEA, 0xCF,
  65. };
  66. static const struct ecdsa_pub_verify_st ecdsa_pv_data[] = {
  67. {
  68. "P-256",
  69. ITM(ecdsa_pv_pub0),
  70. PASS
  71. },
  72. {
  73. "P-256",
  74. ITM(ecdsa_pv_pub1),
  75. FAIL
  76. },
  77. };
  78. static const unsigned char ecdsa_siggen_msg0[] = {
  79. 0xB8, 0x65, 0x55, 0x9D, 0x54, 0x5C, 0xD2, 0xC7,
  80. 0xC2, 0xCA, 0x96, 0xDF, 0xF3, 0x9B, 0x26, 0xED,
  81. 0xF8, 0x16, 0x99, 0x05, 0x94, 0xA9, 0x3F, 0x69,
  82. 0x5F, 0xE8, 0x73, 0xC5, 0xFE, 0x78, 0x28, 0x84,
  83. 0xC0, 0xA7, 0xFA, 0x29, 0xBE, 0x37, 0x82, 0xC0,
  84. 0x56, 0x41, 0x49, 0xAF, 0xF3, 0x59, 0xBB, 0x96,
  85. 0xF6, 0x4B, 0x87, 0x45, 0xAB, 0x1F, 0xB2, 0xB3,
  86. 0x8F, 0x14, 0xD4, 0xD7, 0x1C, 0x29, 0x08, 0x0C,
  87. 0x79, 0x8A, 0x38, 0xAE, 0x32, 0x1C, 0x38, 0x80,
  88. 0x5B, 0x45, 0x25, 0x46, 0x5D, 0xCE, 0x7D, 0x34,
  89. 0xC0, 0x90, 0xEF, 0x06, 0x84, 0xA1, 0x0F, 0xF8,
  90. 0x56, 0x2D, 0x46, 0xF7, 0xB7, 0xDE, 0x06, 0x7C,
  91. 0x87, 0xA6, 0x7E, 0x71, 0x8D, 0x7B, 0x27, 0xE5,
  92. 0x51, 0x0C, 0xE7, 0xBA, 0x18, 0x08, 0xE0, 0xD5,
  93. 0x0B, 0x8C, 0xB6, 0x22, 0xA5, 0x8F, 0xB3, 0xF7,
  94. 0xFB, 0xC6, 0x2A, 0x59, 0x02, 0x8A, 0x8C, 0x42,
  95. };
  96. static const struct ecdsa_siggen_st ecdsa_siggen_data[] = {
  97. {
  98. "SHA2-256",
  99. "P-384",
  100. ITM(ecdsa_siggen_msg0),
  101. },
  102. };
  103. static const unsigned char ecdsa_sigver_msg0[] = {
  104. 0x0b, 0x00, 0xc4, 0x3f, 0xb9, 0xcb, 0x92, 0xd3,
  105. 0x56, 0x83, 0xc6, 0x97, 0x23, 0xf8, 0xf1, 0x0b,
  106. 0x0a, 0xa6, 0x60, 0xca, 0x3a, 0xed, 0xba, 0x38,
  107. 0xf7, 0x86, 0xc2, 0x6d, 0xa1, 0xb6, 0x40, 0x2c,
  108. 0x92, 0xfe, 0x44, 0x1a, 0x19, 0x61, 0x5c, 0x02,
  109. 0xfa, 0xd3, 0x79, 0x99, 0xb8, 0x99, 0xe8, 0x70,
  110. 0xaa, 0x26, 0x01, 0xf2, 0xe7, 0xdc, 0x69, 0xce,
  111. 0x9a, 0xd2, 0xaa, 0x02, 0x15, 0xab, 0x0d, 0xcb,
  112. 0x77, 0xaf, 0xe0, 0x81, 0x6d, 0x92, 0x6e, 0x09,
  113. 0xcd, 0x93, 0xd6, 0x22, 0x67, 0xc2, 0xd3, 0x7c,
  114. 0x58, 0x11, 0xc8, 0x77, 0x4e, 0x97, 0x92, 0x87,
  115. 0xcd, 0xe4, 0xc9, 0x2a, 0x77, 0xb2, 0xf0, 0xe7,
  116. 0xd3, 0x5a, 0x20, 0x36, 0x91, 0x75, 0x23, 0xa8,
  117. 0xcb, 0x4a, 0xd0, 0xe5, 0x95, 0x3b, 0x24, 0x2a,
  118. 0x86, 0xa0, 0xaa, 0xbe, 0xac, 0x59, 0xd7, 0xd0,
  119. 0xfb, 0xdf, 0x33, 0xc9, 0x73, 0xaf, 0x8a, 0x06,
  120. };
  121. static const unsigned char ecdsa_sigver_msg1[] = {
  122. 0x45, 0xBB, 0x9D, 0xDC, 0x1D, 0x0A, 0xF2, 0xD7,
  123. 0x56, 0x07, 0x1F, 0x47, 0x2A, 0x17, 0xCE, 0x38,
  124. 0xA8, 0x7E, 0x75, 0xED, 0x4F, 0xE4, 0x17, 0x65,
  125. 0x11, 0x69, 0xDF, 0x04, 0xF0, 0x39, 0x28, 0xD0,
  126. 0x75, 0xD5, 0xF0, 0x1C, 0x32, 0x84, 0x16, 0x74,
  127. 0x7D, 0x61, 0x57, 0xDB, 0x92, 0x24, 0x60, 0xBA,
  128. 0x58, 0x7B, 0x48, 0xB4, 0x44, 0xFB, 0xD7, 0x35,
  129. 0xD7, 0xCF, 0x61, 0x34, 0x7F, 0x70, 0x38, 0xAE,
  130. 0xE2, 0xB2, 0x6C, 0x8A, 0xD1, 0x27, 0xB4, 0xF0,
  131. 0x33, 0xB9, 0xE9, 0x27, 0x1A, 0xEE, 0x34, 0x72,
  132. 0x9D, 0x5E, 0x74, 0x28, 0xE7, 0x0B, 0x82, 0xE1,
  133. 0x60, 0xC2, 0x43, 0xE6, 0x75, 0x4A, 0x2E, 0x66,
  134. 0x88, 0x72, 0xCA, 0xC7, 0x97, 0xFE, 0x19, 0xCD,
  135. 0xA4, 0x30, 0xBF, 0xC7, 0xDC, 0x37, 0xF8, 0x1B,
  136. 0xB6, 0xD7, 0x7E, 0xAD, 0xD6, 0xC1, 0x20, 0xAC,
  137. 0x79, 0x03, 0x89, 0xEA, 0xF4, 0x59, 0x21, 0xF2,
  138. };
  139. static const unsigned char ecdsa_sigver_pub0[] = {
  140. POINT_CONVERSION_UNCOMPRESSED,
  141. 0x2c, 0xdf, 0x6f, 0x23, 0x3d, 0x73, 0x86, 0x25,
  142. 0x1a, 0x29, 0xd6, 0xde, 0x98, 0xcf, 0x85, 0xf7,
  143. 0x6a, 0x55, 0xba, 0xdb, 0x0f, 0x35, 0x94, 0x92,
  144. 0xb3, 0x58, 0xf3, 0x89, 0x7f, 0x6c, 0x22, 0x10,
  145. 0xd9, 0xd3, 0x54, 0xd2, 0x74, 0x9f, 0x64, 0x0d,
  146. 0xd2, 0xf8, 0x3e, 0xfc, 0x7f, 0xb7, 0x16, 0x36,
  147. };
  148. static const unsigned char ecdsa_sigver_pub1[] = {
  149. POINT_CONVERSION_UNCOMPRESSED,
  150. 0x00, 0xD4, 0x79, 0x9F, 0xD9, 0x99, 0xEC, 0x21,
  151. 0x1E, 0xE6, 0x06, 0x58, 0xB7, 0xFB, 0x76, 0xFC,
  152. 0xF5, 0x9A, 0xE1, 0x1E, 0x5A, 0x87, 0xD7, 0x0E,
  153. 0x21, 0x7B, 0xDE, 0x21, 0x52, 0xE6, 0xE4, 0x09,
  154. 0x2C, 0xB8, 0x5D, 0x99, 0xE2, 0x6A, 0xB1, 0xE5,
  155. 0x79, 0x11, 0x49, 0xBD, 0x3D, 0xC7, 0x1C, 0x48,
  156. 0xF5, 0x83, 0xFC, 0x9E, 0xF3, 0xAB, 0x2D, 0x30,
  157. 0x64, 0xEC, 0x22, 0xCB, 0xEB, 0x95, 0xBF, 0xF2,
  158. 0x2D, 0xCE,
  159. 0x01, 0xB9, 0xFE, 0xBD, 0x4C, 0x4B, 0xDA, 0x1F,
  160. 0x30, 0xC3, 0x5C, 0x0F, 0x5D, 0x3E, 0x36, 0x51,
  161. 0xF2, 0xC0, 0xF7, 0xFC, 0x79, 0x25, 0x98, 0xF2,
  162. 0x4B, 0x2B, 0x61, 0xFC, 0xD9, 0xC4, 0x5C, 0xC0,
  163. 0x13, 0xA2, 0x4F, 0x2E, 0x34, 0xD4, 0x15, 0xC4,
  164. 0x25, 0x13, 0xA9, 0x30, 0x35, 0x56, 0xB7, 0xCD,
  165. 0xD0, 0xC4, 0x65, 0x5D, 0xFB, 0xB2, 0xE4, 0xBF,
  166. 0x22, 0x67, 0xEF, 0xA1, 0x2E, 0xA2, 0x1B, 0x33,
  167. 0xE4, 0x3D,
  168. };
  169. static const unsigned char ecdsa_sigver_r0[] = {
  170. 0x6b, 0x35, 0x62, 0x67, 0xa3, 0xbd, 0x76, 0xc8,
  171. 0xa3, 0xdc, 0x93, 0x18, 0x82, 0x6f, 0xd2, 0x43,
  172. 0x52, 0x18, 0x93, 0x21, 0x8e, 0xce, 0x12, 0x65,
  173. };
  174. static const unsigned char ecdsa_sigver_r1[] = {
  175. 0x01, 0xBF, 0xA6, 0x46, 0x6D, 0x4E, 0x1C, 0x42,
  176. 0x18, 0x7D, 0x46, 0xC6, 0x5F, 0xA5, 0x05, 0xEA,
  177. 0x1A, 0xEF, 0xDB, 0x46, 0xD1, 0x79, 0x3F, 0x2B,
  178. 0xE2, 0x70, 0x0F, 0x14, 0x26, 0x30, 0x7F, 0x2D,
  179. 0x1A, 0x41, 0xFD, 0x11, 0xC0, 0xBB, 0xD0, 0xD5,
  180. 0x09, 0xAA, 0xE0, 0x1A, 0xFE, 0x59, 0x23, 0x7D,
  181. 0x1B, 0x5C, 0xB9, 0x51, 0xCD, 0x3A, 0xA1, 0x32,
  182. 0xC6, 0x92, 0xB0, 0x7D, 0x91, 0xC6, 0x30, 0xC0,
  183. 0xA4, 0x2A,
  184. };
  185. static const unsigned char ecdsa_sigver_s0[] = {
  186. 0x7b, 0x92, 0x4a, 0x13, 0x8d, 0x74, 0x87, 0xb2,
  187. 0xd4, 0xc7, 0x21, 0x73, 0x2c, 0x8a, 0x09, 0x25,
  188. 0xac, 0x19, 0xcf, 0x9c, 0xbc, 0xd7, 0x7b, 0xf8,
  189. };
  190. static const unsigned char ecdsa_sigver_s1[] = {
  191. 0x00, 0x8D, 0x56, 0xBA, 0x60, 0x38, 0x23, 0x47,
  192. 0xB8, 0x32, 0x73, 0x29, 0x40, 0x84, 0xF0, 0x2C,
  193. 0x90, 0xB2, 0x1D, 0x56, 0xFF, 0x38, 0x68, 0xAA,
  194. 0x42, 0xBA, 0x48, 0xA1, 0x52, 0x8C, 0xB4, 0xD6,
  195. 0x15, 0xB7, 0x88, 0xB3, 0x71, 0xC6, 0x69, 0x60,
  196. 0x6C, 0xEB, 0x4B, 0xF6, 0x19, 0x6A, 0x95, 0x8F,
  197. 0x01, 0x09, 0xC6, 0x13, 0xE6, 0x17, 0x38, 0xC8,
  198. 0x10, 0x49, 0x4F, 0x87, 0x43, 0x63, 0x62, 0x98,
  199. 0xB1, 0xAC,
  200. };
  201. static const struct ecdsa_sigver_st ecdsa_sigver_data[] = {
  202. {
  203. "SHA-1",
  204. "P-192",
  205. ITM(ecdsa_sigver_msg0),
  206. ITM(ecdsa_sigver_pub0),
  207. ITM(ecdsa_sigver_r0),
  208. ITM(ecdsa_sigver_s0),
  209. PASS,
  210. },
  211. {
  212. "SHA2-512",
  213. "P-521",
  214. ITM(ecdsa_sigver_msg1),
  215. ITM(ecdsa_sigver_pub1),
  216. ITM(ecdsa_sigver_r1),
  217. ITM(ecdsa_sigver_s1),
  218. FAIL,
  219. },
  220. };
  221. #endif /* OPENSSL_NO_EC */
  222. #ifndef OPENSSL_NO_DSA
  223. struct dsa_paramgen_st {
  224. size_t L;
  225. size_t N;
  226. };
  227. struct dsa_pqver_st {
  228. const unsigned char *p;
  229. size_t p_len;
  230. const unsigned char *q;
  231. size_t q_len;
  232. const unsigned char *seed;
  233. size_t seed_len;
  234. int counter;
  235. int pass;
  236. };
  237. struct dsa_siggen_st {
  238. const char *digest_alg;
  239. size_t L;
  240. size_t N;
  241. const unsigned char *msg;
  242. size_t msg_len;
  243. };
  244. struct dsa_sigver_st {
  245. const char *digest_alg;
  246. const unsigned char *p;
  247. size_t p_len;
  248. const unsigned char *q;
  249. size_t q_len;
  250. const unsigned char *g;
  251. size_t g_len;
  252. const unsigned char *pub;
  253. size_t pub_len;
  254. const unsigned char *msg;
  255. size_t msg_len;
  256. const unsigned char *r;
  257. size_t r_len;
  258. const unsigned char *s;
  259. size_t s_len;
  260. int pass;
  261. };
  262. static const struct dsa_paramgen_st dsa_keygen_data[] = {
  263. { 2048, 224 },
  264. };
  265. static const struct dsa_paramgen_st dsa_paramgen_data[] = {
  266. { 2048, 256 },
  267. };
  268. /* dsa_pqver */
  269. static const unsigned char dsa_pqver_p0[] = {
  270. 0xEF, 0xC7, 0x95, 0xEB, 0x1E, 0x1C, 0x8F, 0x5E,
  271. 0x4A, 0x85, 0xCD, 0x20, 0x66, 0xC7, 0xB9, 0x6C,
  272. 0x4E, 0xC4, 0xE7, 0x3B, 0x7B, 0x8E, 0x0E, 0x8C,
  273. 0x00, 0xF5, 0x2E, 0x68, 0xF5, 0xC2, 0x89, 0x47,
  274. 0xA5, 0x7B, 0xA6, 0xA3, 0x30, 0xBC, 0xFA, 0x25,
  275. 0x29, 0xBD, 0xE2, 0x4D, 0x05, 0x0B, 0x6D, 0x2D,
  276. 0x49, 0x50, 0x53, 0xEF, 0x8C, 0xBE, 0xC3, 0xEC,
  277. 0x92, 0xC1, 0x45, 0xE3, 0x95, 0x39, 0x72, 0x58,
  278. 0xFD, 0x93, 0x23, 0x06, 0x37, 0xD6, 0x56, 0x1F,
  279. 0x75, 0x92, 0xAD, 0x15, 0xA9, 0x88, 0x25, 0x3F,
  280. 0xD6, 0x47, 0xB5, 0xB1, 0x32, 0x01, 0x2D, 0x70,
  281. 0x55, 0xB9, 0x5D, 0xED, 0x1B, 0x40, 0x39, 0x78,
  282. 0x74, 0xA6, 0xDF, 0x4B, 0xE4, 0x86, 0x8B, 0x56,
  283. 0x46, 0x1E, 0xDB, 0x04, 0xD2, 0xD2, 0x50, 0xE9,
  284. 0x5D, 0x88, 0xA8, 0x84, 0x55, 0xE3, 0xF3, 0xB7,
  285. 0x07, 0x54, 0x9E, 0x98, 0x03, 0x9F, 0x31, 0x86,
  286. 0xEB, 0x0D, 0x26, 0x97, 0x30, 0x31, 0x34, 0x64,
  287. 0x35, 0x56, 0x40, 0x35, 0xEA, 0xE5, 0x00, 0x90,
  288. 0xBD, 0x20, 0x93, 0xFC, 0xAD, 0x70, 0x9A, 0xF5,
  289. 0xB8, 0xA4, 0xAD, 0xEC, 0xFE, 0x64, 0xF4, 0x2C,
  290. 0x11, 0x25, 0x68, 0x27, 0x0E, 0x5C, 0x81, 0x57,
  291. 0x64, 0x9A, 0x50, 0x86, 0xA3, 0x69, 0x61, 0x1E,
  292. 0x0D, 0x62, 0xE9, 0x4D, 0x44, 0x1E, 0x1E, 0xE1,
  293. 0x6D, 0x8F, 0x10, 0x67, 0x82, 0xB6, 0x6A, 0xD0,
  294. 0x08, 0x59, 0xF3, 0xBA, 0xE8, 0x29, 0xE0, 0x60,
  295. 0x1F, 0x3E, 0xBA, 0xAB, 0x6E, 0xB6, 0x5B, 0xAF,
  296. 0xCC, 0x76, 0x5D, 0x70, 0x7F, 0x3A, 0xAA, 0x7E,
  297. 0x27, 0x23, 0x6F, 0x8E, 0xF8, 0x06, 0xC1, 0x3E,
  298. 0xAE, 0xBE, 0x22, 0x71, 0x93, 0xEC, 0x9A, 0x33,
  299. 0x3C, 0xA4, 0x77, 0xD4, 0x76, 0x79, 0x10, 0x5A,
  300. 0xF4, 0x07, 0x52, 0x66, 0x9D, 0xC5, 0xFD, 0xDA,
  301. 0xA1, 0xE7, 0xA2, 0x45, 0x27, 0x08, 0x54, 0xB9,
  302. 0x3B, 0xEC, 0x07, 0xFB, 0xE0, 0xF4, 0x4B, 0x7C,
  303. 0xB1, 0x04, 0x2B, 0x0E, 0x65, 0x3A, 0xF7, 0x65,
  304. 0x57, 0x65, 0xCF, 0x36, 0x28, 0x2A, 0x1C, 0x57,
  305. 0x10, 0x28, 0x02, 0x26, 0xF7, 0x45, 0xAA, 0x1B,
  306. 0x2E, 0xE3, 0x25, 0xEA, 0x28, 0xA1, 0x84, 0x1E,
  307. 0xA1, 0xA3, 0xAB, 0x52, 0x25, 0xD4, 0x64, 0xB2,
  308. 0xA8, 0xA5, 0xFD, 0x2F, 0x48, 0x90, 0x28, 0x8F,
  309. 0x8B, 0x10, 0x7F, 0x6F, 0x80, 0xA9, 0x4B, 0xB3,
  310. 0xC0, 0x5B, 0x27, 0xE9, 0x90, 0x90, 0x53, 0xA8,
  311. 0x30, 0x88, 0xD4, 0x9B, 0x09, 0x62, 0xCD, 0x99,
  312. 0x61, 0x63, 0x14, 0xDF, 0xC3, 0x5A, 0x60, 0xBE,
  313. 0xA3, 0x40, 0xAB, 0x29, 0x3E, 0xB2, 0x02, 0x19,
  314. 0x9D, 0x97, 0x75, 0x34, 0x0D, 0x71, 0x3B, 0xEC,
  315. 0xF1, 0x13, 0x23, 0xE6, 0xCA, 0x35, 0x84, 0xFF,
  316. 0x27, 0x4A, 0xE0, 0x11, 0x59, 0xEB, 0x1D, 0x8C,
  317. 0xFF, 0xF3, 0x91, 0x90, 0x3C, 0xE9, 0x43, 0x31,
  318. };
  319. static const unsigned char dsa_pqver_p1[] = {
  320. 0x83, 0xA6, 0x8F, 0xE5, 0xFE, 0xF0, 0x9D, 0x9E,
  321. 0x8A, 0x80, 0x9C, 0x47, 0xEF, 0xBE, 0x1A, 0xD0,
  322. 0x7F, 0xEA, 0x6D, 0x08, 0x59, 0x2D, 0x04, 0xB6,
  323. 0xAC, 0x2A, 0x54, 0x47, 0x42, 0xB2, 0x5F, 0x28,
  324. 0xF6, 0x30, 0x36, 0xE3, 0xDA, 0x4E, 0xDC, 0xC1,
  325. 0x6E, 0x61, 0xCE, 0x45, 0x1C, 0x73, 0x87, 0x3E,
  326. 0xB7, 0x94, 0xDB, 0x68, 0xEE, 0xFD, 0x8D, 0x93,
  327. 0x5E, 0x5D, 0xAB, 0x77, 0xA2, 0xF0, 0xD6, 0x60,
  328. 0xCD, 0x9D, 0x13, 0xE0, 0xA6, 0xE7, 0xEC, 0x45,
  329. 0xBA, 0xD8, 0xB0, 0x3D, 0x4F, 0x75, 0x30, 0xB7,
  330. 0x89, 0x96, 0x2B, 0x48, 0xFC, 0x73, 0xB8, 0x5C,
  331. 0x59, 0xDC, 0x41, 0xEF, 0xCE, 0xC6, 0x7F, 0x66,
  332. 0x4F, 0xB6, 0x1F, 0x9C, 0x91, 0xB4, 0xEE, 0xAA,
  333. 0x2C, 0x4A, 0x7F, 0x1F, 0xBF, 0xE2, 0x9A, 0xF2,
  334. 0x9F, 0x52, 0x83, 0x30, 0x97, 0x86, 0x7F, 0xA2,
  335. 0x85, 0x20, 0x75, 0x75, 0xAD, 0x01, 0xE2, 0x40,
  336. 0x3A, 0x82, 0xD8, 0x52, 0x91, 0x15, 0x67, 0x1B,
  337. 0x00, 0x78, 0xFD, 0x3E, 0x61, 0x8A, 0xA8, 0x1D,
  338. 0x1A, 0x07, 0x8E, 0x87, 0x48, 0x64, 0x1E, 0x5B,
  339. 0x05, 0x34, 0x7E, 0x5D, 0xD6, 0x11, 0xC4, 0xB7,
  340. 0x0E, 0xF3, 0x91, 0xC7, 0x2B, 0xAD, 0x22, 0x96,
  341. 0xA3, 0xF7, 0x4E, 0xEB, 0xE4, 0x9F, 0x67, 0x91,
  342. 0x9D, 0x65, 0x45, 0x8F, 0x92, 0x2F, 0x8B, 0x46,
  343. 0xCC, 0x4B, 0xB9, 0xC5, 0xD0, 0x00, 0xFF, 0xBB,
  344. 0x37, 0xD6, 0x20, 0x36, 0x7D, 0x4A, 0xC3, 0x75,
  345. 0xAC, 0x58, 0xE5, 0x24, 0x54, 0x47, 0x80, 0x2C,
  346. 0x83, 0xBD, 0xC8, 0xA7, 0x87, 0x20, 0x3D, 0xA8,
  347. 0x78, 0xE2, 0xC5, 0x4E, 0xE8, 0x4E, 0x3C, 0xFA,
  348. 0x75, 0xA0, 0x8D, 0x35, 0x8E, 0xF2, 0x61, 0x19,
  349. 0x84, 0x9C, 0x71, 0x95, 0x5B, 0x09, 0xE1, 0xB6,
  350. 0xC6, 0x6A, 0x7C, 0x34, 0x39, 0x67, 0x14, 0xAB,
  351. 0xA7, 0x6B, 0x45, 0x01, 0xF0, 0x0F, 0x52, 0xB5,
  352. 0x23, 0xD9, 0x67, 0x57, 0x91, 0x9F, 0xC2, 0xA9,
  353. 0xB6, 0x7C, 0x15, 0x59, 0x3E, 0x22, 0x89, 0xD6,
  354. 0x0B, 0x83, 0xB4, 0x29, 0xEF, 0x0B, 0x66, 0x30,
  355. 0x2D, 0xE7, 0xC5, 0x04, 0x1F, 0x28, 0x7D, 0x9F,
  356. 0xC9, 0x87, 0x05, 0xC6, 0x1B, 0x18, 0x1F, 0x3B,
  357. 0x90, 0x00, 0x31, 0x5B, 0xDC, 0x19, 0x7D, 0x71,
  358. 0xE4, 0xA4, 0x21, 0xB5, 0x37, 0xE7, 0x9B, 0xA4,
  359. 0xBC, 0x04, 0xF8, 0x0A, 0x95, 0x3F, 0xDB, 0x30,
  360. 0xA5, 0xC9, 0xC2, 0xD7, 0x19, 0x9D, 0x57, 0x77,
  361. 0x44, 0xB7, 0x47, 0xBD, 0xA1, 0x01, 0xEB, 0x51,
  362. 0xA4, 0xB2, 0x8B, 0x1A, 0x51, 0xA4, 0xCC, 0x07,
  363. 0x57, 0x19, 0xFB, 0xFC, 0xAA, 0x42, 0xCC, 0x2A,
  364. 0xCE, 0xF8, 0xFD, 0xF8, 0x92, 0xC4, 0xDC, 0x7B,
  365. 0x0B, 0x92, 0x9A, 0xD7, 0xC5, 0xBC, 0x6D, 0x74,
  366. 0x13, 0x0E, 0xD2, 0x8F, 0x86, 0xEB, 0x8D, 0xD7,
  367. 0xC6, 0xAC, 0x43, 0xD8, 0x00, 0x80, 0x53, 0x57,
  368. };
  369. static const unsigned char dsa_pqver_q0[] = {
  370. 0xCB, 0x74, 0xE6, 0x57, 0x37, 0x0F, 0x7A, 0x61,
  371. 0x0B, 0x09, 0xCE, 0x91, 0x78, 0x06, 0x3C, 0x7F,
  372. 0x20, 0xF5, 0xD1, 0x1E, 0x1D, 0xC2, 0x43, 0xBA,
  373. 0x89, 0xC8, 0x4A, 0x49, 0x83, 0x38, 0xE1, 0x2D,
  374. };
  375. static const unsigned char dsa_pqver_q1[] = {
  376. 0x85, 0x2B, 0x77, 0x9B, 0x1B, 0x70, 0x6F, 0x8C,
  377. 0x10, 0xF3, 0x2F, 0xA9, 0xC2, 0xEE, 0xF6, 0x74,
  378. 0x78, 0x5F, 0xD5, 0x5E, 0x2C, 0x34, 0xAF, 0xD1,
  379. 0x25, 0x63, 0x96, 0x6D, 0x6D, 0x84, 0x68, 0x3F,
  380. };
  381. static const unsigned char dsa_pqver_seed0[] = {
  382. 0x33, 0xDC, 0x43, 0xAF, 0xC4, 0x51, 0x5C, 0x3B,
  383. 0x8B, 0x8A, 0x0D, 0x5D, 0xA2, 0x84, 0xDE, 0x6D,
  384. 0xCC, 0x6C, 0xFD, 0x42, 0x37, 0x98, 0xFB, 0x66,
  385. 0xAB, 0xD3, 0x73, 0x96, 0x1F, 0xC5, 0xD1, 0x46,
  386. };
  387. static const unsigned char dsa_pqver_seed1[] = {
  388. 0xEE, 0xA4, 0x02, 0x70, 0x0B, 0x89, 0xB7, 0x96,
  389. 0x52, 0x5C, 0x00, 0xC4, 0x8E, 0x14, 0x45, 0x0F,
  390. 0x6A, 0x18, 0x00, 0xF7, 0x24, 0x52, 0x41, 0x0E,
  391. 0x33, 0x41, 0xD2, 0x91, 0xC3, 0x16, 0x7D, 0x5D,
  392. };
  393. static const struct dsa_pqver_st dsa_pqver_data[] = {
  394. {
  395. ITM(dsa_pqver_p0),
  396. ITM(dsa_pqver_q0),
  397. ITM(dsa_pqver_seed0),
  398. 1956,
  399. PASS
  400. },
  401. {
  402. ITM(dsa_pqver_p1),
  403. ITM(dsa_pqver_q1),
  404. ITM(dsa_pqver_seed1),
  405. 685,
  406. FAIL
  407. },
  408. };
  409. /* dsa_siggen */
  410. static const unsigned char dsa_siggen_msg0[]= {
  411. 0x85, 0x01, 0x2F, 0x61, 0x1C, 0x36, 0xA8, 0xE1,
  412. 0x54, 0x55, 0x13, 0xFA, 0x00, 0x58, 0x1E, 0xD4,
  413. 0xF2, 0x4C, 0x54, 0x67, 0xB3, 0xEA, 0x48, 0x2C,
  414. 0xD1, 0x27, 0xBE, 0x5F, 0x26, 0x35, 0xD4, 0x00,
  415. 0xDD, 0x6C, 0xD8, 0xE8, 0x3C, 0x6D, 0x2D, 0x50,
  416. 0x01, 0x53, 0xC7, 0xB5, 0xA3, 0x8E, 0x9A, 0x85,
  417. 0xA6, 0x53, 0x8C, 0x46, 0x55, 0x02, 0xA1, 0x5E,
  418. 0xEA, 0x6C, 0xCF, 0x4A, 0x86, 0xA9, 0x34, 0x1B,
  419. 0x0B, 0xB6, 0x88, 0x9A, 0xDE, 0xC4, 0x27, 0x7F,
  420. 0x93, 0xAA, 0x69, 0x54, 0x48, 0x33, 0x98, 0xA0,
  421. 0x71, 0x45, 0x09, 0x5A, 0x51, 0xDF, 0xB6, 0x66,
  422. 0x06, 0xB7, 0xAD, 0x64, 0xED, 0xC1, 0xFA, 0x6B,
  423. 0xA8, 0x0F, 0xE8, 0x3C, 0x2E, 0x0C, 0xCB, 0xB0,
  424. 0xAE, 0xDE, 0x25, 0x0C, 0x68, 0xA8, 0x15, 0x97,
  425. 0xD0, 0xBC, 0x0B, 0x81, 0x15, 0xDC, 0x2B, 0xF3,
  426. 0xF2, 0xB7, 0xA7, 0xA9, 0x74, 0xD6, 0x5D, 0xB8,
  427. 0xB7, 0xD1, 0xFC, 0x5D, 0xCA, 0x69, 0x5D, 0x7D,
  428. 0xC6, 0x1E, 0x37, 0x7D, 0xD3, 0xA9, 0x1E, 0xAE,
  429. 0x60, 0x22, 0x3A, 0x4B, 0x7A, 0xB1, 0x3D, 0xA4,
  430. 0x6D, 0xB3, 0xA5, 0x8C, 0x89, 0x91, 0xCF, 0xE6,
  431. 0x5B, 0xF9, 0xB6, 0x87, 0x56, 0x75, 0xB9, 0x0B,
  432. 0x08, 0x85, 0x32, 0x52, 0x81, 0x99, 0xA7, 0x98,
  433. 0x44, 0x30, 0x3B, 0x44, 0xBC, 0xB8, 0xB2, 0x6D,
  434. 0x59, 0x52, 0xD3, 0x84, 0x74, 0x65, 0x02, 0xF9,
  435. 0x71, 0xB9, 0x16, 0x7A, 0x42, 0x62, 0xDE, 0x9B,
  436. 0x66, 0xF6, 0x04, 0x2C, 0x1F, 0x96, 0xF7, 0x41,
  437. 0x38, 0x1A, 0xF1, 0x8C, 0x8A, 0x40, 0x9F, 0x72,
  438. 0x73, 0xF9, 0xE9, 0x35, 0x11, 0x1F, 0x02, 0x0C,
  439. 0xB1, 0x51, 0xE8, 0x78, 0xDB, 0xE0, 0xB2, 0x35,
  440. 0xBD, 0xC5, 0x84, 0x5B, 0x2B, 0x25, 0x66, 0x42,
  441. 0x87, 0xE5, 0xA4, 0x77, 0x71, 0xB4, 0x4A, 0x59,
  442. 0x31, 0xF1, 0x5A, 0xF5, 0x98, 0x9C, 0x61, 0xEA,
  443. 0x52, 0x2F, 0x51, 0x85, 0xD9, 0x7F, 0x26, 0xDD,
  444. 0x91, 0x63, 0x41, 0xD5, 0x99, 0xD1, 0x64, 0xCE,
  445. 0xEE, 0x82, 0xD1, 0x73, 0x0A, 0x54, 0x3B, 0x03,
  446. 0xD7, 0xC1, 0xF7, 0x01, 0xBD, 0x44, 0x99, 0xFE,
  447. 0x9B, 0x1E, 0x2C, 0x8F, 0xF4, 0x55, 0xC5, 0x59,
  448. 0x58, 0xAF, 0xCB, 0xAD, 0xB8, 0x22, 0x1A, 0x29,
  449. 0xF3, 0x18, 0x39, 0x31, 0x9B, 0xFC, 0x08, 0x7E,
  450. 0xBE, 0x45, 0xDA, 0x9E, 0xD8, 0x7F, 0x8C, 0x5D,
  451. 0x10, 0xF9, 0xF8, 0xB4, 0xFA, 0x58, 0xE6, 0x28,
  452. 0xB4, 0x6C, 0x70, 0x12, 0xD2, 0xFA, 0x49, 0xB2,
  453. 0x5F, 0xD0, 0x81, 0x4A, 0xA1, 0xAA, 0xF8, 0x93,
  454. 0xD2, 0x26, 0xE7, 0xDA, 0x7D, 0x79, 0xC5, 0xC8,
  455. 0xC2, 0x9E, 0xA7, 0x01, 0xD5, 0x7A, 0xF9, 0x75,
  456. 0x62, 0xDB, 0xDC, 0x93, 0x90, 0xDA, 0xA5, 0xA6,
  457. 0x20, 0x58, 0x17, 0x9E, 0x47, 0x4E, 0xFB, 0xB8,
  458. 0xFB, 0xCD, 0x2E, 0xF4, 0xCD, 0x49, 0x03, 0x90,
  459. };
  460. static struct dsa_siggen_st dsa_siggen_data[] = {
  461. {
  462. "SHA2-384",
  463. 3072,
  464. 256,
  465. ITM(dsa_siggen_msg0),
  466. },
  467. };
  468. /* dsa_sigver */
  469. static const unsigned char dsa_sigver_p0[] = {
  470. 0xD2, 0x90, 0x2E, 0x38, 0xA5, 0x32, 0xBB, 0x63,
  471. 0xE0, 0xC3, 0x20, 0xD9, 0x26, 0x06, 0x21, 0x06,
  472. 0x85, 0x3A, 0x4C, 0xE3, 0x13, 0x83, 0xCA, 0x43,
  473. 0x8C, 0x9C, 0x76, 0xC0, 0x65, 0x60, 0x27, 0x7E,
  474. 0x7C, 0xA0, 0x83, 0x9F, 0x65, 0x91, 0xF9, 0x16,
  475. 0x5F, 0xE8, 0x60, 0x0C, 0xC6, 0x91, 0x20, 0x35,
  476. 0xE7, 0xF1, 0x83, 0xE6, 0xF8, 0x8C, 0xBB, 0x4C,
  477. 0xFF, 0xF5, 0x4D, 0x09, 0x8E, 0x83, 0x72, 0xCB,
  478. 0x22, 0x5F, 0xD0, 0x85, 0xA9, 0x60, 0x3C, 0x4A,
  479. 0xA6, 0xDD, 0x73, 0x1F, 0xCF, 0xD0, 0xD7, 0x42,
  480. 0xB8, 0x72, 0x61, 0xDB, 0x91, 0xE3, 0xBB, 0x5C,
  481. 0x21, 0x41, 0xFD, 0x97, 0xD0, 0x81, 0x72, 0x53,
  482. 0x77, 0xE0, 0x15, 0x9E, 0xC0, 0xD0, 0x6A, 0xB4,
  483. 0x7F, 0xF8, 0x63, 0x39, 0x1A, 0x25, 0x63, 0x84,
  484. 0x4D, 0xBA, 0x2C, 0x29, 0x94, 0x28, 0xCE, 0x5B,
  485. 0x9A, 0xC3, 0x14, 0xAD, 0x9D, 0x82, 0x1D, 0x8F,
  486. 0xF3, 0xE9, 0x60, 0x65, 0x28, 0x0B, 0x0E, 0x48,
  487. 0x6B, 0xCC, 0x05, 0x9D, 0x3B, 0x1F, 0x1D, 0x0A,
  488. 0xA7, 0xF8, 0x22, 0xB0, 0xE1, 0x52, 0xB0, 0x25,
  489. 0x8F, 0xEA, 0x25, 0x28, 0xC9, 0x6F, 0x44, 0xCD,
  490. 0xA4, 0x16, 0x13, 0xE8, 0xD0, 0xDB, 0x43, 0x6E,
  491. 0xCE, 0xEC, 0x0B, 0xA8, 0x3E, 0x53, 0x10, 0xA2,
  492. 0x52, 0x0E, 0xBB, 0x63, 0x63, 0x84, 0x2C, 0x12,
  493. 0x93, 0x29, 0x98, 0xAF, 0x38, 0x8F, 0x0B, 0x86,
  494. 0x16, 0x99, 0x0E, 0x39, 0xA8, 0x4A, 0x0B, 0xCD,
  495. 0xAA, 0x66, 0x8F, 0x4C, 0x15, 0xB7, 0xA5, 0xBB,
  496. 0x22, 0x77, 0x8D, 0xE8, 0x05, 0x35, 0x2D, 0xAA,
  497. 0x8D, 0x83, 0xDE, 0xBC, 0x15, 0x3D, 0xC2, 0x95,
  498. 0x0E, 0x47, 0x85, 0x41, 0xAD, 0xE3, 0xB1, 0x70,
  499. 0x76, 0x1B, 0x62, 0x9E, 0x96, 0x8B, 0x18, 0xD7,
  500. 0xE3, 0xB5, 0xF8, 0x6E, 0x85, 0x67, 0x61, 0x54,
  501. 0x7C, 0x85, 0x08, 0x91, 0xF4, 0x46, 0x3F, 0x01,
  502. 0x99, 0x48, 0x18, 0x3C, 0x0D, 0xC7, 0x2D, 0xEC,
  503. 0xA4, 0x11, 0x1D, 0x4F, 0x7F, 0xBF, 0x3A, 0xE8,
  504. 0x9C, 0x1C, 0xAE, 0x9E, 0x30, 0x32, 0x1F, 0x81,
  505. 0xEF, 0x14, 0xFE, 0x5C, 0xC2, 0x5C, 0xD0, 0x6A,
  506. 0x7C, 0x18, 0x88, 0x9F, 0xC4, 0x97, 0x7D, 0x4B,
  507. 0x3B, 0x01, 0xEB, 0x59, 0x58, 0x1C, 0x00, 0x6B,
  508. 0x3E, 0xD6, 0x80, 0x80, 0x86, 0x06, 0x39, 0x88,
  509. 0x0D, 0x23, 0x1E, 0xD6, 0x5E, 0x1F, 0x92, 0x3B,
  510. 0xEC, 0x50, 0x0B, 0xA0, 0x83, 0x4F, 0x10, 0xDE,
  511. 0xAF, 0x7B, 0x19, 0xBC, 0xBD, 0x72, 0xE6, 0x42,
  512. 0xFE, 0xD7, 0xEF, 0x22, 0xD3, 0x83, 0x6B, 0x30,
  513. 0xA3, 0x95, 0x0D, 0x3E, 0x61, 0x9E, 0xBC, 0x0E,
  514. 0x14, 0x7E, 0x61, 0x05, 0x3D, 0xBA, 0x4E, 0xEF,
  515. 0x31, 0x75, 0x5D, 0x10, 0x1E, 0xBA, 0xBD, 0xBA,
  516. 0x89, 0x4D, 0x3A, 0x5B, 0x03, 0xB1, 0xAE, 0x27,
  517. 0x47, 0x2D, 0x03, 0xB1, 0x8A, 0x74, 0x1B, 0xF3,
  518. };
  519. static const unsigned char dsa_sigver_q0[] = {
  520. 0xAC, 0x71, 0x8D, 0x81, 0x05, 0x2F, 0xAB, 0x72,
  521. 0xB9, 0x96, 0x94, 0x98, 0xB5, 0x19, 0x2B, 0xE2,
  522. 0x78, 0x06, 0xAA, 0x32, 0xFC, 0xB9, 0xD2, 0xFD,
  523. 0x26, 0xC4, 0x50, 0x6F, 0x81, 0xD8, 0x04, 0xAB,
  524. };
  525. static const unsigned char dsa_sigver_g0[] = {
  526. 0x3D, 0x0B, 0x46, 0x39, 0x13, 0xFF, 0x67, 0xA8,
  527. 0x8C, 0xE8, 0x8A, 0x46, 0x46, 0x9A, 0xE6, 0x70,
  528. 0xA1, 0xF5, 0x48, 0xF5, 0x84, 0xF8, 0x93, 0x57,
  529. 0x9A, 0x4F, 0x2C, 0xD4, 0x26, 0x49, 0x1C, 0x83,
  530. 0x64, 0x14, 0x0B, 0x5B, 0xEF, 0x6F, 0x6F, 0x91,
  531. 0x14, 0xC5, 0x4D, 0xE8, 0x86, 0x47, 0x5C, 0xFC,
  532. 0xAE, 0xBF, 0xD8, 0x32, 0xE2, 0x96, 0xB9, 0x61,
  533. 0x70, 0x3F, 0x24, 0x29, 0xFA, 0x41, 0x5D, 0x8E,
  534. 0xD0, 0xB0, 0xF1, 0x26, 0xD5, 0x7C, 0xE6, 0x17,
  535. 0x48, 0xE5, 0x04, 0x0E, 0x58, 0x14, 0xEE, 0xBA,
  536. 0x64, 0xE9, 0xF1, 0x6A, 0x7C, 0x17, 0xAB, 0x7B,
  537. 0x28, 0xCF, 0x69, 0x7D, 0xDC, 0x54, 0xCA, 0xF2,
  538. 0x4C, 0x22, 0x17, 0xDD, 0xC3, 0x1A, 0x02, 0xE2,
  539. 0x8E, 0xE6, 0xA4, 0xFB, 0x84, 0x27, 0x2B, 0xE8,
  540. 0x14, 0xF3, 0x3D, 0xAC, 0x59, 0x0C, 0xAB, 0x69,
  541. 0x0E, 0x73, 0xDF, 0x82, 0xC1, 0xDE, 0xD7, 0xD9,
  542. 0xA7, 0xCA, 0x8F, 0x4B, 0xCE, 0x8A, 0x05, 0xBD,
  543. 0x07, 0xC8, 0x29, 0xBB, 0x46, 0x29, 0x2A, 0x4F,
  544. 0xA7, 0x12, 0x19, 0x91, 0x01, 0xA0, 0xAE, 0x16,
  545. 0xEF, 0xC1, 0xC5, 0x4B, 0x03, 0xF0, 0x53, 0xDC,
  546. 0xFC, 0x1C, 0xC4, 0x73, 0xB7, 0xBF, 0x53, 0xEB,
  547. 0x19, 0x63, 0xCA, 0x30, 0x53, 0x54, 0x12, 0x90,
  548. 0x0E, 0x43, 0xC7, 0x66, 0xFF, 0x29, 0xFC, 0xA4,
  549. 0xE8, 0xF6, 0x4B, 0x76, 0x3B, 0xA2, 0x65, 0x6B,
  550. 0x9E, 0xFA, 0xBA, 0x5B, 0x54, 0x94, 0x34, 0xF6,
  551. 0xD1, 0x20, 0x2A, 0xF7, 0x39, 0x72, 0xA3, 0xDB,
  552. 0xD1, 0x8F, 0xA6, 0x4D, 0x1B, 0xB1, 0x2D, 0xC5,
  553. 0x7F, 0xC5, 0x2C, 0x7E, 0x6D, 0xD9, 0xC8, 0xC2,
  554. 0x19, 0xC0, 0xC4, 0xC2, 0x77, 0xD9, 0x4C, 0x63,
  555. 0x77, 0x59, 0x0C, 0x5B, 0xFE, 0x69, 0xEF, 0xBF,
  556. 0x58, 0x47, 0x69, 0x3E, 0x49, 0xA7, 0x1B, 0x98,
  557. 0x6C, 0xE5, 0xA7, 0x42, 0x8B, 0x0E, 0x68, 0x05,
  558. 0x48, 0x80, 0x39, 0xF4, 0x02, 0x9E, 0xE2, 0x9F,
  559. 0x1C, 0xDA, 0x24, 0xC5, 0xB8, 0xEC, 0x03, 0xEA,
  560. 0x7A, 0x00, 0xDF, 0xCF, 0x58, 0xD0, 0xE7, 0xB7,
  561. 0xF3, 0xE7, 0x36, 0xDD, 0x1F, 0x65, 0xF9, 0x2D,
  562. 0x6F, 0xC3, 0xE4, 0x72, 0xFD, 0xBA, 0x58, 0x8D,
  563. 0xB5, 0xDF, 0x61, 0x3D, 0x3B, 0xB5, 0xF3, 0x08,
  564. 0xE7, 0x21, 0x5A, 0x7D, 0xFF, 0x02, 0x1E, 0x0E,
  565. 0x4E, 0xB5, 0x0D, 0x3D, 0x33, 0xF4, 0xA7, 0x6D,
  566. 0xF7, 0x96, 0xC2, 0x96, 0x85, 0x33, 0x9C, 0x58,
  567. 0x72, 0x5C, 0x97, 0x73, 0x0E, 0xDC, 0x5C, 0x6B,
  568. 0x3D, 0x68, 0xF7, 0xF0, 0x0F, 0xCC, 0x01, 0xBB,
  569. 0x47, 0x01, 0x3C, 0xB0, 0x52, 0x48, 0x70, 0xB8,
  570. 0x0C, 0x0F, 0x04, 0xB5, 0x8F, 0x70, 0x50, 0x12,
  571. 0x7C, 0x9D, 0xD1, 0xC1, 0x2B, 0xFE, 0x95, 0x31,
  572. 0x8F, 0x2D, 0xFA, 0xAC, 0xAE, 0x24, 0xDD, 0x13,
  573. 0xDA, 0x76, 0xC2, 0x34, 0xB9, 0x4A, 0x3E, 0xC3,
  574. };
  575. static const unsigned char dsa_sigver_pub0[] = {
  576. 0x91, 0x78, 0x1C, 0xBA, 0x8A, 0x2F, 0xF6, 0xEC,
  577. 0x9B, 0xD4, 0x73, 0x2C, 0x1F, 0xC0, 0xFE, 0x79,
  578. 0xCF, 0xAC, 0x0C, 0x3C, 0x0D, 0x81, 0x85, 0x3D,
  579. 0xCD, 0x67, 0x2B, 0x77, 0x99, 0x4A, 0x51, 0x48,
  580. 0x58, 0x03, 0xC9, 0x68, 0xE6, 0x19, 0x26, 0x28,
  581. 0xDC, 0x86, 0x9F, 0x8F, 0xCE, 0xDD, 0x1B, 0xCD,
  582. 0xDD, 0x63, 0x4E, 0xCE, 0x76, 0x4D, 0xD5, 0x0D,
  583. 0x71, 0x73, 0x04, 0x03, 0x9C, 0x35, 0xD0, 0x56,
  584. 0x98, 0x25, 0xA7, 0x06, 0xF2, 0x6B, 0xA9, 0x9F,
  585. 0x9A, 0xB1, 0x2A, 0xBD, 0xB7, 0x71, 0x62, 0x99,
  586. 0x06, 0x47, 0x77, 0x22, 0x57, 0xFA, 0x24, 0x21,
  587. 0x21, 0xB0, 0x78, 0x26, 0x7E, 0xEC, 0xB6, 0xEB,
  588. 0x82, 0x15, 0x53, 0x68, 0xAE, 0xAC, 0x5B, 0xDC,
  589. 0xA6, 0x7F, 0x6B, 0x26, 0xE6, 0x59, 0x22, 0x55,
  590. 0x1C, 0x3B, 0xFD, 0xD5, 0x90, 0xA9, 0x6F, 0xB3,
  591. 0xE6, 0x99, 0x8E, 0x26, 0x72, 0xA1, 0x02, 0xAA,
  592. 0x37, 0xF6, 0x89, 0x68, 0xF1, 0x5A, 0x6D, 0x54,
  593. 0xAD, 0x9D, 0xF3, 0x03, 0xBE, 0x3F, 0x9D, 0x85,
  594. 0x38, 0x25, 0xB8, 0xDF, 0xB8, 0x43, 0x21, 0xCA,
  595. 0xF8, 0xDC, 0x12, 0x40, 0x1E, 0xEF, 0x37, 0x40,
  596. 0xCE, 0x0E, 0x02, 0x88, 0x63, 0x98, 0x2E, 0x93,
  597. 0x89, 0xB0, 0x43, 0xAC, 0x0E, 0x62, 0x4C, 0x38,
  598. 0x14, 0xAC, 0x0C, 0xA3, 0x03, 0x10, 0x8E, 0xB4,
  599. 0x60, 0x10, 0x9B, 0xCC, 0x16, 0xA7, 0xB8, 0x1D,
  600. 0x73, 0x81, 0x26, 0x12, 0xA8, 0x9A, 0xFE, 0x17,
  601. 0xBB, 0x2D, 0x33, 0x5E, 0x8C, 0xA4, 0x80, 0xBF,
  602. 0x84, 0x37, 0xCA, 0x0F, 0x50, 0x23, 0x79, 0x20,
  603. 0x2A, 0x8E, 0xD1, 0x1F, 0x9F, 0x89, 0x98, 0x4F,
  604. 0xF5, 0xB6, 0x0F, 0xB9, 0x3C, 0xFC, 0x6C, 0x00,
  605. 0xBC, 0x76, 0x2F, 0xB4, 0xFD, 0x22, 0x13, 0x37,
  606. 0x26, 0xCD, 0x9B, 0xAF, 0x4C, 0x89, 0x16, 0xD0,
  607. 0x73, 0x44, 0xF9, 0x71, 0x60, 0xA2, 0x3E, 0xFE,
  608. 0x24, 0xFE, 0xFC, 0xFE, 0x90, 0x91, 0xED, 0x92,
  609. 0x57, 0x0A, 0xFA, 0xEB, 0x21, 0x99, 0xE3, 0x9A,
  610. 0xFF, 0x5C, 0x74, 0x85, 0xC2, 0x6D, 0x83, 0x90,
  611. 0xEE, 0x84, 0x05, 0x1A, 0x00, 0xAC, 0x87, 0xA7,
  612. 0x78, 0x87, 0xCA, 0x70, 0xFC, 0xB0, 0xF4, 0x3B,
  613. 0x61, 0x7C, 0xD0, 0x09, 0x63, 0x2B, 0x5E, 0xC2,
  614. 0xFE, 0x15, 0x41, 0xB3, 0x9F, 0xFC, 0x19, 0xE3,
  615. 0x4D, 0x3C, 0x6F, 0x89, 0xEB, 0x8A, 0x43, 0xEC,
  616. 0x8E, 0xFB, 0xEC, 0xCD, 0x99, 0x2E, 0x4B, 0x02,
  617. 0x99, 0xAC, 0xC6, 0x62, 0xAA, 0xC5, 0x0F, 0xA3,
  618. 0x0B, 0xBB, 0xCD, 0x51, 0x0C, 0x19, 0xA7, 0x7A,
  619. 0x43, 0x6C, 0xAA, 0x26, 0x28, 0x2A, 0xC9, 0x9D,
  620. 0x97, 0xAE, 0x83, 0x74, 0xDA, 0xC4, 0x03, 0x98,
  621. 0x94, 0x58, 0x28, 0xBC, 0x32, 0x1D, 0xD4, 0xF2,
  622. 0x6F, 0x89, 0x92, 0xD4, 0x80, 0x9B, 0xDE, 0x6B,
  623. 0xC5, 0x6F, 0xDB, 0x7A, 0x03, 0x1C, 0xF5, 0x55,
  624. };
  625. static const unsigned char dsa_sigver_msg0[] = {
  626. 0x32, 0xE9, 0x64, 0x47, 0xED, 0x3B, 0xF0, 0xC0,
  627. 0xCA, 0xC2, 0x90, 0xF5, 0x10, 0x60, 0x99, 0x82,
  628. 0x4D, 0x13, 0x44, 0xFA, 0x92, 0xD1, 0xFD, 0x50,
  629. 0x26, 0x80, 0xEA, 0x7B, 0x7D, 0xC5, 0xF0, 0xB7,
  630. };
  631. static const unsigned char dsa_sigver_msg1[] = {
  632. 0x31, 0xE9, 0x64, 0x47, 0xED, 0x3B, 0xF0, 0xC0,
  633. 0xCA, 0xC2, 0x90, 0xF5, 0x10, 0x60, 0x99, 0x82,
  634. 0x4D, 0x13, 0x44, 0xFA, 0x92, 0xD1, 0xFD, 0x50,
  635. 0x26, 0x80, 0xEA, 0x7B, 0x7D, 0xC5, 0xF0, 0xB7
  636. };
  637. static const unsigned char dsa_sigver_r0[] = {
  638. 0x2A, 0x24, 0x0F, 0xA7, 0x04, 0xF1, 0xE0, 0x60,
  639. 0x3B, 0x07, 0xDE, 0xB6, 0x5F, 0x01, 0x20, 0x81,
  640. 0xDD, 0x64, 0x22, 0x0F, 0x9F, 0x2E, 0x67, 0x33,
  641. 0xB7, 0x56, 0xDE, 0x17, 0xD0, 0xED, 0x9D, 0x30,
  642. };
  643. static const unsigned char dsa_sigver_s0[] = {
  644. 0x15, 0x93, 0x81, 0x6E, 0xC2, 0x07, 0x6E, 0x06,
  645. 0x6A, 0xBF, 0x62, 0xBF, 0x93, 0xA6, 0xCB, 0x6E,
  646. 0xBA, 0x1E, 0x72, 0x57, 0x27, 0x0E, 0x85, 0x9E,
  647. 0x8C, 0x42, 0x9A, 0x41, 0x63, 0x27, 0x74, 0x4F,
  648. };
  649. static const struct dsa_sigver_st dsa_sigver_data[] = {
  650. {
  651. "SHA2-512",
  652. ITM(dsa_sigver_p0),
  653. ITM(dsa_sigver_q0),
  654. ITM(dsa_sigver_g0),
  655. ITM(dsa_sigver_pub0),
  656. ITM(dsa_sigver_msg0),
  657. ITM(dsa_sigver_r0),
  658. ITM(dsa_sigver_s0),
  659. PASS,
  660. },
  661. {
  662. "SHA2-512",
  663. ITM(dsa_sigver_p0),
  664. ITM(dsa_sigver_q0),
  665. ITM(dsa_sigver_g0),
  666. ITM(dsa_sigver_pub0),
  667. ITM(dsa_sigver_msg1),
  668. ITM(dsa_sigver_r0),
  669. ITM(dsa_sigver_s0),
  670. FAIL,
  671. },
  672. };
  673. #endif /* OPENSSL_NO_DSA */
  674. struct cipher_st {
  675. const char *alg;
  676. const unsigned char *key;
  677. size_t key_len;
  678. const unsigned char *iv;
  679. size_t iv_len;
  680. const unsigned char *pt;
  681. size_t pt_len;
  682. const unsigned char *ct;
  683. size_t ct_len;
  684. };
  685. struct cipher_ccm_st {
  686. const char *alg;
  687. const unsigned char *key;
  688. size_t key_len;
  689. const unsigned char *iv;
  690. size_t iv_len;
  691. const unsigned char *aad;
  692. size_t aad_len;
  693. const unsigned char *pt;
  694. size_t pt_len;
  695. const unsigned char *ct; /* includes the tag */
  696. size_t ct_len;
  697. };
  698. struct cipher_gcm_st {
  699. const char *alg;
  700. const unsigned char *key;
  701. size_t key_len;
  702. const unsigned char *iv;
  703. size_t iv_len;
  704. const unsigned char *aad;
  705. size_t aad_len;
  706. const unsigned char *pt;
  707. size_t pt_len;
  708. const unsigned char *ct;
  709. size_t ct_len;
  710. const unsigned char *tag;
  711. size_t tag_len;
  712. };
  713. static const unsigned char cipher_enc_pt0[] = {
  714. 0xF3, 0x44, 0x81, 0xEC, 0x3C, 0xC6, 0x27, 0xBA,
  715. 0xCD, 0x5D, 0xC3, 0xFB, 0x08, 0xF2, 0x73, 0xE6,
  716. };
  717. static const unsigned char cipher_enc_pt1[] = {
  718. 0x1B, 0x07, 0x7A, 0x6A, 0xF4, 0xB7, 0xF9, 0x82,
  719. 0x29, 0xDE, 0x78, 0x6D, 0x75, 0x16, 0xB6, 0x39,
  720. };
  721. static const unsigned char cipher_enc_pt2[] = {
  722. 0x91, 0x07, 0x41, 0x31, 0xF1, 0xF8, 0x6C, 0xCD,
  723. 0x54, 0x8D, 0x22, 0xA6, 0x93, 0x40, 0xFF, 0x39,
  724. };
  725. static const unsigned char cipher_enc_pt3[] = {
  726. 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  727. 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
  728. 0x10, 0x11, 0x12, 0x13
  729. };
  730. static const unsigned char cipher_enc_key0[] = {
  731. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  732. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  733. };
  734. static const unsigned char cipher_enc_key1[] = {
  735. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  736. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  737. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  738. };
  739. static const unsigned char cipher_enc_key2[] = {
  740. 0xE8, 0x70, 0x13, 0x1C, 0xE7, 0x03, 0xD6, 0x51,
  741. 0x4E, 0x76, 0x1F, 0x95, 0xE6, 0xEE, 0x9E, 0xFB,
  742. };
  743. static const unsigned char cipher_enc_key3[] = {
  744. 0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8,
  745. 0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0xf1, 0xf0,
  746. 0xbf, 0xbe, 0xbd, 0xbc, 0xbb, 0xba, 0xb9, 0xb8,
  747. 0xb7, 0xb6, 0xb5, 0xb4, 0xb3, 0xb2, 0xb1, 0xb0,
  748. };
  749. static const unsigned char cipher_enc_ct0[] = {
  750. 0x03, 0x36, 0x76, 0x3E, 0x96, 0x6D, 0x92, 0x59,
  751. 0x5A, 0x56, 0x7C, 0xC9, 0xCE, 0x53, 0x7F, 0x5E,
  752. };
  753. static const unsigned char cipher_enc_ct1[] = {
  754. 0x27, 0x5C, 0xFC, 0x04, 0x13, 0xD8, 0xCC, 0xB7,
  755. 0x05, 0x13, 0xC3, 0x85, 0x9B, 0x1D, 0x0F, 0x72,
  756. };
  757. static const unsigned char cipher_enc_ct2[] = {
  758. 0x3A, 0xF6, 0x4C, 0x70, 0x37, 0xEE, 0x48, 0x13,
  759. 0xD8, 0x5F, 0xE9, 0xB3, 0x7F, 0xE6, 0x6A, 0xD4,
  760. };
  761. static const unsigned char cipher_enc_ct3[] = {
  762. 0x9d, 0x84, 0xc8, 0x13, 0xf7, 0x19, 0xaa, 0x2c,
  763. 0x7b, 0xe3, 0xf6, 0x61, 0x71, 0xc7, 0xc5, 0xc2,
  764. 0xed, 0xbf, 0x9d, 0xac,
  765. };
  766. static const unsigned char cipher_enc_iv0[] = {
  767. 0x00,
  768. };
  769. static const unsigned char cipher_enc_iv1[] = {
  770. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  771. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  772. };
  773. static const unsigned char cipher_enc_iv2[] = {
  774. 0x53, 0xF2, 0x25, 0xD8, 0xDE, 0x97, 0xF1, 0x4B,
  775. 0xFE, 0x3E, 0xC6, 0x5E, 0xC3, 0xFF, 0xF7, 0xD3,
  776. };
  777. static const unsigned char cipher_enc_iv3[] = {
  778. 0x9a, 0x78, 0x56, 0x34, 0x12, 0x00, 0x00, 0x00,
  779. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  780. };
  781. static const struct cipher_st cipher_enc_data[] = {
  782. {
  783. "AES-128-ECB",
  784. ITM(cipher_enc_key0),
  785. NULL, 0, /* iv */
  786. ITM(cipher_enc_pt0),
  787. ITM(cipher_enc_ct0),
  788. },
  789. {
  790. "AES-192-CBC",
  791. ITM(cipher_enc_key1),
  792. ITM(cipher_enc_iv1),
  793. ITM(cipher_enc_pt1),
  794. ITM(cipher_enc_ct1),
  795. },
  796. {
  797. "AES-128-CTR",
  798. ITM(cipher_enc_key2),
  799. ITM(cipher_enc_iv2),
  800. ITM(cipher_enc_pt2),
  801. ITM(cipher_enc_ct2),
  802. },
  803. {
  804. "AES-128-XTS",
  805. ITM(cipher_enc_key3),
  806. ITM(cipher_enc_iv3),
  807. ITM(cipher_enc_pt3),
  808. ITM(cipher_enc_ct3),
  809. }
  810. };
  811. static const unsigned char aes_ccm_enc_pt0[] = {
  812. 0xDA, 0x6A, 0xDC, 0xB2, 0xA5, 0xCC, 0xC3, 0xE7,
  813. 0xFC, 0x4C, 0xDF, 0x0A, 0xAB, 0xDC, 0x3B, 0x38,
  814. 0x26, 0x8B, 0x21, 0x82, 0xCA, 0x26, 0xE6, 0x2C,
  815. };
  816. static const unsigned char aes_ccm_enc_key0[] = {
  817. 0xDE, 0xF8, 0x67, 0xBC, 0x40, 0xB6, 0x7C, 0xAA,
  818. 0x4A, 0x00, 0xE8, 0x07, 0x24, 0x52, 0xAE, 0x72,
  819. };
  820. static const unsigned char aes_ccm_enc_aad0[] = {
  821. 0x29, 0x8D, 0x01, 0x92, 0x3B, 0x50, 0x1F, 0x66,
  822. 0xCE, 0xD3, 0x57, 0x4B, 0x7B, 0x4F, 0x07, 0x57,
  823. };
  824. static const unsigned char aes_ccm_enc_iv0[] = {
  825. 0x44, 0xEE, 0x48, 0x11, 0x4D, 0x3B, 0x71, 0x33,
  826. 0xF0, 0xF7, 0x12, 0xA2, 0xA5,
  827. };
  828. static const unsigned char aes_ccm_enc_ct0[] = {
  829. 0x30, 0x4D, 0x19, 0x31, 0x02, 0x66, 0x95, 0x2E,
  830. 0x23, 0x6D, 0xF4, 0xB9, 0xDF, 0xFE, 0xCA, 0x92,
  831. 0x04, 0x2A, 0x32, 0xB5, 0x08, 0x2C, 0x8B, 0x6F,
  832. 0x1B, 0x14, 0xB8, 0x62, 0x8B, 0xA0, 0x12, 0x4E,
  833. 0x6A, 0x6F, 0x85, 0x86, 0x24, 0x6A, 0x83, 0xE0,
  834. };
  835. static const struct cipher_ccm_st aes_ccm_enc_data[] = {
  836. {
  837. "AES-128-CCM",
  838. ITM(aes_ccm_enc_key0),
  839. ITM(aes_ccm_enc_iv0),
  840. ITM(aes_ccm_enc_aad0),
  841. ITM(aes_ccm_enc_pt0),
  842. ITM(aes_ccm_enc_ct0),
  843. },
  844. };
  845. static const unsigned char aes_gcm_enc_pt0[] = {
  846. 0x97,
  847. };
  848. static const unsigned char aes_gcm_enc_key0[] = {
  849. 0x3E, 0x77, 0x38, 0xA6, 0x0A, 0xB3, 0x95, 0x90,
  850. 0xFA, 0x8B, 0x3B, 0xCF, 0xE1, 0xA3, 0x8C, 0x7D,
  851. };
  852. static const unsigned char aes_gcm_enc_aad0[] = {
  853. 0xE7, 0xEF, 0xCB, 0x0F, 0x3D, 0x94, 0x1D, 0x0F,
  854. 0x3D, 0x65, 0x69, 0xFC, 0xDA, 0x77, 0x36, 0x5E,
  855. 0xB9, 0x20, 0xF8, 0xDA, 0x81, 0xDF, 0x6B, 0x4C,
  856. 0x2A, 0x70, 0x5E, 0xE3, 0x07, 0xCE, 0xCF, 0x62,
  857. 0x84,
  858. };
  859. static const unsigned char aes_gcm_enc_iv0[] = {
  860. 0x01, 0x02, 0x03, 0x04, 0xEB, 0xED, 0x2F, 0x4B,
  861. 0xD1, 0x20, 0x2C, 0xCD,
  862. };
  863. static const unsigned char aes_gcm_enc_ct0[] = {
  864. 0x63,
  865. };
  866. static const unsigned char aes_gcm_enc_tag0[] = {
  867. 0xA2, 0x8E, 0xA5, 0xF6, 0x6A, 0x1C, 0xE6, 0xD7,
  868. 0xFF, 0xCD, 0x7F, 0x49,
  869. };
  870. static const struct cipher_gcm_st aes_gcm_enc_data[] = {
  871. {
  872. "AES-128-GCM",
  873. ITM(aes_gcm_enc_key0),
  874. ITM(aes_gcm_enc_iv0),
  875. ITM(aes_gcm_enc_aad0),
  876. ITM(aes_gcm_enc_pt0),
  877. ITM(aes_gcm_enc_ct0),
  878. ITM(aes_gcm_enc_tag0),
  879. },
  880. };
  881. #ifndef OPENSSL_NO_DH
  882. struct dh_safe_prime_keygen_st {
  883. const char *group_name;
  884. };
  885. struct dh_safe_prime_keyver_st {
  886. const char *group_name;
  887. const unsigned char *pub;
  888. size_t pub_len;
  889. const unsigned char *priv;
  890. size_t priv_len;
  891. int pass;
  892. };
  893. static const struct dh_safe_prime_keygen_st dh_safe_prime_keygen_data[] = {
  894. { "ffdhe2048" },
  895. };
  896. static const unsigned char dh_safe_prime_keyver_priv0[] = {
  897. 0x39, 0x9C, 0x08, 0x8E, 0x4A, 0x1E, 0x1A, 0x03,
  898. 0x18, 0x5A, 0x72, 0x4F, 0xCB, 0x13, 0xFB, 0x8F,
  899. 0x7F, 0x14, 0x12, 0x48, 0x9A, 0x18, 0x03, 0x1C,
  900. 0x03, 0x98, 0x7E, 0x3C, 0xEF, 0x57, 0xF2, 0x1E,
  901. 0xD5, 0x54, 0x5C, 0x0F, 0x36, 0x5E, 0xB0, 0xF8,
  902. 0xD1, 0x27, 0x79, 0x24, 0x69, 0xB5, 0x7C, 0xF1,
  903. 0x39, 0xFC, 0xE3, 0x79, 0xF0, 0xD6, 0xA0, 0xE1,
  904. 0xA5, 0xA7, 0x65, 0x01, 0xBA, 0xFE, 0xBB, 0x28,
  905. 0xF0, 0x9C, 0x49, 0x90, 0x68, 0xB4, 0xE7, 0xE2,
  906. 0xB6, 0xBF, 0xB9, 0xF8, 0x96, 0xAA, 0xF9, 0xE6,
  907. 0x0B, 0x8A, 0x86, 0x0D, 0x31, 0x2C, 0x90, 0xDA,
  908. 0x4E, 0xFB, 0xE3, 0x59, 0x3F, 0xFB, 0x14, 0x33,
  909. 0xF6, 0xBD, 0xDA, 0x5D, 0x27, 0xCC, 0x7C, 0x1C,
  910. 0x30, 0xC8, 0xB2, 0xAF, 0x2A, 0xA8, 0x25, 0x97,
  911. 0xDC, 0x5E, 0xEF, 0x22, 0xCB, 0xF6, 0x88, 0x83,
  912. 0xD0, 0x47, 0x3F, 0x5D, 0xF3, 0x2A, 0xE0, 0xCC,
  913. 0x86, 0x49, 0x5A, 0x8F, 0x67, 0xF6, 0xC4, 0xD8,
  914. 0x3F, 0x09, 0xE8, 0x49, 0x89, 0x2E, 0xC0, 0xB4,
  915. 0x9C, 0x06, 0x9C, 0x40, 0x10, 0xFB, 0x20, 0xC6,
  916. 0xF1, 0x5F, 0x52, 0x3F, 0x21, 0xBF, 0xBB, 0x13,
  917. 0x6A, 0x81, 0x1C, 0xFF, 0x19, 0x2A, 0x36, 0xD2,
  918. 0x13, 0x23, 0x33, 0xD1, 0xEF, 0x34, 0xF3, 0xA6,
  919. 0xD5, 0x56, 0xAF, 0x1A, 0x63, 0xFC, 0x95, 0x86,
  920. 0xD5, 0xEB, 0xBF, 0x49, 0x84, 0x73, 0x30, 0x1D,
  921. 0xE2, 0xA1, 0xAE, 0x6D, 0x20, 0x69, 0xAE, 0xB6,
  922. 0x1A, 0xB9, 0xF2, 0x7A, 0xE3, 0x17, 0x4E, 0x7C,
  923. 0x8F, 0xE8, 0x34, 0x02, 0x59, 0xB4, 0x54, 0x9A,
  924. 0x8D, 0x19, 0x04, 0x2A, 0x8E, 0xF8, 0x05, 0xA3,
  925. 0x98, 0x5B, 0xBD, 0xB4, 0x6A, 0xDA, 0xAA, 0x1F,
  926. 0xFC, 0x56, 0xA0, 0x4D, 0x22, 0x66, 0x31, 0xEA,
  927. 0x8A, 0xC8, 0x61, 0x12, 0x40, 0xF0, 0x38, 0x0B,
  928. 0xA3, 0x23, 0x40, 0x97, 0x7A, 0x18, 0xE3, 0x42,
  929. };
  930. static const unsigned char dh_safe_prime_keyver_pub0[] = {
  931. 0xFA, 0xDA, 0x86, 0x67, 0xE9, 0x12, 0x67, 0x79,
  932. 0x50, 0xAE, 0x64, 0x0B, 0x07, 0x47, 0x8F, 0xA5,
  933. 0xD1, 0x27, 0x6C, 0xFC, 0x10, 0xD8, 0x90, 0x8D,
  934. 0x93, 0x75, 0xAD, 0x31, 0xBD, 0x97, 0xBE, 0xD5,
  935. 0xB5, 0x59, 0x2F, 0x37, 0x52, 0x32, 0x30, 0x75,
  936. 0xD3, 0xA5, 0x36, 0x10, 0x62, 0x4C, 0x82, 0x06,
  937. 0xB9, 0x29, 0xAE, 0x14, 0xD1, 0xB0, 0xD0, 0x23,
  938. 0x7A, 0xE6, 0xEA, 0x7E, 0x8E, 0xE3, 0xC7, 0xEB,
  939. 0x43, 0x78, 0xFA, 0x9A, 0x40, 0x9A, 0x6F, 0xF5,
  940. 0x42, 0x8A, 0xF7, 0xF3, 0x92, 0xE6, 0x5D, 0x68,
  941. 0x9B, 0x2A, 0x91, 0xB5, 0x37, 0x33, 0x3F, 0x35,
  942. 0xA5, 0xFB, 0x54, 0xD1, 0x3C, 0x46, 0xC6, 0x3C,
  943. 0x16, 0x3A, 0xD7, 0xF8, 0x55, 0x48, 0x9A, 0xB7,
  944. 0xB1, 0x40, 0xBF, 0xAF, 0x26, 0x1B, 0x07, 0x0F,
  945. 0x11, 0x04, 0x63, 0x06, 0xDA, 0x2D, 0x45, 0x0E,
  946. 0x7F, 0x17, 0xA4, 0x38, 0xBD, 0x68, 0x5A, 0xA9,
  947. 0xC4, 0x7F, 0x7E, 0xC7, 0xF0, 0xFC, 0x74, 0x87,
  948. 0x55, 0xCD, 0x35, 0xA8, 0xAA, 0x59, 0xA7, 0xFA,
  949. 0xC1, 0x34, 0x67, 0x04, 0xD8, 0xCC, 0xE1, 0x77,
  950. 0x60, 0xE1, 0xBE, 0xC0, 0xA5, 0x52, 0xA4, 0x72,
  951. 0x3A, 0x19, 0xFA, 0x76, 0xC8, 0x67, 0x60, 0x5E,
  952. 0x1C, 0x43, 0xF4, 0x50, 0xA0, 0xCB, 0x33, 0x77,
  953. 0x2D, 0x2D, 0x3B, 0x5D, 0x7D, 0x72, 0x2E, 0x38,
  954. 0xCD, 0x71, 0xB1, 0xBF, 0xB5, 0x10, 0x80, 0xCD,
  955. 0xA4, 0x5D, 0x70, 0x6E, 0xD5, 0x7E, 0xA2, 0xAA,
  956. 0xDC, 0xA4, 0x7C, 0x7A, 0x7D, 0x21, 0x09, 0x6A,
  957. 0x14, 0xB2, 0x21, 0x24, 0xA4, 0xF4, 0x6C, 0xD2,
  958. 0xBA, 0x76, 0x99, 0xD7, 0x69, 0x44, 0xA8, 0x66,
  959. 0x85, 0x08, 0x50, 0xBA, 0x42, 0x37, 0xA2, 0xC2,
  960. 0xD5, 0x45, 0x7E, 0x7B, 0xE9, 0x4A, 0xAE, 0xEE,
  961. 0x84, 0x2A, 0xEB, 0xA9, 0x4A, 0x69, 0x40, 0x83,
  962. 0xBA, 0xCC, 0x1E, 0x1B, 0x25, 0x56, 0x13, 0x88,
  963. };
  964. static const struct dh_safe_prime_keyver_st dh_safe_prime_keyver_data[] = {
  965. {
  966. "ffdhe2048",
  967. ITM(dh_safe_prime_keyver_pub0),
  968. ITM(dh_safe_prime_keyver_priv0),
  969. PASS
  970. },
  971. };
  972. #endif /* OPENSSL_NO_DH */
  973. #ifndef OPENSSL_NO_RSA
  974. struct rsa_keygen_st {
  975. size_t mod;
  976. const unsigned char *e;
  977. size_t e_len;
  978. const unsigned char *xp1;
  979. size_t xp1_len;
  980. const unsigned char *xp2;
  981. size_t xp2_len;
  982. const unsigned char *xp;
  983. size_t xp_len;
  984. const unsigned char *xq1;
  985. size_t xq1_len;
  986. const unsigned char *xq2;
  987. size_t xq2_len;
  988. const unsigned char *xq;
  989. size_t xq_len;
  990. const unsigned char *p1;
  991. size_t p1_len;
  992. const unsigned char *p2;
  993. size_t p2_len;
  994. const unsigned char *q1;
  995. size_t q1_len;
  996. const unsigned char *q2;
  997. size_t q2_len;
  998. const unsigned char *p;
  999. size_t p_len;
  1000. const unsigned char *q;
  1001. size_t q_len;
  1002. const unsigned char *n;
  1003. size_t n_len;
  1004. const unsigned char *d;
  1005. size_t d_len;
  1006. };
  1007. static const unsigned char rsa_keygen0_e[] = {
  1008. 0x01,0x00,0x01
  1009. };
  1010. static const unsigned char rsa_keygen0_xp[] = {
  1011. 0xcf,0x72,0x1b,0x9a,0xfd,0x0d,0x22,0x1a,0x74,0x50,0x97,0x22,0x76,0xd8,0xc0,
  1012. 0xc2,0xfd,0x08,0x81,0x05,0xdd,0x18,0x21,0x99,0x96,0xd6,0x5c,0x79,0xe3,0x02,
  1013. 0x81,0xd7,0x0e,0x3f,0x3b,0x34,0xda,0x61,0xc9,0x2d,0x84,0x86,0x62,0x1e,0x3d,
  1014. 0x5d,0xbf,0x92,0x2e,0xcd,0x35,0x3d,0x6e,0xb9,0x59,0x16,0xc9,0x82,0x50,0x41,
  1015. 0x30,0x45,0x67,0xaa,0xb7,0xbe,0xec,0xea,0x4b,0x9e,0xa0,0xc3,0x05,0xb3,0x88,
  1016. 0xd4,0x4c,0xac,0xeb,0xe4,0x03,0xc6,0xca,0xcb,0xd9,0xd3,0x4e,0xf6,0x7f,0x2c,
  1017. 0x27,0x1e,0x08,0x6c,0xc2,0xd6,0x45,0x1f,0x84,0xe4,0x3c,0x97,0x19,0xde,0xb8,
  1018. 0x55,0xaf,0x0e,0xcf,0x9e,0xb0,0x9c,0x20,0xd3,0x1f,0xa8,0xd7,0x52,0xc2,0x95,
  1019. 0x1c,0x80,0x15,0x42,0x4d,0x4f,0x19,0x16
  1020. };
  1021. static const unsigned char rsa_keygen0_xp1[] = {
  1022. 0xac,0x5f,0x7f,0x6e,0x33,0x3e,0x97,0x3a,0xb3,0x17,0x44,0xa9,0x0f,0x7a,0x54,
  1023. 0x70,0x27,0x06,0x93,0xd5,0x49,0xde,0x91,0x83,0xbc,0x8a,0x7b,0x95
  1024. };
  1025. static const unsigned char rsa_keygen0_xp2[] = {
  1026. 0x0b,0xf6,0xe8,0x79,0x5a,0x81,0xae,0x90,0x1d,0xa4,0x38,0x74,0x9c,0x0e,0x6f,
  1027. 0xe0,0x03,0xcf,0xc4,0x53,0x16,0x32,0x17,0xf7,0x09,0x5f,0xd9
  1028. };
  1029. static const unsigned char rsa_keygen0_xq[] = {
  1030. 0xfe,0xab,0xf2,0x7c,0x16,0x4a,0xf0,0x8d,0x31,0xc6,0x0a,0x82,0xe2,0xae,0xbb,
  1031. 0x03,0x7e,0x7b,0x20,0x4e,0x64,0xb0,0x16,0xad,0x3c,0x01,0x1a,0xd3,0x54,0xbf,
  1032. 0x2b,0xa4,0x02,0x9e,0xc3,0x0d,0x60,0x3d,0x1f,0xb9,0xc0,0x0d,0xe6,0x97,0x68,
  1033. 0xbb,0x8c,0x81,0xd5,0xc1,0x54,0x96,0x0f,0x99,0xf0,0xa8,0xa2,0xf3,0xc6,0x8e,
  1034. 0xec,0xbc,0x31,0x17,0x70,0x98,0x24,0xa3,0x36,0x51,0xa8,0x54,0xbd,0x9a,0x89,
  1035. 0x99,0x6e,0x57,0x5e,0xd0,0x39,0x86,0xc3,0xa3,0x1b,0xc7,0xcf,0xc4,0x4f,0x47,
  1036. 0x25,0x9e,0x2c,0x79,0xe1,0x2c,0xcc,0xe4,0x63,0xf4,0x02,0x84,0xf8,0xf6,0xa1,
  1037. 0x5c,0x93,0x14,0xf2,0x68,0x5f,0x3a,0x90,0x2f,0x4e,0x5e,0xf9,0x16,0x05,0xcf,
  1038. 0x21,0x63,0xca,0xfa,0xb0,0x08,0x02,0xc0
  1039. };
  1040. static const unsigned char rsa_keygen0_xq1[] = {
  1041. 0x9b,0x02,0xd4,0xba,0xf0,0xaa,0x14,0x99,0x6d,0xc0,0xb7,0xa5,0xe1,0xd3,0x70,
  1042. 0xb6,0x5a,0xa2,0x9b,0x59,0xd5,0x8c,0x1e,0x9f,0x3f,0x9a,0xde,0xeb,0x9e,0x9c,
  1043. 0x61,0xd6,0x5a,0xe1
  1044. };
  1045. static const unsigned char rsa_keygen0_xq2[] = {
  1046. 0x06,0x81,0x53,0xfd,0xa8,0x7b,0xa3,0x85,0x90,0x15,0x2c,0x97,0xb2,0xa0,0x17,
  1047. 0x48,0xb0,0x7f,0x0a,0x01,0x6d
  1048. };
  1049. /* expected values */
  1050. static const unsigned char rsa_keygen0_p1[] = {
  1051. 0xac,0x5f,0x7f,0x6e,0x33,0x3e,0x97,0x3a,0xb3,0x17,0x44,0xa9,0x0f,0x7a,0x54,
  1052. 0x70,0x27,0x06,0x93,0xd5,0x49,0xde,0x91,0x83,0xbc,0x8a,0x7b,0xc3
  1053. };
  1054. static const unsigned char rsa_keygen0_p2[] = {
  1055. 0x0b,0xf6,0xe8,0x79,0x5a,0x81,0xae,0x90,0x1d,0xa4,0x38,0x74,0x9c,0x0e,0x6f,
  1056. 0xe0,0x03,0xcf,0xc4,0x53,0x16,0x32,0x17,0xf7,0x09,0x5f,0xd9
  1057. };
  1058. static const unsigned char rsa_keygen0_q1[] = {
  1059. 0x9b,0x02,0xd4,0xba,0xf0,0xaa,0x14,0x99,0x6d,0xc0,0xb7,0xa5,0xe1,0xd3,0x70,
  1060. 0xb6,0x5a,0xa2,0x9b,0x59,0xd5,0x8c,0x1e,0x9f,0x3f,0x9a,0xde,0xeb,0x9e,0x9c,
  1061. 0x61,0xd6,0x5d,0x47
  1062. };
  1063. static const unsigned char rsa_keygen0_q2[] = {
  1064. 0x06,0x81,0x53,0xfd,0xa8,0x7b,0xa3,0x85,0x90,0x15,0x2c,0x97,0xb2,0xa0,0x17,
  1065. 0x48,0xb0,0x7f,0x0a,0x01,0x8f
  1066. };
  1067. static const unsigned char rsa_keygen0_p[] = {
  1068. 0xcf,0x72,0x1b,0x9a,0xfd,0x0d,0x22,0x1a,0x74,0x50,0x97,0x22,0x76,0xd8,0xc0,
  1069. 0xc2,0xfd,0x08,0x81,0x05,0xdd,0x18,0x21,0x99,0x96,0xd6,0x5c,0x79,0xe3,0x02,
  1070. 0x81,0xd7,0x0e,0x3f,0x3b,0x34,0xda,0x61,0xc9,0x2d,0x84,0x86,0x62,0x1e,0x3d,
  1071. 0x5d,0xbf,0x92,0x2e,0xcd,0x35,0x3d,0x6e,0xb9,0x59,0x16,0xc9,0x82,0x50,0x41,
  1072. 0x30,0x45,0x67,0xaa,0xb7,0xbe,0xec,0xea,0x4b,0x9e,0xa0,0xc3,0x05,0xbc,0x4c,
  1073. 0x01,0xa5,0x4b,0xbd,0xa4,0x20,0xb5,0x20,0xd5,0x59,0x6f,0x82,0x5c,0x8f,0x4f,
  1074. 0xe0,0x3a,0x4e,0x7e,0xfe,0x44,0xf3,0x3c,0xc0,0x0e,0x14,0x2b,0x32,0xe6,0x28,
  1075. 0x8b,0x63,0x87,0x00,0xc3,0x53,0x4a,0x5b,0x71,0x7a,0x5b,0x28,0x40,0xc4,0x18,
  1076. 0xb6,0x77,0x0b,0xab,0x59,0xa4,0x96,0x7d
  1077. };
  1078. static const unsigned char rsa_keygen0_q[] = {
  1079. 0xfe,0xab,0xf2,0x7c,0x16,0x4a,0xf0,0x8d,0x31,0xc6,0x0a,0x82,0xe2,0xae,0xbb,
  1080. 0x03,0x7e,0x7b,0x20,0x4e,0x64,0xb0,0x16,0xad,0x3c,0x01,0x1a,0xd3,0x54,0xbf,
  1081. 0x2b,0xa4,0x02,0x9e,0xc3,0x0d,0x60,0x3d,0x1f,0xb9,0xc0,0x0d,0xe6,0x97,0x68,
  1082. 0xbb,0x8c,0x81,0xd5,0xc1,0x54,0x96,0x0f,0x99,0xf0,0xa8,0xa2,0xf3,0xc6,0x8e,
  1083. 0xec,0xbc,0x31,0x17,0x70,0x98,0x24,0xa3,0x36,0x51,0xa8,0x54,0xc4,0x44,0xdd,
  1084. 0xf7,0x7e,0xda,0x47,0x4a,0x67,0x44,0x5d,0x4e,0x75,0xf0,0x4d,0x00,0x68,0xe1,
  1085. 0x4a,0xec,0x1f,0x45,0xf9,0xe6,0xca,0x38,0x95,0x48,0x6f,0xdc,0x9d,0x1b,0xa3,
  1086. 0x4b,0xfd,0x08,0x4b,0x54,0xcd,0xeb,0x3d,0xef,0x33,0x11,0x6e,0xce,0xe4,0x5d,
  1087. 0xef,0xa9,0x58,0x5c,0x87,0x4d,0xc8,0xcf
  1088. };
  1089. static const unsigned char rsa_keygen0_n[] = {
  1090. 0xce,0x5e,0x8d,0x1a,0xa3,0x08,0x7a,0x2d,0xb4,0x49,0x48,0xf0,0x06,0xb6,0xfe,
  1091. 0xba,0x2f,0x39,0x7c,0x7b,0xe0,0x5d,0x09,0x2d,0x57,0x4e,0x54,0x60,0x9c,0xe5,
  1092. 0x08,0x4b,0xe1,0x1a,0x73,0xc1,0x5e,0x2f,0xb6,0x46,0xd7,0x81,0xca,0xbc,0x98,
  1093. 0xd2,0xf9,0xef,0x1c,0x92,0x8c,0x8d,0x99,0x85,0x28,0x52,0xd6,0xd5,0xab,0x70,
  1094. 0x7e,0x9e,0xa9,0x87,0x82,0xc8,0x95,0x64,0xeb,0xf0,0x6c,0x0f,0x3f,0xe9,0x02,
  1095. 0x29,0x2e,0x6d,0xa1,0xec,0xbf,0xdc,0x23,0xdf,0x82,0x4f,0xab,0x39,0x8d,0xcc,
  1096. 0xac,0x21,0x51,0x14,0xf8,0xef,0xec,0x73,0x80,0x86,0xa3,0xcf,0x8f,0xd5,0xcf,
  1097. 0x22,0x1f,0xcc,0x23,0x2f,0xba,0xcb,0xf6,0x17,0xcd,0x3a,0x1f,0xd9,0x84,0xb9,
  1098. 0x88,0xa7,0x78,0x0f,0xaa,0xc9,0x04,0x01,0x20,0x72,0x5d,0x2a,0xfe,0x5b,0xdd,
  1099. 0x16,0x5a,0xed,0x83,0x02,0x96,0x39,0x46,0x37,0x30,0xc1,0x0d,0x87,0xc2,0xc8,
  1100. 0x33,0x38,0xed,0x35,0x72,0xe5,0x29,0xf8,0x1f,0x23,0x60,0xe1,0x2a,0x5b,0x1d,
  1101. 0x6b,0x53,0x3f,0x07,0xc4,0xd9,0xbb,0x04,0x0c,0x5c,0x3f,0x0b,0xc4,0xd4,0x61,
  1102. 0x96,0x94,0xf1,0x0f,0x4a,0x49,0xac,0xde,0xd2,0xe8,0x42,0xb3,0x4a,0x0b,0x64,
  1103. 0x7a,0x32,0x5f,0x2b,0x5b,0x0f,0x8b,0x8b,0xe0,0x33,0x23,0x34,0x64,0xf8,0xb5,
  1104. 0x7f,0x69,0x60,0xb8,0x71,0xe9,0xff,0x92,0x42,0xb1,0xf7,0x23,0xa8,0xa7,0x92,
  1105. 0x04,0x3d,0x6b,0xff,0xf7,0xab,0xbb,0x14,0x1f,0x4c,0x10,0x97,0xd5,0x6b,0x71,
  1106. 0x12,0xfd,0x93,0xa0,0x4a,0x3b,0x75,0x72,0x40,0x96,0x1c,0x5f,0x40,0x40,0x57,
  1107. 0x13
  1108. };
  1109. static const unsigned char rsa_keygen0_d[] = {
  1110. 0x47,0x47,0x49,0x1d,0x66,0x2a,0x4b,0x68,0xf5,0xd8,0x4a,0x24,0xfd,0x6c,0xbf,
  1111. 0x56,0xb7,0x70,0xf7,0x9a,0x21,0xc8,0x80,0x9e,0xf4,0x84,0xcd,0x88,0x01,0x28,
  1112. 0xea,0x50,0xab,0x13,0x63,0xdf,0xea,0x14,0x38,0xb5,0x07,0x42,0x81,0x2f,0xda,
  1113. 0xe9,0x24,0x02,0x7e,0xaf,0xef,0x74,0x09,0x0e,0x80,0xfa,0xfb,0xd1,0x19,0x41,
  1114. 0xe5,0xba,0x0f,0x7c,0x0a,0xa4,0x15,0x55,0xa2,0x58,0x8c,0x3a,0x48,0x2c,0xc6,
  1115. 0xde,0x4a,0x76,0xfb,0x72,0xb6,0x61,0xe6,0xd2,0x10,0x44,0x4c,0x33,0xb8,0xd2,
  1116. 0x74,0xb1,0x9d,0x3b,0xcd,0x2f,0xb1,0x4f,0xc3,0x98,0xbd,0x83,0xb7,0x7e,0x75,
  1117. 0xe8,0xa7,0x6a,0xee,0xcc,0x51,0x8c,0x99,0x17,0x67,0x7f,0x27,0xf9,0x0d,0x6a,
  1118. 0xb7,0xd4,0x80,0x17,0x89,0x39,0x9c,0xf3,0xd7,0x0f,0xdf,0xb0,0x55,0x80,0x1d,
  1119. 0xaf,0x57,0x2e,0xd0,0xf0,0x4f,0x42,0x69,0x55,0xbc,0x83,0xd6,0x97,0x83,0x7a,
  1120. 0xe6,0xc6,0x30,0x6d,0x3d,0xb5,0x21,0xa7,0xc4,0x62,0x0a,0x20,0xce,0x5e,0x5a,
  1121. 0x17,0x98,0xb3,0x6f,0x6b,0x9a,0xeb,0x6b,0xa3,0xc4,0x75,0xd8,0x2b,0xdc,0x5c,
  1122. 0x6f,0xec,0x5d,0x49,0xac,0xa8,0xa4,0x2f,0xb8,0x8c,0x4f,0x2e,0x46,0x21,0xee,
  1123. 0x72,0x6a,0x0e,0x22,0x80,0x71,0xc8,0x76,0x40,0x44,0x61,0x16,0xbf,0xa5,0xf8,
  1124. 0x89,0xc7,0xe9,0x87,0xdf,0xbd,0x2e,0x4b,0x4e,0xc2,0x97,0x53,0xe9,0x49,0x1c,
  1125. 0x05,0xb0,0x0b,0x9b,0x9f,0x21,0x19,0x41,0xe9,0xf5,0x61,0xd7,0x33,0x2e,0x2c,
  1126. 0x94,0xb8,0xa8,0x9a,0x3a,0xcc,0x6a,0x24,0x8d,0x19,0x13,0xee,0xb9,0xb0,0x48,
  1127. 0x61
  1128. };
  1129. static const struct rsa_keygen_st rsa_keygen_data[] = {
  1130. {
  1131. 2048,
  1132. ITM(rsa_keygen0_e),
  1133. ITM(rsa_keygen0_xp1),
  1134. ITM(rsa_keygen0_xp2),
  1135. ITM(rsa_keygen0_xp),
  1136. ITM(rsa_keygen0_xq1),
  1137. ITM(rsa_keygen0_xq2),
  1138. ITM(rsa_keygen0_xq),
  1139. ITM(rsa_keygen0_p1),
  1140. ITM(rsa_keygen0_p2),
  1141. ITM(rsa_keygen0_q1),
  1142. ITM(rsa_keygen0_q2),
  1143. ITM(rsa_keygen0_p),
  1144. ITM(rsa_keygen0_q),
  1145. ITM(rsa_keygen0_n),
  1146. ITM(rsa_keygen0_d),
  1147. },
  1148. };
  1149. #define NO_PSS_SALT_LEN -1
  1150. struct rsa_siggen_st {
  1151. const char *sig_pad_mode;
  1152. size_t mod;
  1153. const char *digest_alg;
  1154. const unsigned char *msg;
  1155. size_t msg_len;
  1156. int pss_salt_len;
  1157. };
  1158. static const unsigned char rsa_siggen0_msg[] = {
  1159. 0xa3, 0x76, 0x35, 0xc2, 0x6d, 0x6b, 0xa0, 0xe1,
  1160. 0x2e, 0x0b, 0x58, 0x33, 0x0d, 0x30, 0xdd, 0x07,
  1161. 0xa9, 0x53, 0xd6, 0x37, 0x07, 0xad, 0xa8, 0x67,
  1162. };
  1163. static const struct rsa_siggen_st rsa_siggen_data[] = {
  1164. {
  1165. "pkcs1", /* pkcs1v1.5 */
  1166. 2048,
  1167. "SHA384",
  1168. ITM(rsa_siggen0_msg),
  1169. NO_PSS_SALT_LEN,
  1170. },
  1171. {
  1172. "x931",
  1173. 2048,
  1174. "SHA384",
  1175. ITM(rsa_siggen0_msg),
  1176. NO_PSS_SALT_LEN,
  1177. },
  1178. {
  1179. "pss",
  1180. 2048,
  1181. "SHA384",
  1182. ITM(rsa_siggen0_msg),
  1183. 62
  1184. },
  1185. };
  1186. struct rsa_sigver_st {
  1187. const char *sig_pad_mode;
  1188. size_t mod;
  1189. const char *digest_alg;
  1190. const unsigned char *msg;
  1191. size_t msg_len;
  1192. const unsigned char *n;
  1193. size_t n_len;
  1194. const unsigned char *e;
  1195. size_t e_len;
  1196. const unsigned char *sig;
  1197. size_t sig_len;
  1198. int pss_salt_len;
  1199. int pass;
  1200. };
  1201. static const unsigned char rsa_sigver15_0_n[] = {
  1202. 0xbb, 0xbc, 0xf3, 0x35, 0x6f, 0x8e, 0x2e, 0x4f,
  1203. 0x32, 0xb5, 0xbb, 0x47, 0x9d, 0x02, 0x2a, 0xac,
  1204. 0x93, 0x9e, 0x70, 0x50, 0x0f, 0x59, 0x0d, 0x38,
  1205. 0x1c, 0xe5, 0xda, 0x87, 0x61, 0x6b, 0xbf, 0xa8,
  1206. 0x2c, 0x2f, 0x97, 0xbc, 0x4b, 0xd4, 0xae, 0x21,
  1207. 0xed, 0xbe, 0x7a, 0x98, 0x15, 0xa8, 0xe2, 0xf0,
  1208. 0x5f, 0x4d, 0xf8, 0xe2, 0x7c, 0x7e, 0x87, 0x52,
  1209. 0x8e, 0xbf, 0xb6, 0x3f, 0x1a, 0x12, 0x96, 0x87,
  1210. 0x2c, 0xd2, 0xac, 0x85, 0x87, 0xe5, 0xcd, 0x4c,
  1211. 0x31, 0x2b, 0x98, 0x16, 0x9f, 0xcf, 0x3e, 0xef,
  1212. 0x50, 0xaa, 0xee, 0xc0, 0x6c, 0x80, 0x94, 0xc5,
  1213. 0xb1, 0xc7, 0x0d, 0xd4, 0x24, 0x94, 0x44, 0x3a,
  1214. 0x44, 0xdb, 0x10, 0xdc, 0x21, 0x57, 0xe0, 0x77,
  1215. 0xe5, 0x9c, 0xc4, 0x49, 0x06, 0xe3, 0x5a, 0xea,
  1216. 0x64, 0xf4, 0x54, 0xca, 0xfc, 0x5a, 0x2b, 0x92,
  1217. 0x76, 0xe1, 0x86, 0x6f, 0x3b, 0x4e, 0x7d, 0xe7,
  1218. 0xb9, 0x62, 0xc4, 0x63, 0x12, 0x65, 0x16, 0x58,
  1219. 0x11, 0x23, 0xba, 0x1b, 0x95, 0x06, 0x1c, 0xdd,
  1220. 0xdc, 0x49, 0x0b, 0x67, 0x7c, 0xb0, 0xdb, 0x45,
  1221. 0x88, 0x6e, 0x42, 0xdd, 0x67, 0xbf, 0xec, 0x0e,
  1222. 0xfa, 0x64, 0x06, 0x3e, 0xb9, 0x40, 0xee, 0xc6,
  1223. 0x56, 0xdf, 0xe7, 0xd8, 0xed, 0xf1, 0xf7, 0x53,
  1224. 0xec, 0xd6, 0x1e, 0xb1, 0x66, 0x66, 0x80, 0x16,
  1225. 0x5b, 0xba, 0x8c, 0x75, 0xe2, 0x6c, 0x19, 0xe7,
  1226. 0xf9, 0xc8, 0xae, 0x75, 0xc9, 0xc4, 0x19, 0xe6,
  1227. 0xba, 0xfd, 0x3e, 0x12, 0xf0, 0x88, 0x90, 0xee,
  1228. 0x39, 0xf8, 0x85, 0x3c, 0x20, 0x3b, 0xfe, 0xb9,
  1229. 0xa0, 0x07, 0x93, 0x6d, 0x20, 0x78, 0xf2, 0xc2,
  1230. 0xa5, 0x49, 0x51, 0xa3, 0xb7, 0x13, 0x83, 0xeb,
  1231. 0x19, 0x55, 0x08, 0x4f, 0x28, 0x32, 0x1a, 0x9b,
  1232. 0xab, 0x05, 0x9a, 0xaa, 0x28, 0xdc, 0xfa, 0xbf,
  1233. 0xf3, 0x52, 0x40, 0x0c, 0x4a, 0xb3, 0xd6, 0xb5,
  1234. };
  1235. static const unsigned char rsa_sigver15_0_e[] = {
  1236. 0x01, 0x00, 0x01,
  1237. };
  1238. static const unsigned char rsa_sigver15_0_msg[] = {
  1239. 0xba, 0x1a, 0x03, 0xda, 0x95, 0xd4, 0x36, 0x60,
  1240. 0xe6, 0x77, 0xc7, 0x80, 0x49, 0x42, 0xc7, 0x98,
  1241. 0xf6, 0x9e, 0xcf, 0x6f, 0xe5, 0xaf, 0x41, 0x6c,
  1242. 0x36, 0x29, 0xd0, 0x06, 0xcf, 0x65, 0x43, 0x7c,
  1243. 0x47, 0xb4, 0x75, 0xc6, 0x03, 0xf3, 0xa1, 0xcb,
  1244. 0x9e, 0x5f, 0xdc, 0xd4, 0x8e, 0xab, 0xe3, 0x41,
  1245. 0x05, 0x50, 0x17, 0x7b, 0x16, 0x25, 0xc6, 0x29,
  1246. 0x19, 0x2f, 0xac, 0xa7, 0x50, 0xba, 0xba, 0xb3,
  1247. 0xcb, 0xa8, 0x16, 0x6a, 0x88, 0x0a, 0x62, 0x74,
  1248. 0xdf, 0xed, 0x41, 0x7b, 0x1d, 0x76, 0x17, 0xe1,
  1249. 0x70, 0x32, 0x11, 0xb2, 0x03, 0xa7, 0x66, 0xd7,
  1250. 0x69, 0x2f, 0xdc, 0x8d, 0x3f, 0x06, 0x8d, 0x16,
  1251. 0x0d, 0xa1, 0xeb, 0xae, 0x6e, 0x41, 0x02, 0xc1,
  1252. 0x71, 0xc9, 0xfd, 0x5b, 0x3e, 0xcc, 0xec, 0xe0,
  1253. 0xfd, 0xeb, 0xc4, 0xfd, 0xf3, 0x5e, 0xa7, 0xde,
  1254. 0xee, 0xd0, 0x66, 0xa2, 0xe4, 0x70, 0x45, 0x0c,
  1255. };
  1256. static const unsigned char rsa_sigver15_0_sig[] = {
  1257. 0x4a, 0x8a, 0xcb, 0x88, 0x89, 0xd3, 0xa9, 0x48,
  1258. 0x84, 0x09, 0x2e, 0x2c, 0x50, 0x02, 0xb9, 0xad,
  1259. 0xe5, 0x10, 0xac, 0x27, 0x8f, 0x2d, 0x36, 0x7e,
  1260. 0x6e, 0x32, 0x5c, 0x1d, 0xcb, 0xfa, 0xb8, 0xc7,
  1261. 0x1a, 0x27, 0x11, 0x2b, 0x34, 0xf4, 0xa9, 0xda,
  1262. 0xa0, 0x99, 0x86, 0xbe, 0x81, 0xd0, 0xd9, 0x2a,
  1263. 0x88, 0x25, 0x99, 0xb3, 0x02, 0x50, 0xf1, 0xa5,
  1264. 0x4f, 0x3a, 0x1d, 0x7f, 0xcf, 0x7d, 0x76, 0x00,
  1265. 0x06, 0x87, 0x9f, 0x39, 0x3a, 0x3c, 0xc0, 0xc6,
  1266. 0x46, 0x7a, 0x65, 0x0d, 0x85, 0x06, 0xd8, 0x51,
  1267. 0xbe, 0xc5, 0x00, 0x80, 0xeb, 0x73, 0xbb, 0x71,
  1268. 0x8c, 0xcc, 0x72, 0x83, 0x1f, 0x9d, 0x73, 0x75,
  1269. 0xb8, 0xc8, 0x4c, 0x07, 0x5b, 0xda, 0x8c, 0x9b,
  1270. 0x6f, 0x65, 0x8c, 0x2e, 0x23, 0x62, 0x6c, 0x8d,
  1271. 0x94, 0x54, 0x5b, 0x7f, 0xe6, 0x5c, 0x90, 0xa3,
  1272. 0x07, 0xe2, 0x14, 0x4d, 0xe7, 0x71, 0x6c, 0xfd,
  1273. 0x64, 0x12, 0x14, 0x12, 0x14, 0x00, 0x1b, 0xc4,
  1274. 0x65, 0xe7, 0x28, 0x5c, 0x34, 0x2d, 0xda, 0x94,
  1275. 0xfd, 0x71, 0xcb, 0x27, 0xa6, 0x0e, 0x63, 0xd4,
  1276. 0xd6, 0x14, 0x65, 0xc0, 0xe3, 0x65, 0x94, 0x61,
  1277. 0x59, 0xb8, 0xc9, 0x3b, 0x9b, 0xc2, 0x82, 0xe2,
  1278. 0x76, 0xe7, 0x17, 0xf1, 0xef, 0x32, 0x9e, 0x8a,
  1279. 0x04, 0xf3, 0x1e, 0xcc, 0x16, 0xb4, 0x45, 0x0e,
  1280. 0x77, 0xdb, 0x8b, 0x38, 0x6c, 0xcc, 0x98, 0xf4,
  1281. 0xf8, 0xb5, 0x45, 0x2c, 0xde, 0x23, 0x36, 0xe7,
  1282. 0x83, 0xf0, 0xb4, 0xb5, 0xe3, 0xd3, 0xd4, 0x59,
  1283. 0xf1, 0x46, 0x7f, 0x0f, 0x55, 0x58, 0xff, 0x75,
  1284. 0xc7, 0x7f, 0xee, 0xf8, 0xe0, 0xb2, 0x52, 0xd8,
  1285. 0xba, 0x37, 0x4f, 0x7b, 0xba, 0xa3, 0xf0, 0x13,
  1286. 0xa7, 0x3a, 0x21, 0xac, 0xdc, 0x9e, 0x63, 0x36,
  1287. 0x38, 0xe7, 0x90, 0xeb, 0xea, 0x7f, 0x83, 0xf4,
  1288. 0x9d, 0xf3, 0x6b, 0x31, 0x44, 0x47, 0x27, 0x8e,
  1289. };
  1290. #define rsa_sigver15_1_n rsa_sigver15_0_n
  1291. #define rsa_sigver15_1_e rsa_sigver15_0_e
  1292. static const unsigned char rsa_sigver15_1_msg[] = {
  1293. 0x52, 0x68, 0x35, 0xd6, 0x4a, 0x95, 0xaa, 0xbd,
  1294. 0x02, 0x69, 0x7f, 0x92, 0xc7, 0x8c, 0x04, 0x71,
  1295. 0x17, 0x10, 0x5a, 0x0d, 0xab, 0x5e, 0x91, 0x45,
  1296. 0xb5, 0x70, 0x0d, 0xf8, 0x66, 0x41, 0x2e, 0x19,
  1297. 0xb3, 0x82, 0x30, 0x06, 0x59, 0x8f, 0x4f, 0x15,
  1298. 0x1e, 0xa1, 0x2f, 0x70, 0x5a, 0x45, 0x7c, 0x24,
  1299. 0xb7, 0x0d, 0xcd, 0x74, 0x35, 0x85, 0xcf, 0x73,
  1300. 0x71, 0x68, 0x9f, 0xd2, 0x26, 0x14, 0x77, 0xf6,
  1301. 0xf4, 0x3c, 0x8d, 0x4d, 0x60, 0xdd, 0x38, 0xe3,
  1302. 0x1d, 0x73, 0x55, 0x30, 0x8a, 0x6c, 0xe9, 0x35,
  1303. 0x7b, 0xdd, 0x08, 0xc7, 0x3c, 0x74, 0xf5, 0x2a,
  1304. 0xd3, 0xae, 0x8a, 0xe1, 0x86, 0x49, 0xda, 0xc5,
  1305. 0x9d, 0xfd, 0x16, 0x55, 0x69, 0x67, 0xad, 0x4d,
  1306. 0x85, 0x46, 0xb7, 0x7a, 0x5c, 0xe9, 0x94, 0xcc,
  1307. 0xeb, 0xe8, 0xd0, 0xad, 0xc9, 0x13, 0x4a, 0x91,
  1308. 0x64, 0xa8, 0x96, 0xce, 0x8d, 0xc9, 0x9f, 0xaf,
  1309. };
  1310. static const unsigned char rsa_sigver15_1_sig[] = {
  1311. 0x81, 0x96, 0xdb, 0x65, 0x66, 0x5d, 0xec, 0x14,
  1312. 0xb3, 0x42, 0xf6, 0x93, 0x89, 0xae, 0x49, 0x81,
  1313. 0x98, 0xda, 0x71, 0x6d, 0x72, 0x9b, 0xcb, 0x39,
  1314. 0xe4, 0x85, 0xd1, 0x9f, 0xbe, 0xb8, 0x69, 0x0e,
  1315. 0xbe, 0xc0, 0x07, 0x88, 0xee, 0xbf, 0xf9, 0x5d,
  1316. 0x20, 0x0f, 0x90, 0x48, 0x93, 0x53, 0xbb, 0xc6,
  1317. 0x2f, 0xf8, 0xb7, 0x1d, 0xd2, 0x15, 0x0f, 0x1f,
  1318. 0x25, 0xab, 0x5b, 0xae, 0x52, 0xe6, 0x8e, 0x06,
  1319. 0x43, 0xe1, 0xd9, 0x4a, 0x4c, 0xee, 0x24, 0x0e,
  1320. 0xeb, 0x4f, 0x9b, 0x1a, 0xcb, 0x6d, 0x22, 0x93,
  1321. 0xa8, 0xa8, 0xcd, 0x4b, 0xa2, 0xf6, 0x88, 0x1a,
  1322. 0xaf, 0x3b, 0x2b, 0xdf, 0x04, 0x2d, 0x2b, 0x27,
  1323. 0x54, 0x90, 0x41, 0xb0, 0x4a, 0xda, 0xb1, 0xdf,
  1324. 0xce, 0x39, 0xda, 0xd7, 0xda, 0x00, 0x97, 0x89,
  1325. 0x9a, 0xaf, 0x4c, 0xc3, 0x0b, 0x6d, 0xb3, 0xce,
  1326. 0x59, 0x0b, 0xd9, 0x91, 0x17, 0x31, 0x6a, 0xe7,
  1327. 0x92, 0xec, 0x62, 0xe1, 0xe9, 0x73, 0xc7, 0x14,
  1328. 0x06, 0x16, 0x42, 0x8a, 0x68, 0xb1, 0x7c, 0xb8,
  1329. 0xa1, 0x45, 0xf0, 0x06, 0xf6, 0x85, 0xb5, 0x93,
  1330. 0xf1, 0x45, 0xc4, 0xe5, 0xf1, 0x76, 0x71, 0xb4,
  1331. 0xdc, 0x03, 0x55, 0xde, 0xb1, 0xd3, 0x5a, 0x0f,
  1332. 0x1f, 0x4f, 0xdd, 0xaa, 0x87, 0x8e, 0x46, 0x4d,
  1333. 0xe3, 0xd0, 0x5b, 0x28, 0x01, 0xc4, 0x94, 0xf7,
  1334. 0x00, 0x93, 0xae, 0xa3, 0xb5, 0x64, 0x65, 0xa1,
  1335. 0x16, 0x29, 0x2e, 0xc7, 0xbb, 0xeb, 0x71, 0x02,
  1336. 0xf9, 0x26, 0xb6, 0xa6, 0x24, 0xdc, 0x6a, 0x0e,
  1337. 0x0d, 0xad, 0x50, 0xf5, 0x4b, 0xe7, 0x0e, 0x9a,
  1338. 0x39, 0x20, 0x70, 0xe2, 0xdf, 0x3b, 0x6f, 0x9d,
  1339. 0xe3, 0x8f, 0x15, 0x6d, 0x5a, 0xaf, 0x12, 0xf7,
  1340. 0xf7, 0x85, 0x6f, 0x0e, 0xe4, 0x6e, 0x27, 0xf7,
  1341. 0xb3, 0x44, 0x38, 0x73, 0x45, 0x80, 0x7a, 0x72,
  1342. 0x82, 0xf3, 0xc8, 0x32, 0xb8, 0x25, 0xef, 0xdc,
  1343. };
  1344. static const unsigned char rsa_sigverpss_0_n[] = {
  1345. 0xb2, 0xee, 0xdd, 0xdf, 0xa0, 0x35, 0x92, 0x21,
  1346. 0xf4, 0x8e, 0xc3, 0x24, 0x39, 0xed, 0xe2, 0x38,
  1347. 0xc0, 0xaa, 0xff, 0x35, 0x75, 0x27, 0x05, 0xd4,
  1348. 0x84, 0x78, 0x23, 0x50, 0xa5, 0x64, 0x1e, 0x11,
  1349. 0x45, 0x2a, 0xb1, 0xeb, 0x97, 0x07, 0x0b, 0xff,
  1350. 0xb3, 0x1f, 0xc4, 0xa4, 0x80, 0xae, 0x1c, 0x8c,
  1351. 0x66, 0x71, 0x95, 0x80, 0x60, 0xea, 0x4d, 0xde,
  1352. 0x90, 0x98, 0xe8, 0xe2, 0x96, 0xa7, 0x0e, 0x5f,
  1353. 0x00, 0x74, 0xed, 0x79, 0xc3, 0xe2, 0xc2, 0x4e,
  1354. 0xbe, 0x07, 0xbd, 0xb1, 0xb2, 0xeb, 0x6c, 0x29,
  1355. 0x9a, 0x59, 0x29, 0x81, 0xa3, 0x83, 0xa3, 0x00,
  1356. 0x24, 0xa8, 0xfd, 0x45, 0xbb, 0xca, 0x1e, 0x44,
  1357. 0x47, 0xbb, 0x82, 0x4a, 0x5b, 0x71, 0x46, 0xc0,
  1358. 0xb4, 0xcc, 0x1b, 0x5e, 0x88, 0x9c, 0x89, 0x69,
  1359. 0xb4, 0xb0, 0x7c, 0x8e, 0xea, 0x24, 0xc0, 0x2f,
  1360. 0xc8, 0x3f, 0x9d, 0x9f, 0x43, 0xd3, 0xf0, 0x25,
  1361. 0x67, 0xf1, 0xf0, 0x9b, 0xd4, 0xff, 0x17, 0x9f,
  1362. 0xc3, 0x41, 0x2f, 0x53, 0x33, 0xdd, 0x73, 0x8a,
  1363. 0x5c, 0x74, 0x04, 0x3b, 0x60, 0xcc, 0x9f, 0xca,
  1364. 0x01, 0xb0, 0x0d, 0xe0, 0xcf, 0xb2, 0xf0, 0x08,
  1365. 0x73, 0xb6, 0x67, 0x6c, 0x54, 0x9e, 0x1c, 0x01,
  1366. 0xb5, 0x34, 0xab, 0xcf, 0x77, 0xfe, 0x04, 0x01,
  1367. 0xc1, 0xd2, 0x4d, 0x47, 0x60, 0x5c, 0x68, 0x47,
  1368. 0x8a, 0x47, 0x3c, 0x3a, 0xa3, 0xb2, 0x75, 0x87,
  1369. 0x6e, 0x01, 0x7b, 0xdb, 0xe9, 0x6e, 0x63, 0xb2,
  1370. 0x65, 0xab, 0xc6, 0xed, 0x0d, 0xa6, 0x84, 0xff,
  1371. 0xf3, 0xcf, 0xd3, 0x9a, 0x96, 0x9b, 0x5c, 0x22,
  1372. 0xf8, 0x07, 0x7d, 0x63, 0x75, 0x50, 0x91, 0x5b,
  1373. 0xc4, 0x1f, 0x29, 0x1f, 0x5d, 0xb0, 0x6e, 0xfa,
  1374. 0x9b, 0x16, 0xf0, 0xe4, 0xda, 0x2c, 0x94, 0x20,
  1375. 0x9b, 0x44, 0x51, 0x38, 0xd0, 0xe4, 0x86, 0xc9,
  1376. 0x76, 0x12, 0x04, 0x1a, 0x25, 0x14, 0xb7, 0x14,
  1377. 0xdb, 0x6e, 0xd2, 0xc3, 0x57, 0x2c, 0x4c, 0xec,
  1378. 0xfe, 0x25, 0xed, 0x3e, 0xe3, 0x26, 0xa8, 0xd4,
  1379. 0xd0, 0x21, 0xbc, 0x09, 0x7e, 0xb0, 0x02, 0x3c,
  1380. 0xa3, 0x43, 0xa4, 0x1f, 0x73, 0x54, 0x5f, 0xa3,
  1381. 0xe2, 0x49, 0x4e, 0x25, 0xe8, 0xfc, 0xfb, 0xa9,
  1382. 0x29, 0xc0, 0x7d, 0xd0, 0x06, 0xd5, 0x5c, 0x52,
  1383. 0x68, 0x3c, 0xf8, 0xc5, 0xdb, 0x92, 0x27, 0x7c,
  1384. 0xd8, 0x56, 0x1a, 0x7d, 0xe3, 0x32, 0xe5, 0x08,
  1385. 0xc9, 0x36, 0x9d, 0x7e, 0xd2, 0x2d, 0xc2, 0x53,
  1386. 0xf2, 0x7e, 0xce, 0x8a, 0x10, 0x5c, 0xf7, 0xe9,
  1387. 0x99, 0xa6, 0xa8, 0xf5, 0x8d, 0x6c, 0xed, 0xf3,
  1388. 0xa1, 0xc8, 0x2a, 0x75, 0x77, 0x99, 0x18, 0xe1,
  1389. 0x32, 0xdb, 0x35, 0x4a, 0x8b, 0x4a, 0xec, 0xc2,
  1390. 0x15, 0xe9, 0x4b, 0x89, 0x13, 0x81, 0xfb, 0x0c,
  1391. 0xf9, 0xb4, 0xd8, 0xee, 0xb5, 0xba, 0x45, 0xa1,
  1392. 0xea, 0x01, 0xf9, 0xbb, 0xd5, 0xa1, 0x73, 0xa1,
  1393. 0x5b, 0xef, 0x98, 0xa8, 0xcf, 0x74, 0xf4, 0xd5,
  1394. 0x1a, 0xe2, 0xa7, 0xb9, 0x37, 0x43, 0xb1, 0x29,
  1395. 0x94, 0xc3, 0x71, 0x74, 0x34, 0x7d, 0x6f, 0xac,
  1396. 0x97, 0xb3, 0x5b, 0x3a, 0x0a, 0x3c, 0xe2, 0x94,
  1397. 0x6c, 0x39, 0xb8, 0xe9, 0x2c, 0xf9, 0xc3, 0x8b,
  1398. 0xd1, 0x80, 0x4d, 0x22, 0x64, 0x63, 0x20, 0x1b,
  1399. 0xeb, 0xf9, 0x09, 0x14, 0x86, 0x6e, 0xf4, 0x6d,
  1400. 0xfc, 0xe5, 0x1b, 0xf7, 0xf2, 0xe0, 0x4d, 0xc8,
  1401. 0xeb, 0x24, 0x35, 0x16, 0x0a, 0x81, 0x9f, 0x9e,
  1402. 0x47, 0xd8, 0xea, 0x85, 0xda, 0x77, 0x6c, 0x3d,
  1403. 0xd4, 0xa9, 0x15, 0xbd, 0xda, 0x5d, 0xf0, 0x72,
  1404. 0x8d, 0xb5, 0x12, 0x72, 0xb1, 0x62, 0xa0, 0xad,
  1405. 0xc8, 0x0e, 0x5b, 0x47, 0x4c, 0x69, 0xf7, 0x07,
  1406. 0xe8, 0xd9, 0x9b, 0xc7, 0x2f, 0xd5, 0x68, 0x1e,
  1407. 0x1c, 0xe0, 0x8f, 0x40, 0x45, 0x5f, 0x08, 0xc8,
  1408. 0x95, 0x57, 0xb7, 0x35, 0x92, 0x97, 0xf9, 0x7d,
  1409. };
  1410. static const unsigned char rsa_sigverpss_0_e[] = {
  1411. 0x01, 0x00, 0x01,
  1412. };
  1413. static const unsigned char rsa_sigverpss_0_msg[] = {
  1414. 0x32, 0x03, 0x0c, 0x2e, 0x06, 0xfc, 0x0f, 0xa5,
  1415. 0x65, 0xcd, 0x0f, 0x88, 0x52, 0x80, 0xc3, 0x43,
  1416. 0xda, 0x01, 0x36, 0x48, 0xf5, 0x76, 0xc8, 0x03,
  1417. 0xae, 0xce, 0x76, 0x0f, 0x83, 0x9d, 0x5c, 0xaa,
  1418. 0x0f, 0x27, 0x78, 0x66, 0xe6, 0xba, 0xb1, 0x22,
  1419. 0xc1, 0x42, 0x18, 0x39, 0xdb, 0x17, 0x6d, 0xf9,
  1420. 0x9a, 0x19, 0xe5, 0x57, 0x72, 0xff, 0x2a, 0xe0,
  1421. 0x07, 0xec, 0xa4, 0xf3, 0x91, 0x43, 0xf7, 0x2e,
  1422. 0x85, 0xbd, 0xcd, 0x26, 0x72, 0xb9, 0xd5, 0x5b,
  1423. 0x28, 0xd3, 0x0c, 0x6b, 0x20, 0xb7, 0x3b, 0x85,
  1424. 0x18, 0x38, 0xc0, 0x21, 0xfe, 0x9c, 0x92, 0xee,
  1425. 0x0f, 0x3a, 0x80, 0x0c, 0x40, 0x48, 0xb9, 0x7c,
  1426. 0xdd, 0xee, 0x91, 0xd5, 0x70, 0x9e, 0x82, 0x38,
  1427. 0xe4, 0xa8, 0x71, 0x85, 0xea, 0x09, 0x33, 0xcf,
  1428. 0x9c, 0x84, 0x50, 0x0e, 0x60, 0xf5, 0x07, 0x14,
  1429. 0x10, 0xe1, 0x92, 0xc3, 0x58, 0x51, 0xab, 0x7c,
  1430. };
  1431. static const unsigned char rsa_sigverpss_0_sig[] = {
  1432. 0x43, 0xb2, 0x4a, 0x50, 0xa7, 0xe2, 0x6c, 0x5d,
  1433. 0x50, 0xc5, 0x39, 0xc1, 0xc1, 0x35, 0xbd, 0x66,
  1434. 0xbd, 0x86, 0x54, 0xc5, 0x2e, 0x65, 0xfc, 0x19,
  1435. 0x19, 0x6a, 0x22, 0x43, 0x22, 0x11, 0x26, 0xae,
  1436. 0x51, 0x78, 0xfa, 0xfa, 0xc1, 0xf0, 0x77, 0x1b,
  1437. 0xd6, 0x5b, 0x93, 0xbd, 0x84, 0xe4, 0x35, 0xbd,
  1438. 0x8d, 0x91, 0xb2, 0x7c, 0xb2, 0xb1, 0xda, 0xd7,
  1439. 0x72, 0x62, 0x88, 0x3e, 0xe9, 0x40, 0x27, 0x4e,
  1440. 0xa5, 0x17, 0x94, 0xf1, 0xe9, 0xdd, 0x8c, 0x6c,
  1441. 0x5b, 0xc0, 0x0b, 0xe3, 0x7c, 0x8b, 0xc8, 0x10,
  1442. 0x57, 0x35, 0x69, 0xb7, 0x56, 0xe0, 0x2f, 0x61,
  1443. 0x2e, 0x13, 0x11, 0x79, 0xfa, 0x60, 0x8f, 0x2a,
  1444. 0x65, 0x73, 0xf5, 0x17, 0x34, 0x74, 0x72, 0x22,
  1445. 0xff, 0x22, 0x5b, 0x97, 0x59, 0x44, 0xf4, 0xfb,
  1446. 0x4a, 0x2b, 0x7e, 0x28, 0xe3, 0x79, 0x84, 0x24,
  1447. 0x63, 0xeb, 0xde, 0x63, 0x88, 0xe0, 0xbd, 0x28,
  1448. 0xef, 0x49, 0x6d, 0xd4, 0x2a, 0x87, 0x53, 0xba,
  1449. 0x5f, 0xde, 0xe3, 0xd4, 0xb2, 0xc2, 0x6f, 0x49,
  1450. 0x10, 0xae, 0x5e, 0x15, 0xdd, 0x0f, 0x91, 0xe2,
  1451. 0xeb, 0x1e, 0xc5, 0x36, 0x8e, 0xdf, 0xa6, 0x17,
  1452. 0x25, 0x21, 0x16, 0x06, 0x72, 0x37, 0x77, 0x19,
  1453. 0xe5, 0x88, 0x1b, 0x0b, 0x5b, 0x80, 0x44, 0x8f,
  1454. 0x13, 0xef, 0xbb, 0xfa, 0xf6, 0x4a, 0x11, 0x6a,
  1455. 0x6a, 0x0c, 0xe0, 0x42, 0x6b, 0x7d, 0xfd, 0xad,
  1456. 0xb0, 0x4b, 0xff, 0x3f, 0x20, 0xca, 0x5f, 0x64,
  1457. 0xcc, 0xc9, 0x5b, 0x89, 0xc2, 0x05, 0x33, 0xf9,
  1458. 0xa5, 0x31, 0x55, 0xfb, 0xdc, 0xeb, 0xd1, 0x24,
  1459. 0xbf, 0x17, 0x0f, 0xc8, 0xfd, 0xe9, 0x6a, 0xc1,
  1460. 0xa7, 0x94, 0x36, 0x72, 0x22, 0x29, 0x2c, 0x1c,
  1461. 0xd1, 0x8b, 0x7b, 0x37, 0x42, 0x25, 0x8d, 0xe3,
  1462. 0xcc, 0x06, 0x5f, 0x3c, 0x15, 0xfa, 0x74, 0x8a,
  1463. 0x83, 0xf0, 0xcc, 0xf5, 0x30, 0xd1, 0xa8, 0x88,
  1464. 0x9f, 0x4e, 0x1d, 0xd8, 0xe3, 0x1b, 0xb5, 0xe3,
  1465. 0xdb, 0xce, 0xbc, 0x03, 0xfe, 0xe6, 0xa2, 0xb4,
  1466. 0x94, 0x76, 0xd1, 0xb7, 0xce, 0xae, 0x6a, 0x7c,
  1467. 0xbd, 0x4f, 0xd6, 0xfe, 0x60, 0xd0, 0x78, 0xd4,
  1468. 0x04, 0x3f, 0xe0, 0x17, 0x2a, 0x41, 0x26, 0x5a,
  1469. 0x81, 0x80, 0xcd, 0x40, 0x7c, 0x4f, 0xd6, 0xd6,
  1470. 0x1d, 0x1f, 0x58, 0x59, 0xaf, 0xa8, 0x00, 0x91,
  1471. 0x69, 0xb1, 0xf8, 0x3b, 0xef, 0x59, 0x7e, 0x83,
  1472. 0x4e, 0xca, 0x1d, 0x33, 0x35, 0xb6, 0xa5, 0x9a,
  1473. 0x0e, 0xc5, 0xe5, 0x11, 0xdd, 0x5d, 0xb7, 0x32,
  1474. 0x66, 0x23, 0x63, 0x08, 0xbc, 0x2e, 0x9c, 0x10,
  1475. 0x30, 0xa4, 0x13, 0x38, 0xee, 0xc7, 0x10, 0xf6,
  1476. 0xed, 0xe9, 0xe1, 0xd1, 0x89, 0x8b, 0x94, 0x21,
  1477. 0xde, 0x76, 0x72, 0x90, 0xc4, 0xbc, 0x59, 0x31,
  1478. 0x1b, 0x1b, 0xd7, 0xa0, 0xd0, 0x3d, 0xaa, 0x43,
  1479. 0x66, 0xfa, 0x43, 0x8d, 0xcc, 0x37, 0xdc, 0x60,
  1480. 0x59, 0xaf, 0x02, 0x98, 0xe5, 0xe0, 0x17, 0xd6,
  1481. 0xc3, 0x84, 0xf2, 0xaa, 0x5d, 0x88, 0xa8, 0x78,
  1482. 0xbf, 0xbd, 0x18, 0x34, 0x9f, 0x5c, 0x6d, 0x22,
  1483. 0x0c, 0x77, 0x4f, 0x16, 0xf2, 0x85, 0x88, 0x2e,
  1484. 0x9a, 0x2b, 0x30, 0x1e, 0x17, 0xc8, 0xc7, 0xd4,
  1485. 0x20, 0x93, 0x47, 0x0d, 0x32, 0x7d, 0xcb, 0x77,
  1486. 0x85, 0x82, 0xc3, 0x80, 0x75, 0x10, 0x83, 0x33,
  1487. 0xd5, 0xde, 0x47, 0xd4, 0x22, 0x55, 0x4d, 0xca,
  1488. 0x4f, 0x90, 0xd2, 0x9f, 0x80, 0x58, 0x22, 0x4c,
  1489. 0x5a, 0xaa, 0x53, 0x9e, 0xeb, 0xde, 0x62, 0x8a,
  1490. 0xfb, 0xd7, 0x4b, 0x28, 0xd5, 0xe1, 0x02, 0xf9,
  1491. 0x61, 0x74, 0x42, 0x12, 0x32, 0x5d, 0x1b, 0x10,
  1492. 0x8f, 0x51, 0x8d, 0x7c, 0x59, 0xc5, 0xb7, 0x5a,
  1493. 0x68, 0xe7, 0xdd, 0xb0, 0xc0, 0x22, 0xbc, 0xf1,
  1494. 0x37, 0xcc, 0x63, 0xa2, 0x85, 0xb9, 0x11, 0x91,
  1495. 0x43, 0xb9, 0x7b, 0xfb, 0x4a, 0x21, 0xc9, 0xd5,
  1496. };
  1497. #define rsa_sigverpss_1_n rsa_sigverpss_0_n
  1498. #define rsa_sigverpss_1_e rsa_sigverpss_0_e
  1499. static const unsigned char rsa_sigverpss_1_msg[] = {
  1500. 0x29, 0xdc, 0x70, 0xd8, 0xa5, 0xde, 0x41, 0x1d,
  1501. 0xed, 0x05, 0x16, 0x04, 0x48, 0x05, 0x21, 0x05,
  1502. 0x1c, 0x40, 0x8a, 0xbb, 0x6c, 0x3c, 0x11, 0xf3,
  1503. 0x9f, 0x55, 0xf4, 0x03, 0x83, 0xaf, 0x13, 0x5d,
  1504. 0x91, 0x6f, 0x52, 0x63, 0x73, 0x2b, 0x3f, 0x7d,
  1505. 0xc3, 0x9e, 0xf5, 0x69, 0x16, 0xa1, 0x40, 0xd3,
  1506. 0x39, 0x57, 0x01, 0x26, 0xba, 0xa7, 0xd4, 0xa1,
  1507. 0xaa, 0xef, 0xf1, 0xad, 0xa2, 0xf6, 0x50, 0x6e,
  1508. 0x04, 0x23, 0x11, 0x98, 0x83, 0xed, 0x1a, 0x84,
  1509. 0xe6, 0x93, 0x02, 0x83, 0x08, 0x0d, 0x2e, 0x72,
  1510. 0x24, 0x42, 0x39, 0x8e, 0x4f, 0x7b, 0x99, 0x8a,
  1511. 0x46, 0x18, 0x80, 0xdf, 0x6a, 0x82, 0x01, 0x64,
  1512. 0x09, 0x60, 0x74, 0x1e, 0xdf, 0x0e, 0x1b, 0x59,
  1513. 0xdd, 0x4a, 0x06, 0xf7, 0x29, 0x31, 0x33, 0x09,
  1514. 0x65, 0x6b, 0xfa, 0x9c, 0x34, 0xa2, 0xa8, 0xd5,
  1515. 0xfa, 0x38, 0x6b, 0x41, 0xe4, 0x39, 0x6e, 0x66,
  1516. };
  1517. static const unsigned char rsa_sigverpss_1_sig[] = {
  1518. 0x48, 0x7f, 0x71, 0x82, 0x63, 0x1d, 0xf2, 0xee,
  1519. 0xe8, 0x79, 0xeb, 0x3a, 0xaf, 0x41, 0x8a, 0x7c,
  1520. 0xab, 0x0b, 0xd4, 0x57, 0xb6, 0x62, 0x9f, 0x6f,
  1521. 0xec, 0xc1, 0xd4, 0xef, 0x55, 0x51, 0xd1, 0x0a,
  1522. 0x0e, 0x1d, 0x8a, 0x64, 0x69, 0x08, 0x57, 0xf5,
  1523. 0x04, 0xa8, 0x6c, 0xde, 0x76, 0x4d, 0x81, 0xf4,
  1524. 0x95, 0x7e, 0x95, 0x6d, 0x41, 0x31, 0x2f, 0x9d,
  1525. 0xe7, 0x47, 0x45, 0x45, 0x9f, 0xa8, 0xf8, 0xe3,
  1526. 0x30, 0xa6, 0x41, 0x0f, 0x12, 0x05, 0x6d, 0x2b,
  1527. 0x1a, 0xae, 0xef, 0xd4, 0x6b, 0xc6, 0xf4, 0x61,
  1528. 0xa5, 0x07, 0xfe, 0xe8, 0xd0, 0xfd, 0xa3, 0x93,
  1529. 0x58, 0xb4, 0x22, 0x37, 0x1b, 0x84, 0xcb, 0xef,
  1530. 0xae, 0x24, 0xec, 0x62, 0xe2, 0x7d, 0xf4, 0x09,
  1531. 0x5a, 0xc3, 0x0f, 0x4b, 0x49, 0xb7, 0xe7, 0xb2,
  1532. 0x9b, 0x01, 0x2c, 0x8a, 0x39, 0xdd, 0x10, 0xec,
  1533. 0x30, 0xb9, 0x7e, 0x39, 0x98, 0x94, 0x2a, 0xa4,
  1534. 0xb3, 0x97, 0x7f, 0x85, 0x6e, 0x19, 0x75, 0x9e,
  1535. 0x91, 0x94, 0xaa, 0xb5, 0xb0, 0x1f, 0x72, 0x50,
  1536. 0xb5, 0x6d, 0x7a, 0xff, 0x90, 0xcc, 0x24, 0x80,
  1537. 0x20, 0x23, 0x1c, 0xf3, 0xbd, 0x01, 0xc7, 0x82,
  1538. 0x63, 0x04, 0xcc, 0xbd, 0xfb, 0x41, 0x9a, 0xb8,
  1539. 0xeb, 0x6d, 0x78, 0x02, 0xee, 0x4a, 0x6d, 0xbb,
  1540. 0xf7, 0xb7, 0xcf, 0x91, 0xca, 0x11, 0xf2, 0x62,
  1541. 0xec, 0x18, 0x14, 0xcd, 0x10, 0xd8, 0x60, 0xe5,
  1542. 0x20, 0x86, 0x74, 0x84, 0xd5, 0x35, 0x34, 0x69,
  1543. 0x65, 0x93, 0x31, 0x99, 0xb6, 0x2d, 0x43, 0x23,
  1544. 0x1d, 0x73, 0x55, 0xfa, 0x03, 0x76, 0x22, 0xcc,
  1545. 0x66, 0xbc, 0x20, 0x2f, 0x7f, 0x4f, 0x78, 0xdd,
  1546. 0xd1, 0x1f, 0xb6, 0x79, 0x6b, 0x58, 0x58, 0x57,
  1547. 0x56, 0x87, 0xbc, 0x72, 0x6c, 0x81, 0x0a, 0xe2,
  1548. 0xae, 0xb2, 0x4b, 0x66, 0x5b, 0x65, 0x35, 0x2b,
  1549. 0x89, 0x0b, 0xa8, 0x5c, 0x34, 0xb3, 0x5f, 0xb0,
  1550. 0x21, 0x5d, 0x4c, 0x60, 0x57, 0x73, 0xb6, 0x16,
  1551. 0x94, 0xa7, 0x55, 0x52, 0x2a, 0x87, 0x10, 0xc9,
  1552. 0x7c, 0x86, 0xb9, 0xdd, 0xf5, 0xb9, 0x30, 0xc0,
  1553. 0xe6, 0x2a, 0xc9, 0x08, 0x3a, 0x88, 0xdc, 0x27,
  1554. 0xea, 0x2f, 0xd9, 0x37, 0x06, 0x36, 0xd8, 0xe5,
  1555. 0x66, 0x11, 0x54, 0x72, 0x4c, 0xc8, 0xa2, 0xc1,
  1556. 0xed, 0xf5, 0x17, 0x3b, 0x06, 0x2b, 0x4c, 0xc9,
  1557. 0x49, 0x2b, 0x98, 0x6f, 0xb8, 0x77, 0x96, 0x0c,
  1558. 0x6b, 0x47, 0x81, 0x6c, 0xf3, 0x94, 0x3d, 0x3b,
  1559. 0x24, 0x2d, 0x26, 0x9c, 0x40, 0xc1, 0x1f, 0xa7,
  1560. 0xb2, 0xb4, 0x29, 0xb6, 0x05, 0xe5, 0x6e, 0x3c,
  1561. 0xab, 0xd4, 0xaa, 0x3d, 0x78, 0x63, 0x3e, 0xf2,
  1562. 0x75, 0x0d, 0xc3, 0x46, 0x0e, 0x68, 0xd7, 0x3d,
  1563. 0xb9, 0xcb, 0x9a, 0x0a, 0xce, 0xec, 0x6f, 0x21,
  1564. 0x8c, 0x86, 0xaa, 0xeb, 0x7b, 0x56, 0x41, 0xa6,
  1565. 0x7a, 0xd3, 0x03, 0x02, 0x5c, 0x76, 0x01, 0xf7,
  1566. 0x5d, 0x5e, 0x8e, 0x7d, 0xac, 0x35, 0x84, 0x11,
  1567. 0xc6, 0xbc, 0x9a, 0x53, 0xcc, 0x3b, 0x4f, 0x5b,
  1568. 0x23, 0x79, 0x30, 0x52, 0xc3, 0x73, 0x5d, 0xc8,
  1569. 0xf1, 0xec, 0x2e, 0x0d, 0xda, 0x64, 0x90, 0x50,
  1570. 0x62, 0xcf, 0x18, 0xc5, 0x52, 0x45, 0xe7, 0x38,
  1571. 0x1a, 0xec, 0x01, 0x18, 0xbb, 0x85, 0x97, 0x7f,
  1572. 0x68, 0x2b, 0x6f, 0xfc, 0xcd, 0x08, 0xc8, 0xe2,
  1573. 0xca, 0x7e, 0xa6, 0x4f, 0xca, 0x5d, 0xdd, 0xf8,
  1574. 0xfa, 0x52, 0x1c, 0x91, 0x82, 0x56, 0x07, 0xb2,
  1575. 0x03, 0x3e, 0xa2, 0x8d, 0x60, 0xff, 0x78, 0x05,
  1576. 0x1a, 0xfc, 0x6e, 0x27, 0x80, 0xbd, 0x90, 0x98,
  1577. 0x83, 0x46, 0xba, 0xec, 0xee, 0x89, 0xe3, 0x1b,
  1578. 0xc0, 0xcd, 0x2f, 0x05, 0x37, 0x18, 0xb5, 0xfa,
  1579. 0xc3, 0x91, 0x85, 0x0f, 0xb7, 0x74, 0x1c, 0x64,
  1580. 0xf0, 0xf8, 0x56, 0x35, 0xb8, 0x1d, 0xc3, 0x39,
  1581. 0x5c, 0xea, 0x8a, 0x92, 0x31, 0xd2, 0x11, 0x4b,
  1582. };
  1583. static const unsigned char rsa_sigverx931_0_n[] = {
  1584. 0xa0, 0x16, 0x14, 0x80, 0x8b, 0x17, 0x2b, 0xad,
  1585. 0xd7, 0x07, 0x31, 0x6d, 0xfc, 0xba, 0x25, 0x83,
  1586. 0x09, 0xa0, 0xf7, 0x71, 0xc6, 0x06, 0x22, 0x87,
  1587. 0xd6, 0xbd, 0x13, 0xd9, 0xfe, 0x7c, 0xf7, 0xe6,
  1588. 0x48, 0xdb, 0x27, 0xd8, 0xa5, 0x49, 0x8e, 0x8c,
  1589. 0xea, 0xbe, 0xe0, 0x04, 0x6f, 0x3d, 0x3b, 0x73,
  1590. 0xdc, 0xc5, 0xd4, 0xdc, 0x85, 0xef, 0xea, 0x10,
  1591. 0x46, 0xf3, 0x88, 0xb9, 0x93, 0xbc, 0xa0, 0xb6,
  1592. 0x06, 0x02, 0x82, 0xb4, 0x2d, 0x54, 0xec, 0x79,
  1593. 0x50, 0x8a, 0xfc, 0xfa, 0x62, 0x45, 0xbb, 0xd7,
  1594. 0x26, 0xcd, 0x88, 0xfa, 0xe8, 0x0f, 0x26, 0x5b,
  1595. 0x1f, 0x21, 0x3f, 0x3b, 0x5d, 0x98, 0x3f, 0x02,
  1596. 0x8c, 0xa1, 0xbf, 0xc0, 0x70, 0x4d, 0xd1, 0x41,
  1597. 0xfd, 0xb9, 0x55, 0x12, 0x90, 0xc8, 0x6e, 0x0f,
  1598. 0x19, 0xa8, 0x5c, 0x31, 0xd6, 0x16, 0x0e, 0xdf,
  1599. 0x08, 0x84, 0xcd, 0x4b, 0xfd, 0x28, 0x8d, 0x7d,
  1600. 0x6e, 0xea, 0xc7, 0x95, 0x4a, 0xc3, 0x84, 0x54,
  1601. 0x7f, 0xb0, 0x20, 0x29, 0x96, 0x39, 0x4c, 0x3e,
  1602. 0x85, 0xec, 0x22, 0xdd, 0xb9, 0x14, 0xbb, 0x04,
  1603. 0x2f, 0x4c, 0x0c, 0xe3, 0xfa, 0xae, 0x47, 0x79,
  1604. 0x59, 0x8e, 0x4e, 0x7d, 0x4a, 0x17, 0xae, 0x16,
  1605. 0x38, 0x66, 0x4e, 0xff, 0x45, 0x7f, 0xac, 0x5e,
  1606. 0x75, 0x9f, 0x51, 0x18, 0xe6, 0xad, 0x6b, 0x8b,
  1607. 0x3d, 0x08, 0x4d, 0x9a, 0xd2, 0x11, 0xba, 0xa8,
  1608. 0xc3, 0xb5, 0x17, 0xb5, 0xdf, 0xe7, 0x39, 0x89,
  1609. 0x27, 0x7b, 0xeb, 0xf4, 0xe5, 0x7e, 0xa9, 0x7b,
  1610. 0x39, 0x40, 0x6f, 0xe4, 0x82, 0x14, 0x3d, 0x62,
  1611. 0xb6, 0xd4, 0x43, 0xd0, 0x0a, 0x2f, 0xc1, 0x73,
  1612. 0x3d, 0x99, 0x37, 0xbe, 0x62, 0x13, 0x6a, 0x8b,
  1613. 0xeb, 0xc5, 0x64, 0xd5, 0x2a, 0x8b, 0x4f, 0x7f,
  1614. 0x82, 0x48, 0x69, 0x3e, 0x08, 0x1b, 0xb5, 0x77,
  1615. 0xd3, 0xdc, 0x1b, 0x2c, 0xe5, 0x59, 0xf6, 0x33,
  1616. 0x47, 0xa0, 0x0f, 0xff, 0x8a, 0x6a, 0x1d, 0x66,
  1617. 0x24, 0x67, 0x36, 0x7d, 0x21, 0xda, 0xc1, 0xd4,
  1618. 0x11, 0x6c, 0xe8, 0x5f, 0xd7, 0x8a, 0x53, 0x5c,
  1619. 0xb2, 0xe2, 0xf9, 0x14, 0x29, 0x0f, 0xcf, 0x28,
  1620. 0x32, 0x4f, 0xc6, 0x17, 0xf6, 0xbc, 0x0e, 0xb8,
  1621. 0x99, 0x7c, 0x14, 0xa3, 0x40, 0x3f, 0xf3, 0xe4,
  1622. 0x31, 0xbe, 0x54, 0x64, 0x5a, 0xad, 0x1d, 0xb0,
  1623. 0x37, 0xcc, 0xd9, 0x0b, 0xa4, 0xbc, 0xe0, 0x07,
  1624. 0x37, 0xd1, 0xe1, 0x65, 0xc6, 0x53, 0xfe, 0x60,
  1625. 0x6a, 0x64, 0xa4, 0x01, 0x00, 0xf3, 0x5b, 0x9a,
  1626. 0x28, 0x61, 0xde, 0x7a, 0xd7, 0x0d, 0x56, 0x1e,
  1627. 0x4d, 0xa8, 0x6a, 0xb5, 0xf2, 0x86, 0x2a, 0x4e,
  1628. 0xaa, 0x37, 0x23, 0x5a, 0x3b, 0x69, 0x66, 0x81,
  1629. 0xc8, 0x8e, 0x1b, 0x31, 0x0f, 0x28, 0x31, 0x9a,
  1630. 0x2d, 0xe5, 0x79, 0xcc, 0xa4, 0xca, 0x60, 0x45,
  1631. 0xf7, 0x83, 0x73, 0x5a, 0x01, 0x29, 0xda, 0xf7,
  1632. };
  1633. static const unsigned char rsa_sigverx931_0_e[] = {
  1634. 0x01, 0x00, 0x01,
  1635. };
  1636. static const unsigned char rsa_sigverx931_0_msg[] = {
  1637. 0x82, 0x2e, 0x41, 0x70, 0x9d, 0x1f, 0xe9, 0x47,
  1638. 0xec, 0xf1, 0x79, 0xcc, 0x05, 0xef, 0xdb, 0xcd,
  1639. 0xca, 0x8b, 0x8e, 0x61, 0x45, 0xad, 0xa6, 0xd9,
  1640. 0xd7, 0x4b, 0x15, 0xf4, 0x92, 0x3a, 0x2a, 0x52,
  1641. 0xe3, 0x44, 0x57, 0x2b, 0x74, 0x7a, 0x37, 0x41,
  1642. 0x50, 0xcb, 0xcf, 0x13, 0x49, 0xd6, 0x15, 0x54,
  1643. 0x97, 0xfd, 0xae, 0x9b, 0xc1, 0xbb, 0xfc, 0x5c,
  1644. 0xc1, 0x37, 0x58, 0x17, 0x63, 0x19, 0x9c, 0xcf,
  1645. 0xee, 0x9c, 0xe5, 0xbe, 0x06, 0xe4, 0x97, 0x47,
  1646. 0xd1, 0x93, 0xa1, 0x2c, 0x59, 0x97, 0x02, 0x01,
  1647. 0x31, 0x45, 0x8c, 0xe1, 0x5c, 0xac, 0xe7, 0x5f,
  1648. 0x6a, 0x23, 0xda, 0xbf, 0xe4, 0x25, 0xc6, 0x67,
  1649. 0xea, 0x5f, 0x73, 0x90, 0x1b, 0x06, 0x0f, 0x41,
  1650. 0xb5, 0x6e, 0x74, 0x7e, 0xfd, 0xd9, 0xaa, 0xbd,
  1651. 0xe2, 0x8d, 0xad, 0x99, 0xdd, 0x29, 0x70, 0xca,
  1652. 0x1b, 0x38, 0x21, 0x55, 0xde, 0x07, 0xaf, 0x00,
  1653. };
  1654. static const unsigned char rsa_sigverx931_0_sig[] = {
  1655. 0x29, 0xa9, 0x3a, 0x8e, 0x9e, 0x90, 0x1b, 0xdb,
  1656. 0xaf, 0x0b, 0x47, 0x5b, 0xb5, 0xc3, 0x8c, 0xc3,
  1657. 0x70, 0xbe, 0x73, 0xf9, 0x65, 0x8e, 0xc6, 0x1e,
  1658. 0x95, 0x0b, 0xdb, 0x24, 0x76, 0x79, 0xf1, 0x00,
  1659. 0x71, 0xcd, 0xc5, 0x6a, 0x7b, 0xd2, 0x8b, 0x18,
  1660. 0xc4, 0xdd, 0xf1, 0x2a, 0x31, 0x04, 0x3f, 0xfc,
  1661. 0x36, 0x06, 0x20, 0x71, 0x3d, 0x62, 0xf2, 0xb5,
  1662. 0x79, 0x0a, 0xd5, 0xd2, 0x81, 0xf1, 0xb1, 0x4f,
  1663. 0x9a, 0x17, 0xe8, 0x67, 0x64, 0x48, 0x09, 0x75,
  1664. 0xff, 0x2d, 0xee, 0x36, 0xca, 0xca, 0x1d, 0x74,
  1665. 0x99, 0xbe, 0x5c, 0x94, 0x31, 0xcc, 0x12, 0xf4,
  1666. 0x59, 0x7e, 0x17, 0x00, 0x4f, 0x7b, 0xa4, 0xb1,
  1667. 0xda, 0xdb, 0x3e, 0xa4, 0x34, 0x10, 0x4a, 0x19,
  1668. 0x0a, 0xd2, 0xa7, 0xa0, 0xc5, 0xe6, 0xef, 0x82,
  1669. 0xd4, 0x2e, 0x21, 0xbe, 0x15, 0x73, 0xac, 0xef,
  1670. 0x05, 0xdb, 0x6a, 0x8a, 0x1a, 0xcb, 0x8e, 0xa5,
  1671. 0xee, 0xfb, 0x28, 0xbf, 0x96, 0xa4, 0x2b, 0xd2,
  1672. 0x85, 0x2b, 0x20, 0xc3, 0xaf, 0x9a, 0x32, 0x04,
  1673. 0xa0, 0x49, 0x24, 0x47, 0xd0, 0x09, 0xf7, 0xcf,
  1674. 0x73, 0xb6, 0xf6, 0x70, 0xda, 0x3b, 0xf8, 0x5a,
  1675. 0x28, 0x2e, 0x14, 0x6c, 0x52, 0xbd, 0x2a, 0x7c,
  1676. 0x8e, 0xc1, 0xa8, 0x0e, 0xb1, 0x1e, 0x6b, 0x8d,
  1677. 0x76, 0xea, 0x70, 0x81, 0xa0, 0x02, 0x63, 0x74,
  1678. 0xbc, 0x7e, 0xb9, 0xac, 0x0e, 0x7b, 0x1b, 0x75,
  1679. 0x82, 0xe2, 0x98, 0x4e, 0x24, 0x55, 0xd4, 0xbd,
  1680. 0x14, 0xde, 0x58, 0x56, 0x3a, 0x5d, 0x4e, 0x57,
  1681. 0x0d, 0x54, 0x74, 0xe8, 0x86, 0x8c, 0xcb, 0x07,
  1682. 0x9f, 0x0b, 0xfb, 0xc2, 0x08, 0x5c, 0xd7, 0x05,
  1683. 0x3b, 0xc8, 0xd2, 0x15, 0x68, 0x8f, 0x3d, 0x3c,
  1684. 0x4e, 0x85, 0xa9, 0x25, 0x6f, 0xf5, 0x2e, 0xca,
  1685. 0xca, 0xa8, 0x27, 0x89, 0x61, 0x4e, 0x1f, 0x57,
  1686. 0x2d, 0x99, 0x10, 0x3f, 0xbc, 0x9e, 0x96, 0x5e,
  1687. 0x2f, 0x0a, 0x25, 0xa7, 0x5c, 0xea, 0x65, 0x2a,
  1688. 0x22, 0x35, 0xa3, 0xf9, 0x13, 0x89, 0x05, 0x2e,
  1689. 0x19, 0x73, 0x1d, 0x70, 0x74, 0x98, 0x15, 0x4b,
  1690. 0xab, 0x56, 0x52, 0xe0, 0x01, 0x42, 0x95, 0x6a,
  1691. 0x46, 0x2c, 0x78, 0xff, 0x26, 0xbc, 0x48, 0x10,
  1692. 0x38, 0x25, 0xab, 0x32, 0x7c, 0x79, 0x7c, 0x5d,
  1693. 0x6f, 0x45, 0x54, 0x74, 0x2d, 0x93, 0x56, 0x52,
  1694. 0x11, 0x34, 0x1e, 0xe3, 0x4b, 0x6a, 0x17, 0x4f,
  1695. 0x37, 0x14, 0x75, 0xac, 0xa3, 0xa1, 0xca, 0xda,
  1696. 0x38, 0x06, 0xa9, 0x78, 0xb9, 0x5d, 0xd0, 0x59,
  1697. 0x1b, 0x5d, 0x1e, 0xc2, 0x0b, 0xfb, 0x39, 0x37,
  1698. 0x44, 0x85, 0xb6, 0x36, 0x06, 0x95, 0xbc, 0x15,
  1699. 0x35, 0xb9, 0xe6, 0x27, 0x42, 0xe3, 0xc8, 0xec,
  1700. 0x30, 0x37, 0x20, 0x26, 0x9a, 0x11, 0x61, 0xc0,
  1701. 0xdb, 0xb2, 0x5a, 0x26, 0x78, 0x27, 0xb9, 0x13,
  1702. 0xc9, 0x1a, 0xa7, 0x67, 0x93, 0xe8, 0xbe, 0xcb,
  1703. };
  1704. #define rsa_sigverx931_1_n rsa_sigverx931_0_n
  1705. #define rsa_sigverx931_1_e rsa_sigverx931_0_e
  1706. static const unsigned char rsa_sigverx931_1_msg[] = {
  1707. 0x79, 0x02, 0xb9, 0xd2, 0x3e, 0x84, 0x02, 0xc8,
  1708. 0x2a, 0x94, 0x92, 0x14, 0x8d, 0xd5, 0xd3, 0x8d,
  1709. 0xb2, 0xf6, 0x00, 0x8b, 0x61, 0x2c, 0xd2, 0xf9,
  1710. 0xa8, 0xe0, 0x5d, 0xac, 0xdc, 0xa5, 0x34, 0xf3,
  1711. 0xda, 0x6c, 0xd4, 0x70, 0x92, 0xfb, 0x40, 0x26,
  1712. 0xc7, 0x9b, 0xe8, 0xd2, 0x10, 0x11, 0xcf, 0x7f,
  1713. 0x23, 0xd0, 0xed, 0x55, 0x52, 0x6d, 0xd3, 0xb2,
  1714. 0x56, 0x53, 0x8d, 0x7c, 0x4c, 0xb8, 0xcc, 0xb5,
  1715. 0xfd, 0xd0, 0x45, 0x4f, 0x62, 0x40, 0x54, 0x42,
  1716. 0x68, 0xd5, 0xe5, 0xdd, 0xf0, 0x76, 0x94, 0x59,
  1717. 0x1a, 0x57, 0x13, 0xb4, 0xc3, 0x70, 0xcc, 0xbd,
  1718. 0x4c, 0x2e, 0xc8, 0x6b, 0x9d, 0x68, 0xd0, 0x72,
  1719. 0x6a, 0x94, 0xd2, 0x18, 0xb5, 0x3b, 0x86, 0x45,
  1720. 0x95, 0xaa, 0x50, 0xda, 0x35, 0xeb, 0x69, 0x44,
  1721. 0x1f, 0xf3, 0x3a, 0x51, 0xbb, 0x1d, 0x08, 0x42,
  1722. 0x12, 0xd7, 0xd6, 0x21, 0xd8, 0x9b, 0x87, 0x55,
  1723. };
  1724. static const unsigned char rsa_sigverx931_1_sig[] = {
  1725. 0x3b, 0xba, 0xb3, 0xb1, 0xb2, 0x6a, 0x29, 0xb5,
  1726. 0xf9, 0x94, 0xf1, 0x00, 0x5c, 0x16, 0x67, 0x67,
  1727. 0x73, 0xd3, 0xde, 0x7e, 0x07, 0xfa, 0xaa, 0x95,
  1728. 0xeb, 0x5a, 0x55, 0xdc, 0xb2, 0xa9, 0x70, 0x5a,
  1729. 0xee, 0x8f, 0x8d, 0x69, 0x85, 0x2b, 0x00, 0xe3,
  1730. 0xdc, 0xe2, 0x73, 0x9b, 0x68, 0xeb, 0x93, 0x69,
  1731. 0x08, 0x03, 0x17, 0xd6, 0x50, 0x21, 0x14, 0x23,
  1732. 0x8c, 0xe6, 0x54, 0x3a, 0xd9, 0xfc, 0x8b, 0x14,
  1733. 0x81, 0xb1, 0x8b, 0x9d, 0xd2, 0xbe, 0x58, 0x75,
  1734. 0x94, 0x74, 0x93, 0xc9, 0xbb, 0x4e, 0xf6, 0x1f,
  1735. 0x73, 0x7d, 0x1a, 0x5f, 0xbd, 0xbf, 0x59, 0x37,
  1736. 0x5b, 0x98, 0x54, 0xad, 0x3a, 0xef, 0xa0, 0xef,
  1737. 0xcb, 0xc3, 0xe8, 0x84, 0xd8, 0x3d, 0xf5, 0x60,
  1738. 0xb8, 0xc3, 0x8d, 0x1e, 0x78, 0xa0, 0x91, 0x94,
  1739. 0xb7, 0xd7, 0xb1, 0xd4, 0xe2, 0xee, 0x81, 0x93,
  1740. 0xfc, 0x41, 0xf0, 0x31, 0xbb, 0x03, 0x52, 0xde,
  1741. 0x80, 0x20, 0x3a, 0x68, 0xe6, 0xc5, 0x50, 0x1b,
  1742. 0x08, 0x3f, 0x40, 0xde, 0xb3, 0xe5, 0x81, 0x99,
  1743. 0x7f, 0xdb, 0xb6, 0x5d, 0x61, 0x27, 0xd4, 0xfb,
  1744. 0xcd, 0xc5, 0x7a, 0xea, 0xde, 0x7a, 0x66, 0xef,
  1745. 0x55, 0x3f, 0x85, 0xea, 0x84, 0xc5, 0x0a, 0xf6,
  1746. 0x3c, 0x40, 0x38, 0xf7, 0x6c, 0x66, 0xe5, 0xbe,
  1747. 0x61, 0x41, 0xd3, 0xb1, 0x08, 0xe1, 0xb4, 0xf9,
  1748. 0x6e, 0xf6, 0x0e, 0x4a, 0x72, 0x6c, 0x61, 0x63,
  1749. 0x3e, 0x41, 0x33, 0x94, 0xd6, 0x27, 0xa4, 0xd9,
  1750. 0x3a, 0x20, 0x2b, 0x39, 0xea, 0xe5, 0x82, 0x48,
  1751. 0xd6, 0x5b, 0x58, 0x85, 0x44, 0xb0, 0xd2, 0xfd,
  1752. 0xfb, 0x3e, 0xeb, 0x78, 0xac, 0xbc, 0xba, 0x16,
  1753. 0x92, 0x0e, 0x20, 0xc1, 0xb2, 0xd1, 0x92, 0xa8,
  1754. 0x00, 0x88, 0xc0, 0x41, 0x46, 0x38, 0xb6, 0x54,
  1755. 0x70, 0x0c, 0x00, 0x62, 0x97, 0x6a, 0x8e, 0x66,
  1756. 0x5a, 0xa1, 0x6c, 0xf7, 0x6d, 0xc2, 0x27, 0x56,
  1757. 0x60, 0x5b, 0x0c, 0x52, 0xac, 0x5c, 0xae, 0x99,
  1758. 0x55, 0x11, 0x62, 0x52, 0x09, 0x48, 0x53, 0x90,
  1759. 0x3c, 0x0b, 0xd4, 0xdc, 0x7b, 0xe3, 0x4c, 0xe3,
  1760. 0xa8, 0x6d, 0xc5, 0xdf, 0xc1, 0x5c, 0x59, 0x25,
  1761. 0x99, 0x30, 0xde, 0x57, 0x6a, 0x84, 0x25, 0x34,
  1762. 0x3e, 0x64, 0x11, 0xdb, 0x7a, 0x82, 0x8e, 0x70,
  1763. 0xd2, 0x5c, 0x0e, 0x81, 0xa0, 0x24, 0x53, 0x75,
  1764. 0x98, 0xd6, 0x10, 0x01, 0x6a, 0x14, 0xed, 0xc3,
  1765. 0x6f, 0xc4, 0x18, 0xb8, 0xd2, 0x9f, 0x59, 0x53,
  1766. 0x81, 0x3a, 0x86, 0x31, 0xfc, 0x9e, 0xbf, 0x6c,
  1767. 0x52, 0x93, 0x86, 0x9c, 0xaa, 0x6c, 0x6f, 0x07,
  1768. 0x8a, 0x40, 0x33, 0x64, 0xb2, 0x70, 0x48, 0x85,
  1769. 0x05, 0x59, 0x65, 0x2d, 0x6b, 0x9a, 0xad, 0xab,
  1770. 0x20, 0x7e, 0x02, 0x6d, 0xde, 0xcf, 0x22, 0x0b,
  1771. 0xea, 0x6e, 0xbd, 0x1c, 0x39, 0x3a, 0xfd, 0xa4,
  1772. 0xde, 0x54, 0xae, 0xde, 0x5e, 0xf7, 0xb0, 0x6d,
  1773. };
  1774. static const struct rsa_sigver_st rsa_sigver_data[] = {
  1775. {
  1776. "pkcs1", /* pkcs1v1.5 */
  1777. 2048,
  1778. "SHA224",
  1779. ITM(rsa_sigver15_0_msg),
  1780. ITM(rsa_sigver15_0_n),
  1781. ITM(rsa_sigver15_0_e),
  1782. ITM(rsa_sigver15_0_sig),
  1783. NO_PSS_SALT_LEN,
  1784. PASS
  1785. },
  1786. {
  1787. "pkcs1", /* pkcs1v1.5 */
  1788. 2048,
  1789. "SHA224",
  1790. ITM(rsa_sigver15_1_msg),
  1791. ITM(rsa_sigver15_1_n),
  1792. ITM(rsa_sigver15_1_e),
  1793. ITM(rsa_sigver15_1_sig),
  1794. NO_PSS_SALT_LEN,
  1795. FAIL
  1796. },
  1797. {
  1798. "x931",
  1799. 3072,
  1800. "SHA1",
  1801. ITM(rsa_sigverx931_0_msg),
  1802. ITM(rsa_sigverx931_0_n),
  1803. ITM(rsa_sigverx931_0_e),
  1804. ITM(rsa_sigverx931_0_sig),
  1805. NO_PSS_SALT_LEN,
  1806. PASS
  1807. },
  1808. {
  1809. "x931",
  1810. 3072,
  1811. "SHA256",
  1812. ITM(rsa_sigverx931_1_msg),
  1813. ITM(rsa_sigverx931_1_n),
  1814. ITM(rsa_sigverx931_1_e),
  1815. ITM(rsa_sigverx931_1_sig),
  1816. NO_PSS_SALT_LEN,
  1817. FAIL
  1818. },
  1819. {
  1820. "pss",
  1821. 4096,
  1822. "SHA384",
  1823. ITM(rsa_sigverpss_0_msg),
  1824. ITM(rsa_sigverpss_0_n),
  1825. ITM(rsa_sigverpss_0_e),
  1826. ITM(rsa_sigverpss_0_sig),
  1827. 62,
  1828. PASS
  1829. },
  1830. {
  1831. "pss",
  1832. 4096,
  1833. "SHA384",
  1834. ITM(rsa_sigverpss_1_msg),
  1835. ITM(rsa_sigverpss_1_n),
  1836. ITM(rsa_sigverpss_1_e),
  1837. ITM(rsa_sigverpss_1_sig),
  1838. 62,
  1839. FAIL
  1840. },
  1841. };
  1842. struct rsa_decrypt_prim_st {
  1843. const unsigned char *ct;
  1844. size_t ct_len;
  1845. };
  1846. static const unsigned char rsa_decrypt_prim_0_ct[] = {
  1847. 0x09, 0x7e, 0x82, 0xfe, 0xc7, 0x24, 0x65, 0xe0,
  1848. 0x49, 0x2e, 0x78, 0xed, 0xf4, 0x7d, 0x05, 0x0d,
  1849. 0xff, 0x2f, 0x1a, 0x95, 0xeb, 0x74, 0x60, 0x3d,
  1850. 0xd3, 0x3a, 0xec, 0x8a, 0x2c, 0x8b, 0x00, 0xa5,
  1851. 0x75, 0x2c, 0x87, 0x7b, 0xa5, 0x76, 0x08, 0xee,
  1852. 0x99, 0xab, 0x5b, 0x21, 0x69, 0x90, 0x72, 0x0d,
  1853. 0x55, 0xe4, 0x7d, 0x1d, 0xcb, 0xaa, 0xeb, 0x32,
  1854. 0x24, 0xf7, 0xce, 0x95, 0xb5, 0x3e, 0x0e, 0x57,
  1855. 0xd4, 0x2a, 0x5b, 0xfc, 0x1f, 0xf7, 0x28, 0x3f,
  1856. 0xd6, 0x31, 0x36, 0x92, 0xc5, 0x13, 0xe3, 0x4e,
  1857. 0x28, 0x53, 0xbe, 0x60, 0x5f, 0x82, 0x12, 0x7a,
  1858. 0x50, 0xe6, 0x91, 0x40, 0xcf, 0x52, 0x3a, 0xd2,
  1859. 0x15, 0x20, 0xd5, 0x82, 0x6d, 0x5e, 0xab, 0x47,
  1860. 0xd1, 0x2d, 0x00, 0xf5, 0xea, 0xf4, 0x68, 0x88,
  1861. 0x38, 0x43, 0xd6, 0xcb, 0xaa, 0xd0, 0xd1, 0x75,
  1862. 0xe6, 0x87, 0x5f, 0xd1, 0x89, 0xd3, 0x57, 0x1b,
  1863. 0xf2, 0x45, 0x8a, 0x92, 0xe6, 0x95, 0xb8, 0x99,
  1864. 0x80, 0xe9, 0xe6, 0x5f, 0x2b, 0x48, 0x2b, 0xb3,
  1865. 0x2b, 0x80, 0x56, 0xf8, 0xd4, 0x96, 0x44, 0xb5,
  1866. 0xae, 0x6d, 0x4a, 0x3d, 0x7b, 0x0a, 0x54, 0x3c,
  1867. 0xa8, 0x21, 0x8b, 0x64, 0x96, 0xea, 0xc2, 0xef,
  1868. 0x60, 0xbb, 0xd3, 0x4e, 0xaf, 0x6c, 0x5b, 0x06,
  1869. 0x57, 0xe8, 0x5e, 0x2c, 0x87, 0x46, 0x12, 0xeb,
  1870. 0xfb, 0xe2, 0xdb, 0x7b, 0xac, 0x09, 0x8b, 0xa0,
  1871. 0x98, 0x6e, 0xc6, 0x3f, 0x98, 0xdd, 0x7d, 0xc6,
  1872. 0xc6, 0x32, 0xc2, 0xcc, 0x73, 0xe2, 0x15, 0xde,
  1873. 0xb2, 0x0f, 0x41, 0x08, 0x1e, 0x2e, 0xba, 0x93,
  1874. 0x65, 0x94, 0xab, 0x84, 0x0e, 0x1e, 0xda, 0x1b,
  1875. 0xf0, 0xe0, 0x13, 0x13, 0xe2, 0xa5, 0x31, 0xb8,
  1876. 0x80, 0xc1, 0x38, 0xc5, 0x08, 0x09, 0x0a, 0xe2,
  1877. 0x78, 0x7d, 0xd6, 0xcf, 0x8d, 0x6b, 0xe8, 0x1b,
  1878. 0x47, 0x83, 0x80, 0x71, 0xe2, 0xd3, 0x01, 0xbc,
  1879. };
  1880. static const unsigned char rsa_decrypt_prim_1_ct[] = {
  1881. 0xff, 0xd5, 0xaa, 0x3f, 0x0c, 0x7c, 0x78, 0x7e,
  1882. 0xe3, 0x8a, 0x4f, 0xcc, 0x20, 0x3f, 0x51, 0xe5,
  1883. 0xf4, 0x9c, 0xc5, 0x62, 0xcc, 0xa3, 0xcb, 0xce,
  1884. 0x39, 0x80, 0x35, 0xef, 0xd5, 0x95, 0x56, 0xcb,
  1885. 0xb2, 0x62, 0x8c, 0xe6, 0x8b, 0x20, 0xe4, 0x36,
  1886. 0xae, 0xe8, 0x07, 0x07, 0xc2, 0x23, 0x6a, 0xfc,
  1887. 0x83, 0xf0, 0x04, 0x88, 0x19, 0xf8, 0x9f, 0x5c,
  1888. 0x59, 0x4d, 0xb3, 0x81, 0x86, 0x9d, 0x3b, 0x61,
  1889. 0x73, 0x31, 0x03, 0xec, 0x9c, 0xdd, 0x75, 0xb7,
  1890. 0x37, 0x0a, 0x8d, 0x94, 0xd9, 0x9f, 0x6d, 0x85,
  1891. 0xb0, 0x5c, 0x08, 0xcc, 0xb4, 0x27, 0x8c, 0xf0,
  1892. 0xe6, 0xd6, 0xe0, 0xc1, 0x57, 0x59, 0xaa, 0xc7,
  1893. 0x8f, 0x5c, 0xa7, 0x4b, 0x3c, 0x81, 0x4a, 0xa3,
  1894. 0x9b, 0x18, 0x88, 0x04, 0x98, 0x54, 0x3d, 0x87,
  1895. 0x2a, 0x89, 0xb6, 0x41, 0xe8, 0xbd, 0x37, 0x17,
  1896. 0x03, 0xa8, 0xf1, 0x37, 0xa5, 0x5e, 0x02, 0x13,
  1897. 0x67, 0x08, 0xec, 0x9e, 0x97, 0xf5, 0xcc, 0x5f,
  1898. 0x75, 0x37, 0xbe, 0xce, 0xe8, 0x5e, 0xa1, 0xca,
  1899. 0x46, 0xa3, 0xda, 0xe4, 0x1f, 0xf8, 0xc4, 0xa3,
  1900. 0x26, 0xbb, 0xed, 0xa2, 0x71, 0xb2, 0x44, 0x00,
  1901. 0xd3, 0xe5, 0x06, 0xf1, 0xb4, 0xc1, 0xe0, 0x29,
  1902. 0xca, 0xeb, 0xe0, 0xdf, 0xd1, 0x69, 0x5f, 0xa9,
  1903. 0x03, 0x7c, 0x49, 0x93, 0xfb, 0xc2, 0xdf, 0x39,
  1904. 0xbc, 0x2a, 0x6b, 0x59, 0x7d, 0xf4, 0x84, 0x93,
  1905. 0xa2, 0x8b, 0x7a, 0x5a, 0x7a, 0xa9, 0xff, 0x41,
  1906. 0x4c, 0x52, 0x5c, 0xf9, 0x59, 0xd2, 0x91, 0xc3,
  1907. 0xa9, 0xe8, 0x23, 0x36, 0x5f, 0x2f, 0xb9, 0xbe,
  1908. 0x22, 0xc4, 0xfd, 0x84, 0x5f, 0x81, 0x3d, 0x94,
  1909. 0xf8, 0xa4, 0x9b, 0xae, 0xc0, 0xb5, 0x78, 0x4f,
  1910. 0x91, 0x76, 0x02, 0x5d, 0x60, 0x71, 0x8b, 0xeb,
  1911. 0x08, 0x42, 0xe3, 0xb3, 0x63, 0x05, 0x60, 0x59,
  1912. 0x98, 0xc1, 0x6d, 0x66, 0xb3, 0xc5, 0x8a, 0xbc,
  1913. };
  1914. static const struct rsa_decrypt_prim_st rsa_decrypt_prim_data[] = {
  1915. {
  1916. ITM(rsa_decrypt_prim_0_ct),
  1917. },
  1918. {
  1919. ITM(rsa_decrypt_prim_1_ct),
  1920. },
  1921. };
  1922. #endif /* OPENSSL_NO_RSA */