test_suite_mpi.data 113 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892
  1. MPI - Valid parameters
  2. mpi_valid_param:
  3. MPI - Invalid parameters
  4. mpi_invalid_param:
  5. Arguments with no value
  6. mpi_null:
  7. Base test mpi_read_write_string #1
  8. mpi_read_write_string:10:"128":10:"128":100:0:0
  9. Base test mpi_read_write_string #1 (Leading 0)
  10. mpi_read_write_string:10:"0128":10:"128":100:0:0
  11. Base test mpi_read_write_string #2
  12. mpi_read_write_string:10:"128":16:"80":100:0:0
  13. Base test mpi_read_write_string #3 (Read zero decimal)
  14. mpi_read_write_string:10:"0":10:"0":100:0:0
  15. Base test mpi_read_write_string #3 (Read zero hex)
  16. mpi_read_write_string:16:"0":16:"00":100:0:0
  17. Base test mpi_read_write_string #3 (Read minus zero decimal)
  18. mpi_read_write_string:10:"-0":10:"0":100:0:0
  19. Base test mpi_read_write_string #3 (Read minus zero hex)
  20. mpi_read_write_string:16:"-0":16:"00":100:0:0
  21. Base test mpi_read_write_string #3 (Negative decimal)
  22. mpi_read_write_string:10:"-23":10:"-23":100:0:0
  23. Base test mpi_read_write_string #3 (Negative decimal, leading 0)
  24. mpi_read_write_string:10:"-023":10:"-23":100:0:0
  25. Base test mpi_read_write_string #3 (Negative hex -> decimal)
  26. mpi_read_write_string:16:"-20":10:"-32":100:0:0
  27. Base test mpi_read_write_string #3 (Negative hex)
  28. mpi_read_write_string:16:"-23":16:"-23":100:0:0
  29. Base test mpi_read_write_string #3 (Negative hex, leading 0)
  30. mpi_read_write_string:16:"-023":16:"-23":100:0:0
  31. Base test mpi_read_write_string #4 (Buffer just fits)
  32. mpi_read_write_string:16:"-4":4:"-10":4:0:0
  33. Test mpi_read_write_string #1 (Invalid character)
  34. mpi_read_write_string:10:"a28":0:"":100:MBEDTLS_ERR_MPI_INVALID_CHARACTER:0
  35. Test mpi_read_write_string #2 (Illegal input radix)
  36. mpi_read_write_string:19:"a28":0:"":100:MBEDTLS_ERR_MPI_BAD_INPUT_DATA:0
  37. Test mpi_read_write_string #3 (Buffer just fits)
  38. mpi_read_write_string:16:"-23":16:"-23":4:0:0
  39. Test mpi_read_write_string #4 (Buffer too small)
  40. mpi_read_write_string:16:"-23":16:"-23":3:0:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
  41. Test mpi_read_write_string #5 (Illegal output radix)
  42. mpi_read_write_string:16:"-23":17:"-23":4:0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  43. Test mpi_read_write_string #6 (Output radix of 15)
  44. mpi_read_write_string:10:"29":15:"1e":100:0:0
  45. Test mpi_read_write_string #7
  46. mpi_read_write_string:10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":16:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":200:0:0
  47. Test mpi_read_write_string #8 (Empty MPI hex -> hex)
  48. mpi_read_write_string:16:"":16:"":4:0:0
  49. Test mpi_read_write_string #9 (Empty MPI hex -> dec)
  50. mpi_read_write_string:16:"":10:"0":4:0:0
  51. Test mpi_read_write_string #8 (Empty MPI dec -> hex)
  52. mpi_read_write_string:10:"":16:"":4:0:0
  53. Test mpi_read_write_string #9 (Empty MPI dec -> dec)
  54. mpi_read_write_string:10:"":10:"0":4:0:0
  55. Test mpi_write_string #10 (Negative hex with odd number of digits)
  56. mpi_read_write_string:16:"-1":16:"":3:0:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
  57. Base test mbedtls_mpi_read_binary #1
  58. mbedtls_mpi_read_binary:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924"
  59. Base test mbedtls_mpi_read_binary_le #1
  60. mbedtls_mpi_read_binary_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":10:"219946662473865722255717126709915431768051735954189829340600976826409773245337023925691629251672268961177825243440202069039100741562168093042339401187848509859789949044607421190014088260008793380554914226244485299326152319899746569"
  61. Base test mbedtls_mpi_write_binary #1
  62. mbedtls_mpi_write_binary:10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":200:0
  63. Test mbedtls_mpi_write_binary #1 (Buffer just fits)
  64. mbedtls_mpi_write_binary:16:"123123123123123123123123123":"0123123123123123123123123123":14:0
  65. Test mbedtls_mpi_write_binary #2 (Buffer too small)
  66. mbedtls_mpi_write_binary:16:"123123123123123123123123123":"23123123123123123123123123":13:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
  67. Base test mbedtls_mpi_write_binary_le #1
  68. mbedtls_mpi_write_binary_le:10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":"24448b952fbbef93f89286ba330e62528b151eac265cc8ce3038519d09e148af89288e91f48b41acad55d9dc5e2b18097c106be4ce132721bf6359eaf403e7ff90623e8866ee5c192320418daa682f144adedf84f25de11f49d1fe009d374109":200:0
  69. Test mbedtls_mpi_write_binary_le #1 (Buffer just fits)
  70. mbedtls_mpi_write_binary_le:16:"123123123123123123123123123":"2331122331122331122331122301":14:0
  71. Test mbedtls_mpi_write_binary_le #2 (Buffer too small)
  72. mbedtls_mpi_write_binary_le:16:"123123123123123123123123123":"23311223311223311223311223":13:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
  73. Base test mbedtls_mpi_read_file #1
  74. mbedtls_mpi_read_file:10:"data_files/mpi_10":"01f55332c3a48b910f9942f6c914e58bef37a47ee45cb164a5b6b8d1006bf59a059c21449939ebebfdf517d2e1dbac88010d7b1f141e997bd6801ddaec9d05910f4f2de2b2c4d714e2c14a72fc7f17aa428d59c531627f09":0
  75. Test mbedtls_mpi_read_file #1 (Empty file)
  76. mbedtls_mpi_read_file:10:"data_files/hash_file_4":"":MBEDTLS_ERR_MPI_FILE_IO_ERROR
  77. Test mbedtls_mpi_read_file #2 (Illegal input)
  78. mbedtls_mpi_read_file:10:"data_files/hash_file_3":"":0
  79. Test mbedtls_mpi_read_file #3 (Input too big)
  80. mbedtls_mpi_read_file:10:"data_files/mpi_too_big":"":MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
  81. Base test mbedtls_mpi_write_file #1
  82. mbedtls_mpi_write_file:10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":16:"data_files/mpi_write"
  83. Test mbedtls_mpi_lsb: 0 (null)
  84. mbedtls_mpi_lsb:16:"":0
  85. Test mbedtls_mpi_lsb: 0 (1 limb)
  86. mbedtls_mpi_lsb:16:"0":0
  87. Base test mbedtls_mpi_lsb #1
  88. mbedtls_mpi_lsb:10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":2
  89. Base test mbedtls_mpi_lsb #2
  90. mbedtls_mpi_lsb:10:"24":3
  91. Base test mbedtls_mpi_lsb #3
  92. mbedtls_mpi_lsb:16:"24":2
  93. Base test mbedtls_mpi_lsb #4
  94. mbedtls_mpi_lsb:16:"2000":13
  95. Base test mbedtls_mpi_bitlen #1
  96. mbedtls_mpi_bitlen:10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":764
  97. Base test mbedtls_mpi_bitlen #2
  98. mbedtls_mpi_bitlen:10:"24":5
  99. Base test mbedtls_mpi_bitlen #3
  100. mbedtls_mpi_bitlen:10:"1":1
  101. Base test mbedtls_mpi_bitlen #4
  102. mbedtls_mpi_bitlen:10:"15":4
  103. Base test mbedtls_mpi_bitlen #5
  104. mbedtls_mpi_bitlen:10:"16":5
  105. Base test mbedtls_mpi_bitlen #6
  106. mbedtls_mpi_bitlen:10:"10":4
  107. Base test mbedtls_mpi_bitlen: 0 (null)
  108. mbedtls_mpi_bitlen:10:"":0
  109. Base test mbedtls_mpi_bitlen: 0 (1 limb)
  110. mbedtls_mpi_bitlen:10:"0":0
  111. Base test mbedtls_mpi_cmp_int #1
  112. mbedtls_mpi_cmp_int:693:693:0
  113. Base test mbedtls_mpi_cmp_int #2
  114. mbedtls_mpi_cmp_int:693:692:1
  115. Base test mbedtls_mpi_cmp_int #3
  116. mbedtls_mpi_cmp_int:693:694:-1
  117. Base test mbedtls_mpi_cmp_int (Negative values) #1
  118. mbedtls_mpi_cmp_int:-2:-2:0
  119. Base test mbedtls_mpi_cmp_int (Negative values) #2
  120. mbedtls_mpi_cmp_int:-2:-3:1
  121. Base test mbedtls_mpi_cmp_int (Negative values) #3
  122. mbedtls_mpi_cmp_int:-2:-1:-1
  123. Base test mbedtls_mpi_cmp_mpi #1
  124. mbedtls_mpi_cmp_mpi:10:"693":10:"693":0
  125. Base test mbedtls_mpi_cmp_mpi #2
  126. mbedtls_mpi_cmp_mpi:10:"693":10:"692":1
  127. Base test mbedtls_mpi_cmp_mpi #3
  128. mbedtls_mpi_cmp_mpi:10:"693":10:"694":-1
  129. Base test mbedtls_mpi_cmp_mpi (Negative values) #1
  130. mbedtls_mpi_cmp_mpi:10:"-2":10:"-2":0
  131. Base test mbedtls_mpi_cmp_mpi (Negative values) #2
  132. mbedtls_mpi_cmp_mpi:10:"-2":10:"-3":1
  133. Base test mbedtls_mpi_cmp_mpi (Negative values) #3
  134. mbedtls_mpi_cmp_mpi:10:"-2":10:"-1":-1
  135. Base test mbedtls_mpi_cmp_mpi (Mixed values) #4
  136. mbedtls_mpi_cmp_mpi:10:"-3":10:"2":-1
  137. Base test mbedtls_mpi_cmp_mpi (Mixed values) #5
  138. mbedtls_mpi_cmp_mpi:10:"2":10:"-3":1
  139. Base test mbedtls_mpi_cmp_mpi (Mixed values) #6
  140. mbedtls_mpi_cmp_mpi:10:"-2":10:"31231231289798":-1
  141. Test mbedtls_mpi_cmp_mpi: 0 (null) = 0 (null)
  142. mbedtls_mpi_cmp_mpi:10:"":10:"":0
  143. Test mbedtls_mpi_cmp_mpi: 0 (null) = 0 (1 limb)
  144. mbedtls_mpi_cmp_mpi:10:"":10:"0":0
  145. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) = 0 (null)
  146. mbedtls_mpi_cmp_mpi:10:"0":10:"":0
  147. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) = 0 (1 limb)
  148. mbedtls_mpi_cmp_mpi:10:"0":10:"0":0
  149. Test mbedtls_mpi_cmp_mpi: 0 (null) < positive
  150. mbedtls_mpi_cmp_mpi:10:"":10:"123":-1
  151. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) < positive
  152. mbedtls_mpi_cmp_mpi:10:"0":10:"123":-1
  153. Test mbedtls_mpi_cmp_mpi: 0 (null) > negative
  154. mbedtls_mpi_cmp_mpi:10:"":10:"-123":1
  155. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) > negative
  156. mbedtls_mpi_cmp_mpi:10:"0":10:"-123":1
  157. Test mbedtls_mpi_cmp_mpi: positive > 0 (null)
  158. mbedtls_mpi_cmp_mpi:10:"123":10:"":1
  159. Test mbedtls_mpi_cmp_mpi: positive > 0 (1 limb)
  160. mbedtls_mpi_cmp_mpi:10:"123":10:"0":1
  161. Test mbedtls_mpi_cmp_mpi: negative < 0 (null)
  162. mbedtls_mpi_cmp_mpi:10:"-123":10:"":-1
  163. Test mbedtls_mpi_cmp_mpi: negative < 0 (1 limb)
  164. mbedtls_mpi_cmp_mpi:10:"-123":10:"0":-1
  165. Test mbedtls_mpi_cmp_mpi: 0 (null) < positive with leading zero limb
  166. mbedtls_mpi_cmp_mpi:16:"":16:"0000000000000000123":-1
  167. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) < positive with leading zero limb
  168. mbedtls_mpi_cmp_mpi:16:"0":16:"0000000000000000123":-1
  169. Test mbedtls_mpi_cmp_mpi: 0 (null) > negative with leading zero limb
  170. mbedtls_mpi_cmp_mpi:16:"":16:"-0000000000000000123":1
  171. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) > negative with leading zero limb
  172. mbedtls_mpi_cmp_mpi:16:"0":16:"-0000000000000000123":1
  173. Test mbedtls_mpi_cmp_mpi: positive with leading zero limb > 0 (null)
  174. mbedtls_mpi_cmp_mpi:16:"0000000000000000123":16:"":1
  175. Test mbedtls_mpi_cmp_mpi: positive with leading zero limb > 0 (1 limb)
  176. mbedtls_mpi_cmp_mpi:16:"0000000000000000123":16:"0":1
  177. Test mbedtls_mpi_cmp_mpi: negative with leading zero limb < 0 (null)
  178. mbedtls_mpi_cmp_mpi:16:"-0000000000000000123":16:"":-1
  179. Test mbedtls_mpi_cmp_mpi: negative with leading zero limb < 0 (1 limb)
  180. mbedtls_mpi_cmp_mpi:16:"-0000000000000000123":16:"0":-1
  181. Test mbedtls_mpi_cmp_mpi: 0 (null) < large positive
  182. mbedtls_mpi_cmp_mpi:16:"":16:"1230000000000000000":-1
  183. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) < large positive
  184. mbedtls_mpi_cmp_mpi:16:"0":16:"1230000000000000000":-1
  185. Test mbedtls_mpi_cmp_mpi: 0 (null) > large negative
  186. mbedtls_mpi_cmp_mpi:16:"":16:"-1230000000000000000":1
  187. Test mbedtls_mpi_cmp_mpi: 0 (1 limb) > large negative
  188. mbedtls_mpi_cmp_mpi:16:"0":16:"-1230000000000000000":1
  189. Test mbedtls_mpi_cmp_mpi: large positive > 0 (null)
  190. mbedtls_mpi_cmp_mpi:16:"1230000000000000000":16:"":1
  191. Test mbedtls_mpi_cmp_mpi: large positive > 0 (1 limb)
  192. mbedtls_mpi_cmp_mpi:16:"1230000000000000000":16:"0":1
  193. Test mbedtls_mpi_cmp_mpi: large negative < 0 (null)
  194. mbedtls_mpi_cmp_mpi:16:"-1230000000000000000":16:"":-1
  195. Test mbedtls_mpi_cmp_mpi: large negative < 0 (1 limb)
  196. mbedtls_mpi_cmp_mpi:16:"-1230000000000000000":16:"0":-1
  197. Base test mbedtls_mpi_lt_mpi_ct #1
  198. mbedtls_mpi_lt_mpi_ct:1:"2B5":1:"2B5":0:0
  199. Base test mbedtls_mpi_lt_mpi_ct #2
  200. mbedtls_mpi_lt_mpi_ct:1:"2B5":1:"2B4":0:0
  201. Base test mbedtls_mpi_lt_mpi_ct #3
  202. mbedtls_mpi_lt_mpi_ct:1:"2B5":1:"2B6":1:0
  203. Base test mbedtls_mpi_lt_mpi_ct (Negative values) #1
  204. mbedtls_mpi_lt_mpi_ct:1:"-2":1:"-2":0:0
  205. Base test mbedtls_mpi_lt_mpi_ct (Negative values) #2
  206. mbedtls_mpi_lt_mpi_ct:1:"-2":1:"-3":0:0
  207. Base test mbedtls_mpi_lt_mpi_ct (Negative values) #3
  208. mbedtls_mpi_lt_mpi_ct:1:"-2":1:"-1":1:0
  209. Base test mbedtls_mpi_lt_mpi_ct (Mixed values) #1
  210. mbedtls_mpi_lt_mpi_ct:1:"-3":1:"2":1:0
  211. Base test mbedtls_mpi_lt_mpi_ct (Mixed values) #2
  212. mbedtls_mpi_lt_mpi_ct:1:"2":1:"-3":0:0
  213. Base test mbedtls_mpi_lt_mpi_ct (Mixed values) #3
  214. mbedtls_mpi_lt_mpi_ct:2:"-2":2:"1C67967269C6":1:0
  215. Base test mbedtls_mpi_lt_mpi_ct (X is longer in storage)
  216. mbedtls_mpi_lt_mpi_ct:3:"2B5":2:"2B5":0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  217. Base test mbedtls_mpi_lt_mpi_ct (Y is longer in storage)
  218. mbedtls_mpi_lt_mpi_ct:3:"2B5":4:"2B5":0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  219. Base test mbedtls_mpi_lt_mpi_ct (length=0)
  220. mbedtls_mpi_lt_mpi_ct:0:"":0:"":0:0
  221. Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #1
  222. mbedtls_mpi_lt_mpi_ct:2:"7FFFFFFFFFFFFFFF":2:"FF":0:0
  223. Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #2
  224. mbedtls_mpi_lt_mpi_ct:2:"8000000000000000":2:"7FFFFFFFFFFFFFFF":0:0
  225. Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #3
  226. mbedtls_mpi_lt_mpi_ct:2:"8000000000000000":2:"1":0:0
  227. Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #4
  228. mbedtls_mpi_lt_mpi_ct:2:"8000000000000000":2:"0":0:0
  229. Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #5
  230. mbedtls_mpi_lt_mpi_ct:2:"FFFFFFFFFFFFFFFF":2:"FF":0:0
  231. Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #1
  232. mbedtls_mpi_lt_mpi_ct:1:"7FFFFFFF":1:"FF":0:0
  233. Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #2
  234. mbedtls_mpi_lt_mpi_ct:1:"80000000":1:"7FFFFFFF":0:0
  235. Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #3
  236. mbedtls_mpi_lt_mpi_ct:1:"80000000":1:"1":0:0
  237. Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #4
  238. mbedtls_mpi_lt_mpi_ct:1:"80000000":1:"0":0:0
  239. Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #5
  240. mbedtls_mpi_lt_mpi_ct:1:"FFFFFFFF":1:"FF":0:0
  241. Multi-limb mbedtls_mpi_lt_mpi_ct (X<Y, zero vs non-zero MS limb)
  242. mbedtls_mpi_lt_mpi_ct:2:"0FFFFFFFFFFFFFFFF":2:"1FFFFFFFFFFFFFFFF":1:0
  243. Multi-limb mbedtls_mpi_lt_mpi_ct (X>Y, equal MS limbs)
  244. mbedtls_mpi_lt_mpi_ct:2:"-EEFFFFFFFFFFFFFFF1":2:"-EEFFFFFFFFFFFFFFFF":0:0
  245. Multi-limb mbedtls_mpi_lt_mpi_ct (X=Y)
  246. mbedtls_mpi_lt_mpi_ct:2:"EEFFFFFFFFFFFFFFFF":2:"EEFFFFFFFFFFFFFFFF":0:0
  247. Multi-limb mbedtls_mpi_lt_mpi_ct (X=-Y)
  248. mbedtls_mpi_lt_mpi_ct:2:"-EEFFFFFFFFFFFFFFFF":2:"EEFFFFFFFFFFFFFFFF":1:0
  249. Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #1
  250. mbedtls_mpi_lt_mpi_ct:2:"11FFFFFFFFFFFFFFFF":2:"FF1111111111111111":1:0
  251. Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #2
  252. mbedtls_mpi_lt_mpi_ct:2:"FF1111111111111111":2:"11FFFFFFFFFFFFFFFF":0:0
  253. Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #3
  254. mbedtls_mpi_lt_mpi_ct:2:"-11FFFFFFFFFFFFFFFF":2:"-FF1111111111111111":0:0
  255. Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #4
  256. mbedtls_mpi_lt_mpi_ct:2:"-FF1111111111111111":2:"-11FFFFFFFFFFFFFFFF":1:0
  257. Base test mbedtls_mpi_cmp_abs #1
  258. mbedtls_mpi_cmp_abs:10:"693":10:"693":0
  259. Base test mbedtls_mpi_cmp_abs #2
  260. mbedtls_mpi_cmp_abs:10:"693":10:"692":1
  261. Base test mbedtls_mpi_cmp_abs #3
  262. mbedtls_mpi_cmp_abs:10:"693":10:"694":-1
  263. Base test mbedtls_mpi_cmp_abs (Negative values) #1
  264. mbedtls_mpi_cmp_abs:10:"-2":10:"-2":0
  265. Base test mbedtls_mpi_cmp_abs (Negative values) #2
  266. mbedtls_mpi_cmp_abs:10:"-2":10:"-3":-1
  267. Base test mbedtls_mpi_cmp_abs (Negative values) #3
  268. mbedtls_mpi_cmp_abs:10:"-2":10:"-1":1
  269. Test mbedtls_mpi_cmp_abs: 0 (null) = 0 (null)
  270. mbedtls_mpi_cmp_abs:10:"":10:"":0
  271. Test mbedtls_mpi_cmp_abs: 0 (null) = 0 (1 limb)
  272. mbedtls_mpi_cmp_abs:10:"":10:"0":0
  273. Test mbedtls_mpi_cmp_abs: 0 (1 limb) = 0 (null)
  274. mbedtls_mpi_cmp_abs:10:"0":10:"":0
  275. Test mbedtls_mpi_cmp_abs: 0 (1 limb) = 0 (1 limb)
  276. mbedtls_mpi_cmp_abs:10:"0":10:"0":0
  277. Base test mbedtls_mpi_cmp_abs (Mix values) #1
  278. mbedtls_mpi_cmp_abs:10:"-2":10:"2":0
  279. Base test mbedtls_mpi_cmp_abs (Mix values) #2
  280. mbedtls_mpi_cmp_abs:10:"2":10:"-3":-1
  281. Base test mbedtls_mpi_cmp_abs (Mix values) #3
  282. mbedtls_mpi_cmp_abs:10:"-2":10:"1":1
  283. Copy large negative to large negative
  284. mbedtls_mpi_copy:"-ca5cadedb01dfaceacc01ade":"-face1e55ca11ab1ecab005e5"
  285. Copy large negative to large positive
  286. mbedtls_mpi_copy:"-ca5cadedb01dfaceacc01ade":"face1e55ca11ab1ecab005e5"
  287. Copy large negative to small negative
  288. mbedtls_mpi_copy:"-ca5cadedb01dfaceacc01ade":"-beef"
  289. Copy large negative to small positive
  290. mbedtls_mpi_copy:"-ca5cadedb01dfaceacc01ade":"beef"
  291. Copy large negative to zero (1 limb)
  292. mbedtls_mpi_copy:"-ca5cadedb01dfaceacc01ade":"0"
  293. Copy large negative to zero (null)
  294. mbedtls_mpi_copy:"-ca5cadedb01dfaceacc01ade":""
  295. Copy large positive to large negative
  296. mbedtls_mpi_copy:"ca5cadedb01dfaceacc01ade":"-face1e55ca11ab1ecab005e5"
  297. Copy large positive to large positive
  298. mbedtls_mpi_copy:"ca5cadedb01dfaceacc01ade":"face1e55ca11ab1ecab005e5"
  299. Copy large positive to small negative
  300. mbedtls_mpi_copy:"ca5cadedb01dfaceacc01ade":"-beef"
  301. Copy large positive to small positive
  302. mbedtls_mpi_copy:"ca5cadedb01dfaceacc01ade":"beef"
  303. Copy large positive to zero (1 limb)
  304. mbedtls_mpi_copy:"ca5cadedb01dfaceacc01ade":"0"
  305. Copy large positive to zero (null)
  306. mbedtls_mpi_copy:"ca5cadedb01dfaceacc01ade":""
  307. Copy small negative to large negative
  308. mbedtls_mpi_copy:"-bead":"-face1e55ca11ab1ecab005e5"
  309. Copy small negative to large positive
  310. mbedtls_mpi_copy:"-bead":"face1e55ca11ab1ecab005e5"
  311. Copy small negative to small negative
  312. mbedtls_mpi_copy:"-bead":"-beef"
  313. Copy small negative to small positive
  314. mbedtls_mpi_copy:"-bead":"beef"
  315. Copy small negative to zero (1 limb)
  316. mbedtls_mpi_copy:"-bead":"0"
  317. Copy small negative to zero (null)
  318. mbedtls_mpi_copy:"-bead":""
  319. Copy small positive to large negative
  320. mbedtls_mpi_copy:"bead":"-face1e55ca11ab1ecab005e5"
  321. Copy small positive to large positive
  322. mbedtls_mpi_copy:"bead":"face1e55ca11ab1ecab005e5"
  323. Copy small positive to small negative
  324. mbedtls_mpi_copy:"bead":"-beef"
  325. Copy small positive to small positive
  326. mbedtls_mpi_copy:"bead":"beef"
  327. Copy small positive to zero (1 limb)
  328. mbedtls_mpi_copy:"bead":"0"
  329. Copy small positive to zero (null)
  330. mbedtls_mpi_copy:"bead":""
  331. Copy zero (1 limb) to large negative
  332. mbedtls_mpi_copy:"0":"-face1e55ca11ab1ecab005e5"
  333. Copy zero (1 limb) to large positive
  334. mbedtls_mpi_copy:"0":"face1e55ca11ab1ecab005e5"
  335. Copy zero (1 limb) to small negative
  336. mbedtls_mpi_copy:"0":"-beef"
  337. Copy zero (1 limb) to small positive
  338. mbedtls_mpi_copy:"0":"beef"
  339. Copy zero (1 limb) to zero (1 limb)
  340. mbedtls_mpi_copy:"0":"0"
  341. Copy zero (1 limb) to zero (null)
  342. mbedtls_mpi_copy:"0":""
  343. Copy zero (null) to large negative
  344. mbedtls_mpi_copy:"":"-face1e55ca11ab1ecab005e5"
  345. Copy zero (null) to large positive
  346. mbedtls_mpi_copy:"":"face1e55ca11ab1ecab005e5"
  347. Copy zero (null) to small negative
  348. mbedtls_mpi_copy:"":"-beef"
  349. Copy zero (null) to small positive
  350. mbedtls_mpi_copy:"":"beef"
  351. Copy zero (null) to zero (1 limb)
  352. mbedtls_mpi_copy:"":"0"
  353. Copy zero (null) to zero (null)
  354. mbedtls_mpi_copy:"":""
  355. Copy self: large negative
  356. mpi_copy_self:"-ca5cadedb01dfaceacc01ade"
  357. Copy self: large positive
  358. mpi_copy_self:"ca5cadedb01dfaceacc01ade"
  359. Copy self: small negative
  360. mpi_copy_self:"-bead"
  361. Copy self: small positive
  362. mpi_copy_self:"bead"
  363. Copy self: zero (1 limb)
  364. mpi_copy_self:"0"
  365. Copy self: zero (null)
  366. mpi_copy_self:""
  367. Swap large negative with large negative
  368. mbedtls_mpi_swap:"-ca5cadedb01dfaceacc01ade":"-face1e55ca11ab1ecab005e5"
  369. Swap large negative with large positive
  370. mbedtls_mpi_swap:"-ca5cadedb01dfaceacc01ade":"face1e55ca11ab1ecab005e5"
  371. Swap large negative with small negative
  372. mbedtls_mpi_swap:"-ca5cadedb01dfaceacc01ade":"-beef"
  373. Swap large negative with small positive
  374. mbedtls_mpi_swap:"-ca5cadedb01dfaceacc01ade":"beef"
  375. Swap large negative with zero (1 limb)
  376. mbedtls_mpi_swap:"-ca5cadedb01dfaceacc01ade":"0"
  377. Swap large negative with zero (null)
  378. mbedtls_mpi_swap:"-ca5cadedb01dfaceacc01ade":""
  379. Swap large positive with large negative
  380. mbedtls_mpi_swap:"ca5cadedb01dfaceacc01ade":"-face1e55ca11ab1ecab005e5"
  381. Swap large positive with large positive
  382. mbedtls_mpi_swap:"ca5cadedb01dfaceacc01ade":"face1e55ca11ab1ecab005e5"
  383. Swap large positive with small negative
  384. mbedtls_mpi_swap:"ca5cadedb01dfaceacc01ade":"-beef"
  385. Swap large positive with small positive
  386. mbedtls_mpi_swap:"ca5cadedb01dfaceacc01ade":"beef"
  387. Swap large positive with zero (1 limb)
  388. mbedtls_mpi_swap:"ca5cadedb01dfaceacc01ade":"0"
  389. Swap large positive with zero (null)
  390. mbedtls_mpi_swap:"ca5cadedb01dfaceacc01ade":""
  391. Swap small negative with large negative
  392. mbedtls_mpi_swap:"-bead":"-face1e55ca11ab1ecab005e5"
  393. Swap small negative with large positive
  394. mbedtls_mpi_swap:"-bead":"face1e55ca11ab1ecab005e5"
  395. Swap small negative with small negative
  396. mbedtls_mpi_swap:"-bead":"-beef"
  397. Swap small negative with small positive
  398. mbedtls_mpi_swap:"-bead":"beef"
  399. Swap small negative with zero (1 limb)
  400. mbedtls_mpi_swap:"-bead":"0"
  401. Swap small negative with zero (null)
  402. mbedtls_mpi_swap:"-bead":""
  403. Swap small positive with large negative
  404. mbedtls_mpi_swap:"bead":"-face1e55ca11ab1ecab005e5"
  405. Swap small positive with large positive
  406. mbedtls_mpi_swap:"bead":"face1e55ca11ab1ecab005e5"
  407. Swap small positive with small negative
  408. mbedtls_mpi_swap:"bead":"-beef"
  409. Swap small positive with small positive
  410. mbedtls_mpi_swap:"bead":"beef"
  411. Swap small positive with zero (1 limb)
  412. mbedtls_mpi_swap:"bead":"0"
  413. Swap small positive with zero (null)
  414. mbedtls_mpi_swap:"bead":""
  415. Swap zero (1 limb) with large negative
  416. mbedtls_mpi_swap:"0":"-face1e55ca11ab1ecab005e5"
  417. Swap zero (1 limb) with large positive
  418. mbedtls_mpi_swap:"0":"face1e55ca11ab1ecab005e5"
  419. Swap zero (1 limb) with small negative
  420. mbedtls_mpi_swap:"0":"-beef"
  421. Swap zero (1 limb) with small positive
  422. mbedtls_mpi_swap:"0":"beef"
  423. Swap zero (1 limb) with zero (1 limb)
  424. mbedtls_mpi_swap:"0":"0"
  425. Swap zero (1 limb) with zero (null)
  426. mbedtls_mpi_swap:"0":""
  427. Swap zero (null) with large negative
  428. mbedtls_mpi_swap:"":"-face1e55ca11ab1ecab005e5"
  429. Swap zero (null) with large positive
  430. mbedtls_mpi_swap:"":"face1e55ca11ab1ecab005e5"
  431. Swap zero (null) with small negative
  432. mbedtls_mpi_swap:"":"-beef"
  433. Swap zero (null) with small positive
  434. mbedtls_mpi_swap:"":"beef"
  435. Swap zero (null) with zero (1 limb)
  436. mbedtls_mpi_swap:"":"0"
  437. Swap zero (null) with zero (null)
  438. mbedtls_mpi_swap:"":""
  439. Swap self: large negative
  440. mpi_swap_self:"-ca5cadedb01dfaceacc01ade"
  441. Swap self: large positive
  442. mpi_swap_self:"ca5cadedb01dfaceacc01ade"
  443. Swap self: small negative
  444. mpi_swap_self:"-bead"
  445. Swap self: small positive
  446. mpi_swap_self:"bead"
  447. Swap self: zero (1 limb)
  448. mpi_swap_self:"0"
  449. Swap self: zero (null)
  450. mpi_swap_self:""
  451. Shrink 0 limbs in a buffer of size 0 to 0
  452. mbedtls_mpi_shrink:0:0:0:0
  453. Shrink 2 limbs in a buffer of size 2 to 4
  454. mbedtls_mpi_shrink:2:2:4:4
  455. Shrink 2 limbs in a buffer of size 4 to 4
  456. mbedtls_mpi_shrink:4:2:4:4
  457. Shrink 2 limbs in a buffer of size 8 to 4
  458. mbedtls_mpi_shrink:8:2:4:4
  459. Shrink 4 limbs in a buffer of size 8 to 4
  460. mbedtls_mpi_shrink:8:4:4:4
  461. Shrink 6 limbs in a buffer of size 8 to 4 yielding 6
  462. mbedtls_mpi_shrink:8:6:4:6
  463. Shrink 2 limbs in a buffer of size 4 to 0 yielding 2
  464. mbedtls_mpi_shrink:4:2:0:2
  465. Shrink 1 limbs in a buffer of size 4 to 0 yielding 1
  466. mbedtls_mpi_shrink:4:1:0:1
  467. Shrink 0 limbs in a buffer of size 4 to 0 yielding 1
  468. mbedtls_mpi_shrink:4:0:0:1
  469. Base test mbedtls_mpi_add_abs #1
  470. mbedtls_mpi_add_abs:10:"12345678":10:"642531":10:"12988209"
  471. Base test mbedtls_mpi_add_abs #2
  472. mbedtls_mpi_add_abs:10:"-12345678":10:"642531":10:"12988209"
  473. Base test mbedtls_mpi_add_abs #3
  474. mbedtls_mpi_add_abs:10:"12345678":10:"-642531":10:"12988209"
  475. Base test mbedtls_mpi_add_abs #4
  476. mbedtls_mpi_add_abs:10:"-12345678":10:"-642531":10:"12988209"
  477. Test mbedtls_mpi_add_abs: 0 (null) + 0 (null)
  478. mbedtls_mpi_add_abs:16:"":16:"":16:"0"
  479. Test mbedtls_mpi_add_abs: 0 (null) + 1
  480. mbedtls_mpi_add_abs:16:"":16:"01":16:"01"
  481. Test mbedtls_mpi_add_abs: 1 + 0 (null)
  482. mbedtls_mpi_add_abs:16:"01":16:"":16:"01"
  483. Test mbedtls_mpi_add_abs #1
  484. mbedtls_mpi_add_abs:10:"-643808006803554439230129854961492699151386107534013432918073439524138264842370630061369715394739134090922937332590384720397133335969549256322620979036686633213903952966175107096769180017646161851573147596390153":10:"56125680981752282333498088313568935051383833838594899821664631784577337171193624243181360054669678410455329112434552942717084003541384594864129940145043086760031292483340068923506115878221189886491132772739661669044958531131327771":10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924"
  485. Regression mbedtls_mpi_add_abs (add small to very large MPI with carry rollover) [#1]
  486. mbedtls_mpi_add_abs:16:"FFFFFFFFFFFFFFFFFFFFFFFFFFFFF8":16:"08":16:"1000000000000000000000000000000"
  487. Regression mbedtls_mpi_add_abs (add small to very large MPI with carry rollover) [#2]
  488. mbedtls_mpi_add_abs:16:"08":16:"FFFFFFFFFFFFFFFFFFFFFFFFFFFFF8":16:"1000000000000000000000000000000"
  489. Base test mbedtls_mpi_add_mpi #1
  490. mbedtls_mpi_add_mpi:10:"12345678":10:"642531":10:"12988209"
  491. Base test mbedtls_mpi_add_mpi #2
  492. mbedtls_mpi_add_mpi:10:"-12345678":10:"642531":10:"-11703147"
  493. Base test mbedtls_mpi_add_mpi #3
  494. mbedtls_mpi_add_mpi:10:"12345678":10:"-642531":10:"11703147"
  495. Base test mbedtls_mpi_add_mpi #4
  496. mbedtls_mpi_add_mpi:10:"-12345678":10:"-642531":10:"-12988209"
  497. Test mbedtls_mpi_add_mpi: 0 (null) + 0 (null)
  498. mbedtls_mpi_add_mpi:16:"":16:"":16:"0"
  499. Test mbedtls_mpi_add_mpi: 0 (null) + 1
  500. mbedtls_mpi_add_mpi:16:"":16:"01":16:"01"
  501. Test mbedtls_mpi_add_mpi: 1 + 0 (null)
  502. mbedtls_mpi_add_mpi:16:"01":16:"":16:"01"
  503. Test mbedtls_mpi_add_mpi: 0 (null) + -1
  504. mbedtls_mpi_add_mpi:16:"":16:"-01":16:"-01"
  505. Test mbedtls_mpi_add_mpi: -1 + 0 (null)
  506. mbedtls_mpi_add_mpi:16:"-01":16:"":16:"-01"
  507. Test mbedtls_mpi_add_mpi #1
  508. mbedtls_mpi_add_mpi:10:"203956878356401977405765866929034577280193993314348263094772646453283062722701277632936616063144088173312372882677123879538709400158306567338328279154499698366071906766440037074217117805690872792848149112022286332144876183376326512083574821647933992961249917319836219304274280243803104015000563790123":10:"531872289054204184185084734375133399408303613982130856645299464930952178606045848877129147820387996428175564228204785846141207532462936339834139412401975338705794646595487324365194792822189473092273993580587964571659678084484152603881094176995594813302284232006001752128168901293560051833646881436219":10:"735829167410606161590850601304167976688497607296479119740072111384235241328747126510065763883532084601487937110881909725679916932621242907172467691556475037071866553361927361439411910627880345885122142692610250903804554267860479115964668998643528806263534149325837971432443181537363155848647445226342"
  509. Test mbedtls_mpi_add_mpi #2
  510. mbedtls_mpi_add_mpi:10:"643808006803554439230129854961492699151386107534013432918073439524138264842370630061369715394739134090922937332590384720397133335969549256322620979036686633213903952966175107096769180017646161851573147596390153":10:"56125680981752282333498088313568935051383833838594899821664631784577337171193624243181360054669678410455329112434552942717084003541384594864129940145043086760031292483340068923506115878221189886491132772739661669044958531131327771":10:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924"
  511. Base test mbedtls_mpi_add_mpi inplace #1
  512. mbedtls_mpi_add_mpi_inplace:10:"12345678":10:"24691356"
  513. Test mbedtls_mpi_add_mpi inplace #2
  514. mbedtls_mpi_add_mpi_inplace:10:"643808006803554439230129854961492699151386107534013432918073439524138264842370630061369715394739134090922937332590384720397133335969549256322620979036686633213903952966175107096769180017646161851573147596390153":10:"1287616013607108878460259709922985398302772215068026865836146879048276529684741260122739430789478268181845874665180769440794266671939098512645241958073373266427807905932350214193538360035292323703146295192780306"
  515. Test mbedtls_mpi_add_mpi inplace #3
  516. mbedtls_mpi_add_mpi_inplace:16:"ffffffffffffffffffffffffffffffff":16:"01fffffffffffffffffffffffffffffffe"
  517. Test mbedtls_mpi_add_int #1
  518. mbedtls_mpi_add_int:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":9871232:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227022647561"
  519. Test mbedtls_mpi_add_int #2
  520. mbedtls_mpi_add_int:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":-9871232:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227002905097"
  521. Test mbedtls_mpi_add_int: 0 (null) + 0
  522. mbedtls_mpi_add_int:16:"":0:16:"0"
  523. Test mbedtls_mpi_add_int: 0 (null) + 1
  524. mbedtls_mpi_add_int:16:"":1:16:"1"
  525. Base test mbedtls_mpi_sub_abs #1 (|B| > |A|)
  526. mbedtls_mpi_sub_abs:10:"5":10:"7":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  527. Base test mbedtls_mpi_sub_abs #2 (|B| > |A|)
  528. mbedtls_mpi_sub_abs:10:"-5":10:"-7":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  529. Base test mbedtls_mpi_sub_abs #3 (|B| > |A|)
  530. mbedtls_mpi_sub_abs:10:"-5":10:"7":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  531. Base test mbedtls_mpi_sub_abs #4 (|B| > |A|)
  532. mbedtls_mpi_sub_abs:10:"5":10:"-7":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  533. Base test mbedtls_mpi_sub_abs #1 (|B| >> |A| with more limbs)
  534. mbedtls_mpi_sub_abs:10:"5":16:"123456789abcdef01":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  535. Base test mbedtls_mpi_sub_abs #2 (|B| >> |A| with more limbs)
  536. mbedtls_mpi_sub_abs:10:"-5":16:"-123456789abcdef01":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  537. Base test mbedtls_mpi_sub_abs #3 (|B| >> |A| with more limbs)
  538. mbedtls_mpi_sub_abs:10:"-5":16:"123456789abcdef01":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  539. Base test mbedtls_mpi_sub_abs #4 (|B| >> |A| with more limbs)
  540. mbedtls_mpi_sub_abs:10:"5":16:"-123456789abcdef01":10:"0":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  541. Base test mbedtls_mpi_sub_abs #1
  542. mbedtls_mpi_sub_abs:10:"7":10:"5":10:"2":0
  543. Base test mbedtls_mpi_sub_abs #2
  544. mbedtls_mpi_sub_abs:10:"-7":10:"-5":10:"2":0
  545. Base test mbedtls_mpi_sub_abs #3
  546. mbedtls_mpi_sub_abs:10:"-7":10:"5":10:"2":0
  547. Base test mbedtls_mpi_sub_abs #4
  548. mbedtls_mpi_sub_abs:10:"7":10:"-5":10:"2":0
  549. Test mbedtls_mpi_sub_abs: 0 (null) - 0 (null)
  550. mbedtls_mpi_sub_abs:16:"":16:"":16:"":0
  551. Test mbedtls_mpi_sub_abs: 0 (null) - 0 (1 limb)
  552. mbedtls_mpi_sub_abs:16:"":16:"00":16:"":0
  553. Test mbedtls_mpi_sub_abs: 0 (1 limb) - 0 (null)
  554. mbedtls_mpi_sub_abs:16:"00":16:"":16:"":0
  555. Test mbedtls_mpi_sub_abs: 0 (1 limb) - 0 (1 limb)
  556. mbedtls_mpi_sub_abs:16:"00":16:"00":16:"":0
  557. Test mbedtls_mpi_sub_abs: 1 - 0 (null)
  558. mbedtls_mpi_sub_abs:16:"01":16:"":16:"01":0
  559. Test mbedtls_mpi_sub_abs: 0 (null) - 1
  560. mbedtls_mpi_sub_abs:16:"":16:"01":16:"":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  561. Test mbedtls_mpi_sub_abs #1
  562. mbedtls_mpi_sub_abs:16:"FFFFFFFFFF":16:"01":16:"FFFFFFFFFE":0
  563. Test mbedtls_mpi_sub_abs #2
  564. mbedtls_mpi_sub_abs:16:"FFFFFFFFF0":16:"01":16:"FFFFFFFFEF":0
  565. Test mbedtls_mpi_sub_abs #3
  566. mbedtls_mpi_sub_abs:16:"FF00000000":16:"0F00000000":16:"F000000000":0
  567. Test mbedtls_mpi_sub_abs #4
  568. mbedtls_mpi_sub_abs:16:"FF00000000":16:"0F00000001":16:"EFFFFFFFFF":0
  569. Base test mbedtls_mpi_sub_mpi #1 (Test with negative result)
  570. mbedtls_mpi_sub_mpi:10:"5":10:"7":10:"-2"
  571. Base test mbedtls_mpi_sub_mpi #2 (Test with negative inputs)
  572. mbedtls_mpi_sub_mpi:10:"-5":10:"-7":10:"2"
  573. Base test mbedtls_mpi_sub_mpi #3 (Test with negative base)
  574. mbedtls_mpi_sub_mpi:10:"-5":10:"7":10:"-12"
  575. Base test mbedtls_mpi_sub_mpi #4 (Test with negative subtraction)
  576. mbedtls_mpi_sub_mpi:10:"5":10:"-7":10:"12"
  577. Test mbedtls_mpi_sub_mpi: 0 (null) - 0 (null)
  578. mbedtls_mpi_sub_mpi:16:"":16:"":16:"0"
  579. Test mbedtls_mpi_sub_mpi: 0 (null) - 0 (1 limb)
  580. mbedtls_mpi_sub_mpi:16:"":16:"00":16:"0"
  581. Test mbedtls_mpi_sub_mpi: 0 (null) - 1
  582. mbedtls_mpi_sub_mpi:16:"":16:"1":16:"-1"
  583. Test mbedtls_mpi_sub_mpi: 0 (null) - -1
  584. mbedtls_mpi_sub_mpi:16:"":16:"-1":16:"1"
  585. Test mbedtls_mpi_sub_mpi: 0 (1 limb) - 0 (null)
  586. mbedtls_mpi_sub_mpi:16:"00":16:"":16:"0"
  587. Test mbedtls_mpi_sub_mpi: 1 - 0 (null)
  588. mbedtls_mpi_sub_mpi:16:"1":16:"":16:"1"
  589. Test mbedtls_mpi_sub_mpi: -1 - 0 (null)
  590. mbedtls_mpi_sub_mpi:16:"-1":16:"":16:"-1"
  591. Test mbedtls_mpi_sub_mpi #1
  592. mbedtls_mpi_sub_mpi:10:"531872289054204184185084734375133399408303613982130856645299464930952178606045848877129147820387996428175564228204785846141207532462936339834139412401975338705794646595487324365194792822189473092273993580587964571659678084484152603881094176995594813302284232006001752128168901293560051833646881436219":10:"203956878356401977405765866929034577280193993314348263094772646453283062722701277632936616063144088173312372882677123879538709400158306567338328279154499698366071906766440037074217117805690872792848149112022286332144876183376326512083574821647933992961249917319836219304274280243803104015000563790123":10:"327915410697802206779318867446098822128109620667782593550526818477669115883344571244192531757243908254863191345527661966602498132304629772495811133247475640339722739829047287290977675016498600299425844468565678239514801901107826091797519355347660820341034314686165532823894621049756947818646317646096"
  593. Test mbedtls_mpi_sub_mpi #2 (Test for negative result)
  594. mbedtls_mpi_sub_mpi:10:"643808006803554439230129854961492699151386107534013432918073439524138264842370630061369715394739134090922937332590384720397133335969549256322620979036686633213903952966175107096769180017646161851573147596390153":10:"56125680981752282333498088313568935051383833838594899821664631784577337171193624243181360054669678410455329112434552942717084003541384594864129940145043086760031292483340068923506115878221189886491132772739661669044958531131327771":10:"-56125680981752282332854280306765380612153703983633407122513245677043323738275550803657221789827307780393959397039813808626161066208794210143732806809073537503708671504303382290292211925255014779394363592722015507193385383534937618"
  595. Test mbedtls_mpi_sub_int #1
  596. mbedtls_mpi_sub_int:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":-9871232:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227022647561"
  597. Test mbedtls_mpi_sub_int #2
  598. mbedtls_mpi_sub_int:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":9871232:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227002905097"
  599. Test mbedtls_mpi_sub_int: 0 (null) - 0
  600. mbedtls_mpi_sub_int:16:"":0:16:"0"
  601. Test mbedtls_mpi_sub_int: 0 (null) - 1
  602. mbedtls_mpi_sub_int:16:"":1:16:"-1"
  603. Test mbedtls_mpi_sub_int: 0 (null) - -1
  604. mbedtls_mpi_sub_int:16:"":-1:16:"1"
  605. Test mbedtls_mpi_shift_l #1
  606. mbedtls_mpi_shift_l:10:"64":1:10:"128"
  607. Test mbedtls_mpi_shift_l #2
  608. mbedtls_mpi_shift_l:10:"658385546911733550164516088405238961461880256029834598831972039469421755117818013653494814438931957316403111689187691446941406788869098983929874080332195117465344344350008880118042764943201875870917468833709791733282363323948005998269792207":37:10:"90487820548639020691922304619723076305400961610119884872723190678642804168382367856686134531865643066983017249846286450251272364365605022750900439437595355052945035915579216557330505438734955340526145476988250171181404966718289259743378883640981192704"
  609. Test mbedtls_mpi_shift_l: 0 (null) <<= 0
  610. mbedtls_mpi_shift_l:16:"":0:16:"0"
  611. Test mbedtls_mpi_shift_l: 0 (null) <<= 1
  612. mbedtls_mpi_shift_l:16:"":1:16:"0"
  613. Test mbedtls_mpi_shift_l: 0 (null) <<= 64
  614. mbedtls_mpi_shift_l:16:"":64:16:"0"
  615. Test mbedtls_mpi_shift_r #1
  616. mbedtls_mpi_shift_r:10:"128":1:10:"64"
  617. Test mbedtls_mpi_shift_r #2
  618. mbedtls_mpi_shift_r:10:"120815570979701484704906977000760567182871429114712069861589084706550626575967516787438008593490722779337547394120718248995900363209947025063336882559539208430319216688889117222633155838468458047056355241515415159736436403445579777425189969":45:10:"3433785053053426415343295076376096153094051405637175942660777670498379921354157795219578264137985649407981651226029903483433269093721578004287291678324982297860947730012217028349628999378309630601971640587504883789518896817457"
  619. Test mbedtls_mpi_shift_r #4 [#1]
  620. mbedtls_mpi_shift_r:16:"FFFFFFFFFFFFFFFF":63:16:"01"
  621. Test mbedtls_mpi_shift_r #4 [#2]
  622. mbedtls_mpi_shift_r:16:"FFFFFFFFFFFFFFFF":64:16:"00"
  623. Test mbedtls_mpi_shift_r #6
  624. mbedtls_mpi_shift_r:16:"FFFFFFFFFFFFFFFF":65:16:"00"
  625. Test mbedtls_mpi_shift_r #7
  626. mbedtls_mpi_shift_r:16:"FFFFFFFFFFFFFFFF":128:16:"00"
  627. Test mbedtls_mpi_shift_r: 0 (null) >>= 0
  628. mbedtls_mpi_shift_r:16:"":0:16:"0"
  629. Test mbedtls_mpi_shift_r: 0 (null) >>= 1
  630. mbedtls_mpi_shift_r:16:"":1:16:"0"
  631. Test mbedtls_mpi_shift_r: 0 (null) >>= 64
  632. mbedtls_mpi_shift_r:16:"":64:16:"0"
  633. Base test mbedtls_mpi_mul_mpi #1
  634. mbedtls_mpi_mul_mpi:10:"5":10:"7":10:"35"
  635. Base test mbedtls_mpi_mul_mpi #2
  636. mbedtls_mpi_mul_mpi:10:"-5":10:"7":10:"-35"
  637. Base test mbedtls_mpi_mul_mpi #3
  638. mbedtls_mpi_mul_mpi:10:"5":10:"-7":10:"-35"
  639. Base test mbedtls_mpi_mul_mpi #4
  640. mbedtls_mpi_mul_mpi:10:"-5":10:"-7":10:"35"
  641. Test mbedtls_mpi_mul_mpi: 0 (null) * 0 (null)
  642. mbedtls_mpi_mul_mpi:16:"":16:"":16:"0"
  643. Test mbedtls_mpi_mul_mpi: 0 (null) * 0 (1 limb)
  644. mbedtls_mpi_mul_mpi:16:"":16:"00":16:"0"
  645. Test mbedtls_mpi_mul_mpi: 0 (null) * 1
  646. mbedtls_mpi_mul_mpi:16:"":16:"01":16:"0"
  647. Test mbedtls_mpi_mul_mpi: 0 (null) * -1
  648. mbedtls_mpi_mul_mpi:16:"":16:"-01":16:"0"
  649. Test mbedtls_mpi_mul_mpi: 0 (1 limb) * -1
  650. mbedtls_mpi_mul_mpi:16:"00":16:"-01":16:"0"
  651. Test mbedtls_mpi_mul_mpi: 0 (1 limb) * 0 (null)
  652. mbedtls_mpi_mul_mpi:16:"00":16:"":16:"0"
  653. Test mbedtls_mpi_mul_mpi: 1 * 0 (null)
  654. mbedtls_mpi_mul_mpi:16:"01":16:"":16:"0"
  655. Test mbedtls_mpi_mul_mpi: -1 * 0 (null)
  656. mbedtls_mpi_mul_mpi:16:"-01":16:"":16:"0"
  657. Test mbedtls_mpi_mul_mpi: -1 * 0 (1 limb)
  658. mbedtls_mpi_mul_mpi:16:"-01":16:"00":16:"0"
  659. Test mbedtls_mpi_mul_mpi #1
  660. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  661. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B
  662. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  663. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B, A < 0
  664. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  665. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B, B < 0
  666. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  667. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B, A < 0, B < 0
  668. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  669. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A
  670. mbedtls_mpi_mul_mpi:16:"000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  671. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A, A < 0
  672. mbedtls_mpi_mul_mpi:16:"-000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  673. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A, B < 0
  674. mbedtls_mpi_mul_mpi:16:"000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  675. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A, A < 0, B < 0
  676. mbedtls_mpi_mul_mpi:16:"-000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  677. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A and B
  678. mbedtls_mpi_mul_mpi:16:"000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  679. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A and B, A < 0
  680. mbedtls_mpi_mul_mpi:16:"-000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  681. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A and B, B < 0
  682. mbedtls_mpi_mul_mpi:16:"000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  683. Test mbedtls_mpi_mul_mpi #1, leading 0 limb in A and B, A < 0, B < 0
  684. mbedtls_mpi_mul_mpi:16:"-000000000000000002f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-000000000000000001b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb59"
  685. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A
  686. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  687. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A, A < 0
  688. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  689. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A, B < 0
  690. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  691. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A, A < 0, B < 0
  692. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  693. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in B
  694. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  695. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in B, A < 0
  696. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  697. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in B, B < 0
  698. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  699. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in B, A < 0, B < 0
  700. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb590000000000000000"
  701. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A and B
  702. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  703. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A and B, A < 0
  704. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  705. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A and B, B < 0
  706. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  707. Test mbedtls_mpi_mul_mpi #2, trailing 0 limb in A and B, A < 0, B < 0
  708. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf24510000000000000000":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c890000000000000000":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  709. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in A
  710. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf245100000000000000000000000000000000":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  711. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in A, A < 0
  712. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf245100000000000000000000000000000000":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  713. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in A, B < 0
  714. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf245100000000000000000000000000000000":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  715. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in A, A < 0, B < 0
  716. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf245100000000000000000000000000000000":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c89":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  717. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in B
  718. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c8900000000000000000000000000000000":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  719. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in B, A < 0
  720. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c8900000000000000000000000000000000":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  721. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in B, B < 0
  722. mbedtls_mpi_mul_mpi:16:"02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c8900000000000000000000000000000000":16:"-0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  723. Test mbedtls_mpi_mul_mpi #3, trailing 0 limbs in B, A < 0, B < 0
  724. mbedtls_mpi_mul_mpi:16:"-02f77b94b179d4a51360f04fa56e2c0784ce3b8a742280b016904896a5605fbe9e0f0683f82c439d979ab14e11b34e05ae96232b18fb2e0d1319f4942732d7eadf92ae90cb8c68ec8ece154d334f553564b6f6db185b33b8d3635598c3d128acde8bbb7b13697e48d1a542e5f9168d2d83a8dd05ae1eaf2451":16:"-01b0b14c432710cde936e3fc100515e95dca61e10b8a68d9632bfa0546a9731a1ce6bebc6cb5fe6f5fd7e57b25f737f6a0ce5402e216b8b81c06f0c5ccce447d7f5631d14bff9dfa16f7cc72c56c84b636d00a5f35199d17ee9bf3f8746f44374ffd4ae22cf84089f04a9f7f356d6dc9f8cf8ef208a9b88c8900000000000000000000000000000000":16:"0503ae899d35ae5b7706b067aed7cb2952da37a5d4ad58f05f69abe14e8aaae88eab2baed858177cb4595c0edc92e5ac13c2bba2bfa23276dd023e9e52f547d4c9edb138d86aad329d7afb01e15eab7281e181cb249fc91bf09d621d86561301edda156f80e3bbff853a312852fe9e3d0541cb86801390aff1dc3c05bcb592c266f625b70e419b4c7e7e85399bb06c0e50b099b4292f9eaff4d869681faa1f745b5fcb3349ed93c572739a31dcf76b43370cf9f86cc54e982dfac9467bde915c697e60554e0d698be6bb2dd1f8bc64659f6baee7641b51f4b5ed7010c04600fcd382db84a93fe3d4d86e86a459c6cebb5900000000000000000000000000000000"
  725. Test mbedtls_mpi_mul_int #1
  726. mbedtls_mpi_mul_int:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":9871232:10:"20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":"=="
  727. Test mbedtls_mpi_mul_int #2 (Unsigned, thus failure)
  728. mbedtls_mpi_mul_int:10:"2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":-9871232:10:"-20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":"!="
  729. Test mbedtls_mpi_mul_int #3
  730. mbedtls_mpi_mul_int:10:"-2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":9871232:10:"-20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":"=="
  731. Test mbedtls_mpi_mul_int #4 (Unsigned, thus failure)
  732. mbedtls_mpi_mul_int:10:"-2039568783564019774057658669290345772801939933143482630947726464532830627227012776329":-9871232:10:"20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":"!="
  733. Test mbedtls_mpi_mul_int: 0 (null) * 0
  734. mbedtls_mpi_mul_int:16:"":0:16:"":"=="
  735. Test mbedtls_mpi_mul_int: 0 (null) * 1
  736. mbedtls_mpi_mul_int:16:"":1:16:"":"=="
  737. Test mbedtls_mpi_mul_int: 0 (null) * 0x1234
  738. mbedtls_mpi_mul_int:16:"":0x1234:16:"":"=="
  739. Base test mbedtls_mpi_div_mpi #1
  740. mbedtls_mpi_div_mpi:10:"1000":10:"13":10:"76":10:"12":0
  741. Base test mbedtls_mpi_div_mpi #2 (Divide by zero (1 limb))
  742. mbedtls_mpi_div_mpi:10:"1000":10:"0":10:"1":10:"1":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  743. Base test mbedtls_mpi_div_mpi #2 (Divide by zero (null))
  744. mbedtls_mpi_div_mpi:10:"1000":10:"":10:"1":10:"1":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  745. Base test mbedtls_mpi_div_mpi #3
  746. mbedtls_mpi_div_mpi:10:"1000":10:"-13":10:"-76":10:"12":0
  747. Test mbedtls_mpi_div_mpi: 0 (null) / 0 (null)
  748. mbedtls_mpi_div_mpi:16:"":16:"":16:"":16:"":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  749. Test mbedtls_mpi_div_mpi: 0 (null) / 0 (1 limb)
  750. mbedtls_mpi_div_mpi:16:"":16:"0":16:"":16:"":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  751. Test mbedtls_mpi_div_mpi: 0 (1 limb) / 0 (null)
  752. mbedtls_mpi_div_mpi:16:"0":16:"":16:"":16:"":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  753. Test mbedtls_mpi_div_mpi: 0 (1 limb) / 0 (1 limb)
  754. mbedtls_mpi_div_mpi:16:"0":16:"0":16:"":16:"":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  755. Test mbedtls_mpi_div_mpi: 0 (null) / 1
  756. mbedtls_mpi_div_mpi:16:"":16:"1":16:"":16:"":0
  757. Test mbedtls_mpi_div_mpi: 0 (null) / -1
  758. mbedtls_mpi_div_mpi:16:"":16:"-1":16:"":16:"":0
  759. Test mbedtls_mpi_div_mpi #1
  760. mbedtls_mpi_div_mpi:10:"20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":10:"34":10:"592148724779947824773845002981655249516095268533053127589864347174804198178334111238460803":10:"26":0
  761. Test mbedtls_mpi_div_mpi #2
  762. mbedtls_mpi_div_mpi:10:"476221599179424887669515829231223263939342135681791605842540429321038144633323941248706405375723482912535192363845116154236465184147599697841273424891410002781967962186252583311115708128167171262206919514587899883547279647025952837516324649656913580411611297312678955801899536937577476819667861053063432906071315727948826276092545739432005962781562403795455162483159362585281248265005441715080197800335757871588045959754547836825977169125866324128449699877076762316768127816074587766799018626179199776188490087103869164122906791440101822594139648973454716256383294690817576188762":10:"28911710017320205966167820725313234361535259163045867986277478145081076845846493521348693253530011243988160148063424837895971948244167867236923919506962312185829914482993478947657472351461336729641485069323635424692930278888923450060546465883490944265147851036817433970984747733020522259537":10:"16471581891701794764704009719057349996270239948993452268812975037240586099924712715366967486587417803753916334331355573776945238871512026832810626226164346328807407669366029926221415383560814338828449642265377822759768011406757061063524768140567867350208554439342320410551341675119078050953":10:"1":0
  763. Test mbedtls_mpi_div_mpi #3
  764. mbedtls_mpi_div_mpi:10:"1000":10:"7":10:"142":10:"6":0
  765. Test mbedtls_mpi_div_mpi #4
  766. mbedtls_mpi_div_mpi:10:"777":10:"7":10:"111":10:"0":0
  767. Base test mbedtls_mpi_div_int #1
  768. mbedtls_mpi_div_int:10:"1000":13:10:"76":10:"12":0
  769. Base test mbedtls_mpi_div_int #2 (Divide by zero)
  770. mbedtls_mpi_div_int:10:"1000":0:10:"1":10:"1":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  771. Base test mbedtls_mpi_div_int #3
  772. mbedtls_mpi_div_int:10:"1000":-13:10:"-76":10:"12":0
  773. Test mbedtls_mpi_div_int #1
  774. mbedtls_mpi_div_int:10:"20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":34:10:"592148724779947824773845002981655249516095268533053127589864347174804198178334111238460803":10:"26":0
  775. Test mbedtls_mpi_div_int #2
  776. mbedtls_mpi_div_int:10:"20133056642518226042310730101376278483547239130123806338055387803943342738063359782107667328":-34:10:"-592148724779947824773845002981655249516095268533053127589864347174804198178334111238460803":10:"26":0
  777. Test mbedtls_mpi_div_int: 0 (null) / 0
  778. mbedtls_mpi_div_int:16:"":0:16:"":16:"":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  779. Test mbedtls_mpi_div_int: 0 (1 limb) / 0
  780. mbedtls_mpi_div_int:16:"00":0:16:"":16:"":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  781. Test mbedtls_mpi_div_int: 0 (null) / 1
  782. mbedtls_mpi_div_int:16:"":1:16:"":16:"":0
  783. Base test mbedtls_mpi_mod_mpi #1
  784. mbedtls_mpi_mod_mpi:10:"1000":10:"13":10:"12":0
  785. Base test mbedtls_mpi_mod_mpi #2 (Divide by zero (null))
  786. mbedtls_mpi_mod_mpi:10:"1000":10:"":10:"0":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  787. Base test mbedtls_mpi_mod_mpi #2 (Divide by zero (1 limb))
  788. mbedtls_mpi_mod_mpi:10:"1000":10:"0":10:"0":MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  789. Base test mbedtls_mpi_mod_mpi #3
  790. mbedtls_mpi_mod_mpi:10:"-1000":10:"13":10:"1":0
  791. Base test mbedtls_mpi_mod_mpi #4 (Negative modulo)
  792. mbedtls_mpi_mod_mpi:10:"1000":10:"-13":10:"-1":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  793. Base test mbedtls_mpi_mod_mpi #5 (Negative modulo)
  794. mbedtls_mpi_mod_mpi:10:"-1000":10:"-13":10:"-12":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  795. Test mbedtls_mpi_mod_mpi: 0 (null) % 1
  796. mbedtls_mpi_mod_mpi:16:"":16:"1":16:"":0
  797. Test mbedtls_mpi_mod_mpi: 0 (null) % -1
  798. mbedtls_mpi_mod_mpi:16:"":16:"-1":16:"":MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  799. Base test mbedtls_mpi_mod_int #1
  800. mbedtls_mpi_mod_int:10:"1000":13:12:0
  801. Base test mbedtls_mpi_mod_int #2 (Divide by zero)
  802. mbedtls_mpi_mod_int:10:"1000":0:0:MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
  803. Base test mbedtls_mpi_mod_int #3
  804. mbedtls_mpi_mod_int:10:"-1000":13:1:0
  805. Base test mbedtls_mpi_mod_int #4 (Negative modulo)
  806. mbedtls_mpi_mod_int:10:"1000":-13:0:MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  807. Base test mbedtls_mpi_mod_int #5 (Negative modulo)
  808. mbedtls_mpi_mod_int:10:"-1000":-13:0:MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  809. Base test mbedtls_mpi_mod_int #6 (By 1)
  810. mbedtls_mpi_mod_int:10:"1000":1:0:0
  811. Base test mbedtls_mpi_mod_int #7 (By 2)
  812. mbedtls_mpi_mod_int:10:"1001":2:1:0
  813. Base test mbedtls_mpi_mod_int #8 (By 2)
  814. mbedtls_mpi_mod_int:10:"1000":2:0:0
  815. Test mbedtls_mpi_mod_int: 0 (null) % 1
  816. mbedtls_mpi_mod_int:16:"":1:0:0
  817. Test mbedtls_mpi_mod_int: 0 (null) % -1
  818. mbedtls_mpi_mod_int:16:"":-1:0:MBEDTLS_ERR_MPI_NEGATIVE_VALUE
  819. Base test mbedtls_mpi_exp_mod #1
  820. mbedtls_mpi_exp_mod:10:"23":10:"13":10:"29":10:"24":0
  821. Base test mbedtls_mpi_exp_mod #2 (Even N)
  822. mbedtls_mpi_exp_mod:10:"23":10:"13":10:"30":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  823. Base test mbedtls_mpi_exp_mod #2 (N = 0 (null))
  824. mbedtls_mpi_exp_mod:10:"23":10:"13":10:"":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  825. Base test mbedtls_mpi_exp_mod #3 (Negative N)
  826. mbedtls_mpi_exp_mod:10:"23":10:"13":10:"-29":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  827. Base test mbedtls_mpi_exp_mod #4 (Negative base)
  828. mbedtls_mpi_exp_mod:10:"-23":10:"13":10:"29":10:"5":0
  829. Base test mbedtls_mpi_exp_mod #5 (Negative exponent)
  830. mbedtls_mpi_exp_mod:10:"23":10:"-13":10:"29":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  831. Base test mbedtls_mpi_exp_mod #6 (Negative base + exponent)
  832. mbedtls_mpi_exp_mod:10:"-23":10:"-13":10:"29":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  833. Test mbedtls_mpi_exp_mod: 0 (null) ^ 0 (null) mod 9
  834. mbedtls_mpi_exp_mod:16:"":16:"":16:"09":16:"1":0
  835. Test mbedtls_mpi_exp_mod: 0 (null) ^ 0 (1 limb) mod 9
  836. mbedtls_mpi_exp_mod:16:"":16:"00":16:"09":16:"1":0
  837. Test mbedtls_mpi_exp_mod: 0 (null) ^ 1 mod 9
  838. mbedtls_mpi_exp_mod:16:"":16:"01":16:"09":16:"":0
  839. Test mbedtls_mpi_exp_mod: 0 (null) ^ 2 mod 9
  840. mbedtls_mpi_exp_mod:16:"":16:"02":16:"09":16:"":0
  841. Test mbedtls_mpi_exp_mod: 0 (1 limb) ^ 0 (null) mod 9
  842. mbedtls_mpi_exp_mod:16:"00":16:"":16:"09":16:"1":0
  843. Test mbedtls_mpi_exp_mod: 0 (1 limb) ^ 0 (1 limb) mod 9
  844. mbedtls_mpi_exp_mod:16:"00":16:"00":16:"09":16:"1":0
  845. Test mbedtls_mpi_exp_mod: 0 (1 limb) ^ 1 mod 9
  846. mbedtls_mpi_exp_mod:16:"00":16:"01":16:"09":16:"":0
  847. Test mbedtls_mpi_exp_mod: 0 (1 limb) ^ 2 mod 9
  848. mbedtls_mpi_exp_mod:16:"00":16:"02":16:"09":16:"":0
  849. Test mbedtls_mpi_exp_mod: 1 ^ 0 (null) mod 9
  850. mbedtls_mpi_exp_mod:16:"01":16:"":16:"09":16:"1":0
  851. Test mbedtls_mpi_exp_mod: 4 ^ 0 (null) mod 9
  852. mbedtls_mpi_exp_mod:16:"04":16:"":16:"09":16:"1":0
  853. Test mbedtls_mpi_exp_mod: 10 ^ 0 (null) mod 9
  854. mbedtls_mpi_exp_mod:16:"0a":16:"":16:"09":16:"1":0
  855. Test mbedtls_mpi_exp_mod: 1 ^ 0 (1 limb) mod 9
  856. mbedtls_mpi_exp_mod:16:"01":16:"00":16:"09":16:"1":0
  857. Test mbedtls_mpi_exp_mod: 4 ^ 0 (1 limb) mod 9
  858. mbedtls_mpi_exp_mod:16:"04":16:"00":16:"09":16:"1":0
  859. Test mbedtls_mpi_exp_mod: 10 ^ 0 (1 limb) mod 9
  860. mbedtls_mpi_exp_mod:16:"0a":16:"00":16:"09":16:"1":0
  861. Test mbedtls_mpi_exp_mod: MAX_SIZE exponent
  862. mbedtls_mpi_exp_mod_size:2:MBEDTLS_MPI_MAX_SIZE:10:10:"":0
  863. Test mbedtls_mpi_exp_mod: MAX_SIZE + 1 exponent
  864. mbedtls_mpi_exp_mod_size:2:MBEDTLS_MPI_MAX_SIZE + 1:10:10:"":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  865. Test mbedtls_mpi_exp_mod: MAX_SIZE modulus
  866. mbedtls_mpi_exp_mod_size:2:2:MBEDTLS_MPI_MAX_SIZE:10:"":0
  867. Test mbedtls_mpi_exp_mod: MAX_SIZE + 1 modulus
  868. mbedtls_mpi_exp_mod_size:2:2:MBEDTLS_MPI_MAX_SIZE + 1:10:"":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  869. Test mbedtls_mpi_exp_mod: MAX_SIZE exponent and modulus
  870. mbedtls_mpi_exp_mod_size:2:MBEDTLS_MPI_MAX_SIZE:MBEDTLS_MPI_MAX_SIZE:10:"":0
  871. Test mbedtls_mpi_exp_mod: MAX_SIZE + 1 exponent and modulus
  872. mbedtls_mpi_exp_mod_size:2:MBEDTLS_MPI_MAX_SIZE + 1:MBEDTLS_MPI_MAX_SIZE + 1:10:"":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  873. Test mbedtls_mpi_exp_mod #1
  874. depends_on:MPI_MAX_BITS_LARGER_THAN_792
  875. mbedtls_mpi_exp_mod:10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"5781538327977828897150909166778407659250458379645823062042492461576758526757490910073628008613977550546382774775570888130029763571528699574717583228939535960234464230882573615930384979100379102915657483866755371559811718767760594919456971354184113721":10:"583137007797276923956891216216022144052044091311388601652961409557516421612874571554415606746479105795833145583959622117418531166391184939066520869800857530421873250114773204354963864729386957427276448683092491947566992077136553066273207777134303397724679138833126700957":10:"114597449276684355144920670007147953232659436380163461553186940113929777196018164149703566472936578890991049344459204199888254907113495794730452699842273939581048142004834330369483813876618772578869083248061616444392091693787039636316845512292127097865026290173004860736":0
  876. Test mbedtls_mpi_exp_mod (Negative base) [#1]
  877. mbedtls_mpi_exp_mod:10:"-10000000000":10:"10000000000":10:"99999":10:"1":0
  878. Test mbedtls_mpi_exp_mod (Negative base) [#2]
  879. depends_on:MPI_MAX_BITS_LARGER_THAN_792
  880. mbedtls_mpi_exp_mod:16:"-9f13012cd92aa72fb86ac8879d2fde4f7fd661aaae43a00971f081cc60ca277059d5c37e89652e2af2585d281d66ef6a9d38a117e9608e9e7574cd142dc55278838a2161dd56db9470d4c1da2d5df15a908ee2eb886aaa890f23be16de59386663a12f1afbb325431a3e835e3fd89b98b96a6f77382f458ef9a37e1f84a03045c8676ab55291a94c2228ea15448ee96b626b998":16:"40a54d1b9e86789f06d9607fb158672d64867665c73ee9abb545fc7a785634b354c7bae5b962ce8040cf45f2c1f3d3659b2ee5ede17534c8fc2ec85c815e8df1fe7048d12c90ee31b88a68a081f17f0d8ce5f4030521e9400083bcea73a429031d4ca7949c2000d597088e0c39a6014d8bf962b73bb2e8083bd0390a4e00b9b3":16:"eeaf0ab9adb38dd69c33f80afa8fc5e86072618775ff3c0b9ea2314c9c256576d674df7496ea81d3383b4813d692c6e0e0d5d8e250b98be48e495c1d6089dad15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e57ec68edbc3c05726cc02fd4cbf4976eaa9afd5138fe8376435b9fc61d2fc0eb06e3":16:"21acc7199e1b90f9b4844ffe12c19f00ec548c5d32b21c647d48b6015d8eb9ec9db05b4f3d44db4227a2b5659c1a7cceb9d5fa8fa60376047953ce7397d90aaeb7465e14e820734f84aa52ad0fc66701bcbb991d57715806a11531268e1e83dd48288c72b424a6287e9ce4e5cc4db0dd67614aecc23b0124a5776d36e5c89483":0
  881. Base test GCD #1
  882. mbedtls_mpi_gcd:10:"693":10:"609":10:"21"
  883. Base test GCD #2
  884. mbedtls_mpi_gcd:10:"1764":10:"868":10:"28"
  885. Base test GCD #3
  886. mbedtls_mpi_gcd:10:"768454923":10:"542167814":10:"1"
  887. Test GCD: 0 (null), 0 (null)
  888. mbedtls_mpi_gcd:16:"":16:"":16:"0"
  889. Test GCD: 0 (null), 0 (1 limb)
  890. mbedtls_mpi_gcd:16:"":16:"00":16:"0"
  891. Test GCD: 0 (null), 3
  892. mbedtls_mpi_gcd:16:"":16:"03":16:"3"
  893. Test GCD: 0 (null), 6
  894. mbedtls_mpi_gcd:16:"":16:"06":16:"6"
  895. Test GCD: 0 (1 limb), 0 (null)
  896. mbedtls_mpi_gcd:16:"00":16:"":16:"0"
  897. Test GCD: 0 (1 limb), 3
  898. mbedtls_mpi_gcd:16:"00":16:"03":16:"3"
  899. Test GCD: 0 (1 limb), 6
  900. mbedtls_mpi_gcd:16:"00":16:"06":16:"6"
  901. Test GCD: 3, 0 (null)
  902. mbedtls_mpi_gcd:16:"03":16:"":16:"3"
  903. Test GCD: 3, 0 (1 limb)
  904. mbedtls_mpi_gcd:16:"03":16:"00":16:"3"
  905. Test GCD: 6, 0 (null)
  906. mbedtls_mpi_gcd:16:"06":16:"":16:"6"
  907. Test GCD: 6, 0 (1 limb)
  908. mbedtls_mpi_gcd:16:"06":16:"00":16:"6"
  909. Test GCD: gcd=1, 0 < A < B
  910. mbedtls_mpi_gcd:10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"5781538327977828897150909166778407659250458379645823062042492461576758526757490910073628008613977550546382774775570888130029763571528699574717583228939535960234464230882573615930384979100379102915657483866755371559811718767760594919456971354184113721":10:"1"
  911. Test GCD: gcd=1, 0 < B < A
  912. mbedtls_mpi_gcd:10:"5781538327977828897150909166778407659250458379645823062042492461576758526757490910073628008613977550546382774775570888130029763571528699574717583228939535960234464230882573615930384979100379102915657483866755371559811718767760594919456971354184113721":10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"1"
  913. Test GCD: gcd=1, A > 0, B < 0
  914. mbedtls_mpi_gcd:10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"-5781538327977828897150909166778407659250458379645823062042492461576758526757490910073628008613977550546382774775570888130029763571528699574717583228939535960234464230882573615930384979100379102915657483866755371559811718767760594919456971354184113721":10:"1"
  915. Test GCD: gcd=1, A < 0 < B, |A| < |B|
  916. mbedtls_mpi_gcd:10:"-433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"5781538327977828897150909166778407659250458379645823062042492461576758526757490910073628008613977550546382774775570888130029763571528699574717583228939535960234464230882573615930384979100379102915657483866755371559811718767760594919456971354184113721":10:"1"
  917. Test GCD: gcd=1, B < A < 0
  918. mbedtls_mpi_gcd:10:"-433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"-5781538327977828897150909166778407659250458379645823062042492461576758526757490910073628008613977550546382774775570888130029763571528699574717583228939535960234464230882573615930384979100379102915657483866755371559811718767760594919456971354184113721":10:"1"
  919. Test GCD: gcd=2, 0 < A < B
  920. mbedtls_mpi_gcd:10:"866038481820754956434747145919120219639297294032193121047538021762345738166676571147513149114791725930190032967735626087327963892955396933002903664815184654712662526249110275464787876484571564289857507839177265358101598397874265844290169694":10:"11563076655955657794301818333556815318500916759291646124084984923153517053514981820147256017227955101092765549551141776260059527143057399149435166457879071920468928461765147231860769958200758205831314967733510743119623437535521189838913942708368227442":10:"2"
  921. Test GCD: gcd=2, 0 < B < A
  922. mbedtls_mpi_gcd:10:"11563076655955657794301818333556815318500916759291646124084984923153517053514981820147256017227955101092765549551141776260059527143057399149435166457879071920468928461765147231860769958200758205831314967733510743119623437535521189838913942708368227442":10:"866038481820754956434747145919120219639297294032193121047538021762345738166676571147513149114791725930190032967735626087327963892955396933002903664815184654712662526249110275464787876484571564289857507839177265358101598397874265844290169694":10:"2"
  923. Test GCD: gcd=3, 0 < A < B
  924. mbedtls_mpi_gcd:10:"1299057722731132434652120718878680329458945941048289681571307032643518607250014856721269723672187588895285049451603439130991945839433095399504355497222776982068993789373665413197181814726857346434786261758765898037152397596811398766435254541":10:"17344614983933486691452727500335222977751375138937469186127477384730275580272472730220884025841932651639148324326712664390089290714586098724152749686818607880703392692647720847791154937301137308746972451600266114679435156303281784758370914062552341163":10:"3"
  925. Test GCD: gcd=3, 0 < B < A
  926. mbedtls_mpi_gcd:10:"17344614983933486691452727500335222977751375138937469186127477384730275580272472730220884025841932651639148324326712664390089290714586098724152749686818607880703392692647720847791154937301137308746972451600266114679435156303281784758370914062552341163":10:"1299057722731132434652120718878680329458945941048289681571307032643518607250014856721269723672187588895285049451603439130991945839433095399504355497222776982068993789373665413197181814726857346434786261758765898037152397596811398766435254541":10:"3"
  927. Test GCD: gcd=4, 0 < A < B
  928. mbedtls_mpi_gcd:10:"1732076963641509912869494291838240439278594588064386242095076043524691476333353142295026298229583451860380065935471252174655927785910793866005807329630369309425325052498220550929575752969143128579715015678354530716203196795748531688580339388":10:"23126153311911315588603636667113630637001833518583292248169969846307034107029963640294512034455910202185531099102283552520119054286114798298870332915758143840937856923530294463721539916401516411662629935467021486239246875071042379677827885416736454884":10:"4"
  929. Test GCD: gcd=4, 0 < B < A
  930. mbedtls_mpi_gcd:10:"23126153311911315588603636667113630637001833518583292248169969846307034107029963640294512034455910202185531099102283552520119054286114798298870332915758143840937856923530294463721539916401516411662629935467021486239246875071042379677827885416736454884":10:"1732076963641509912869494291838240439278594588064386242095076043524691476333353142295026298229583451860380065935471252174655927785910793866005807329630369309425325052498220550929575752969143128579715015678354530716203196795748531688580339388":10:"4"
  931. Test GCD: gcd=6, 0 < A < B
  932. mbedtls_mpi_gcd:10:"2598115445462264869304241437757360658917891882096579363142614065287037214500029713442539447344375177790570098903206878261983891678866190799008710994445553964137987578747330826394363629453714692869572523517531796074304795193622797532870509082":10:"34689229967866973382905455000670445955502750277874938372254954769460551160544945460441768051683865303278296648653425328780178581429172197448305499373637215761406785385295441695582309874602274617493944903200532229358870312606563569516741828125104682326":10:"6"
  933. Test GCD: gcd=6, 0 < B < A
  934. mbedtls_mpi_gcd:10:"34689229967866973382905455000670445955502750277874938372254954769460551160544945460441768051683865303278296648653425328780178581429172197448305499373637215761406785385295441695582309874602274617493944903200532229358870312606563569516741828125104682326":10:"2598115445462264869304241437757360658917891882096579363142614065287037214500029713442539447344375177790570098903206878261983891678866190799008710994445553964137987578747330826394363629453714692869572523517531796074304795193622797532870509082":10:"6"
  935. Test GCD: 0 < A = B
  936. mbedtls_mpi_gcd:10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847":10:"433019240910377478217373572959560109819648647016096560523769010881172869083338285573756574557395862965095016483867813043663981946477698466501451832407592327356331263124555137732393938242285782144928753919588632679050799198937132922145084847"
  937. Base test mbedtls_mpi_inv_mod #1
  938. mbedtls_mpi_inv_mod:10:"3":10:"11":10:"4":0
  939. Test mbedtls_mpi_inv_mod: mod 0 (null)
  940. mbedtls_mpi_inv_mod:10:"3":10:"":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  941. Test mbedtls_mpi_inv_mod: mod 0 (1 limb)
  942. mbedtls_mpi_inv_mod:10:"3":10:"0":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  943. Test mbedtls_mpi_inv_mod: mod negative
  944. mbedtls_mpi_inv_mod:10:"3":10:"-11":10:"4":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  945. Test mbedtls_mpi_inv_mod: 2^-1 mod 4
  946. mbedtls_mpi_inv_mod:10:"2":10:"4":10:"0":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  947. Test mbedtls_mpi_inv_mod: mod 1
  948. mbedtls_mpi_inv_mod:10:"3":10:"1":10:"0":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  949. Test mbedtls_mpi_inv_mod: 0 (null) ^-1
  950. mbedtls_mpi_inv_mod:16:"":16:"11":16:"":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  951. Test mbedtls_mpi_inv_mod: 0 (1 limb) ^-1
  952. mbedtls_mpi_inv_mod:16:"00":16:"11":16:"":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  953. Test mbedtls_mpi_inv_mod #1
  954. mbedtls_mpi_inv_mod:16:"aa4df5cb14b4c31237f98bd1faf527c283c2d0f3eec89718664ba33f9762907c":16:"fffbbd660b94412ae61ead9c2906a344116e316a256fd387874c6c675b1d587d":16:"8d6a5c1d7adeae3e94b9bcd2c47e0d46e778bc8804a2cc25c02d775dc3d05b0c":0
  955. Base test mbedtls_mpi_is_prime #1
  956. depends_on:MBEDTLS_GENPRIME
  957. mbedtls_mpi_is_prime:10:"0":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  958. Base test mbedtls_mpi_is_prime #2
  959. depends_on:MBEDTLS_GENPRIME
  960. mbedtls_mpi_is_prime:10:"1":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  961. Base test mbedtls_mpi_is_prime #3
  962. depends_on:MBEDTLS_GENPRIME
  963. mbedtls_mpi_is_prime:10:"2":0
  964. Base test mbedtls_mpi_is_prime #4
  965. depends_on:MBEDTLS_GENPRIME
  966. mbedtls_mpi_is_prime:10:"3":0
  967. Base test mbedtls_mpi_is_prime #5
  968. depends_on:MBEDTLS_GENPRIME
  969. mbedtls_mpi_is_prime:10:"4":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  970. Base test mbedtls_mpi_is_prime #6
  971. depends_on:MBEDTLS_GENPRIME
  972. mbedtls_mpi_is_prime:10:"5":0
  973. Base test mbedtls_mpi_is_prime #7
  974. depends_on:MBEDTLS_GENPRIME
  975. mbedtls_mpi_is_prime:10:"27":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  976. Base test mbedtls_mpi_is_prime #8
  977. depends_on:MBEDTLS_GENPRIME
  978. mbedtls_mpi_is_prime:10:"47":0
  979. Test mbedtls_mpi_is_prime #1a
  980. depends_on:MBEDTLS_GENPRIME
  981. mbedtls_mpi_is_prime:10:"83726728883146151979668243326097049289208482987685965276439157162337476477581":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  982. Test mbedtls_mpi_is_prime #1b
  983. depends_on:MBEDTLS_GENPRIME
  984. mbedtls_mpi_is_prime:10:"81248637410584921454869308488899267096530643632730258201256092582281263244641":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  985. Test mbedtls_mpi_is_prime #2a
  986. depends_on:MBEDTLS_GENPRIME
  987. mbedtls_mpi_is_prime:10:"827131507221654563937832686696200995595835694437983658840870036586124168186967796809117749047430768825822857042432722828096779098498192459819306321073968735177531164565305635281198148032612029767584644305912099":0
  988. Test mbedtls_mpi_is_prime #2b
  989. depends_on:MBEDTLS_GENPRIME
  990. mbedtls_mpi_is_prime:10:"827131507221654563937832686696200995595835694437983658840870036586124168186967796809117749047430768825822857042432722828096779098498192459819306321073968735177531164565305635281198148032612029767584644305912001":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE
  991. Test mbedtls_mpi_is_prime #3
  992. depends_on:MBEDTLS_GENPRIME
  993. mbedtls_mpi_is_prime:10:"2833419889721787128217599":0
  994. Test mbedtls_mpi_is_prime #4
  995. depends_on:MBEDTLS_GENPRIME
  996. mbedtls_mpi_is_prime:10:"195845982777569926302400511":0
  997. Test mbedtls_mpi_is_prime #5 [#1]
  998. depends_on:MBEDTLS_GENPRIME
  999. mbedtls_mpi_is_prime:10:"4776913109852041418248056622882488319":0
  1000. Test mbedtls_mpi_is_prime #5 [#2]
  1001. depends_on:MBEDTLS_GENPRIME
  1002. mbedtls_mpi_is_prime:10:"768614336404564651":0
  1003. Test mbedtls_mpi_is_prime #6
  1004. depends_on:MBEDTLS_GENPRIME
  1005. mbedtls_mpi_is_prime:10:"201487636602438195784363":0
  1006. Test mbedtls_mpi_is_prime #7
  1007. depends_on:MBEDTLS_GENPRIME
  1008. mbedtls_mpi_is_prime:10:"845100400152152934331135470251":0
  1009. Test mbedtls_mpi_is_prime #8
  1010. depends_on:MBEDTLS_GENPRIME
  1011. mbedtls_mpi_is_prime:10:"56713727820156410577229101238628035243":0
  1012. Test mbedtls_mpi_is_prime #9
  1013. depends_on:MBEDTLS_GENPRIME
  1014. mbedtls_mpi_is_prime:10:"203956878356401977405765866929034577280193993314348263094772646453283062722701277632936616063144088173312372882677123879538709400158306567338328279154499698366071906766440037074217117805690872792848149112022286332144876183376326512083574821647933992961249917319836219304274280243803104015000563790123":0
  1015. Test mbedtls_mpi_is_prime #10
  1016. depends_on:MBEDTLS_GENPRIME
  1017. mbedtls_mpi_is_prime:10:"531872289054204184185084734375133399408303613982130856645299464930952178606045848877129147820387996428175564228204785846141207532462936339834139412401975338705794646595487324365194792822189473092273993580587964571659678084484152603881094176995594813302284232006001752128168901293560051833646881436219":0
  1018. Test mbedtls_mpi_is_prime #11
  1019. depends_on:MBEDTLS_GENPRIME
  1020. mbedtls_mpi_is_prime:10:"319705304701141539155720137200974664666792526059405792539680974929469783512821793995613718943171723765238853752439032835985158829038528214925658918372196742089464683960239919950882355844766055365179937610326127675178857306260955550407044463370239890187189750909036833976197804646589380690779463976173":0
  1021. Test mbedtls_mpi_is_prime #12
  1022. depends_on:MBEDTLS_GENPRIME
  1023. mbedtls_mpi_is_prime:10:"200603822195324642393516294012917598972967449320074999667103434371470616000652036570009912021332527788252300901905236578801044680456930305350440933538867383130165841118050781326291059830545891570648243241795871":0
  1024. Test mbedtls_mpi_is_prime #13
  1025. depends_on:MBEDTLS_GENPRIME
  1026. mbedtls_mpi_is_prime:10:"827131507221654563937832686696200995595835694437983658840870036586124168186967796809117749047430768825822857042432722828096779098498192459819306321073968735177531164565305635281198148032612029767584644305912099":0
  1027. Test mbedtls_mpi_is_prime #14
  1028. depends_on:MBEDTLS_GENPRIME
  1029. mbedtls_mpi_is_prime:10:"964274047248418797145090983157197980855078966882276492572788532954904112655338439361306213898569516593744267391754033306465125919199692703323878557833023573312685002670662846477592597659826113460619815244721311":0
  1030. Test mbedtls_mpi_is_prime #15
  1031. depends_on:MBEDTLS_GENPRIME
  1032. mbedtls_mpi_is_prime:10:"170141183460469231731687303715884105727":0
  1033. Test mbedtls_mpi_is_prime #16
  1034. depends_on:MBEDTLS_GENPRIME
  1035. mbedtls_mpi_is_prime:10:"2147483647":0
  1036. Test mbedtls_mpi_is_prime #17
  1037. depends_on:MBEDTLS_GENPRIME
  1038. mbedtls_mpi_is_prime:10:"961748941":0
  1039. Test mbedtls_mpi_is_prime #18
  1040. depends_on:MBEDTLS_GENPRIME
  1041. mbedtls_mpi_is_prime:10:"179424691":0
  1042. Test mbedtls_mpi_is_prime #19
  1043. depends_on:MBEDTLS_GENPRIME
  1044. mbedtls_mpi_is_prime:10:"32452867":0
  1045. Test mbedtls_mpi_is_prime #20
  1046. depends_on:MBEDTLS_GENPRIME
  1047. mbedtls_mpi_is_prime:10:"49979687":0
  1048. Test mbedtls_mpi_is_prime_det (4 non-witnesses)
  1049. depends_on:MBEDTLS_GENPRIME
  1050. mbedtls_mpi_is_prime_det:"043BD64BA10B11DA83FBD296B04BCA9E0552FAF6E09CAC74E2D7E735ED0DB09FC47ED76145644203EE0C826013BC602F560BCDAAED557D04683859A65D659FF828A245A2C5B1AC41E01E4669A525A45E23AF":"040EA852F7935ACCECC0E87B845281F047D10DC9AAFEF990AF9D3D66770DA30B0C5B5E03EEA8C0CB79B936FE0BB8EE5389EC1D34EB16C58AA3F2E11AF084160CDF6400BE1CC179867AB074866952D9F34EE7042D27F960E715A97FCB93F3182247D0A6AE51BD21CC2F6B0651F9E572C5FB86F3137053FA85FD7A51816D69B3A53A5A438C17754836D04E98CA240B901F828332F2D72D88C497DA45F533F99A6E53EDEA6B0424EC8951B048FA9A80134B37D0A67014597934E3CFC52C5A4DD4751ADF8D66FC79E84E2A3148C4B15C17E12CB659390FD275F39A331FFC80EC699BC3F6FAB868E30E9B14575FCDAB6FAED01E00112DD28704177E09C335AD43A696FEA761E8DF3B0663277A5C3637F9060CB5E5654F72E9A6B0F369E660AD4CF7ABF4195493545B367BD55271CD4BB7D9C15D3F508FE8F7409C2126FC8E73B43A67CD4EFB21E9F15DBF040A2A8D5F5ED75CEAC12B595C0051F3EC9D5A58ACE82A9506E64F780E9836728260FFE1BFD73E8A9869E3D46A35A856D3028F7FEAB9F4F1A04449AEDC80017EE1014080D87F0B50C8EF255324CD89F7D039":82:5
  1051. Test mbedtls_mpi_is_prime_det (39 non-witnesses)
  1052. depends_on:MBEDTLS_GENPRIME
  1053. mbedtls_mpi_is_prime_det:"155102B67930FBE8858DF6C0642D77D419A7B7968E622CC7500F3E3F2C5168368C50E0083187":"119B3E2C721834D83416239B04447AA18AE0163E61DCAE97054563D79E094A6FA4485BD6A0501445BF57FE9C058926CDB862E04CC1A95D79D61D9AB3466857A53E04F8D7470C9C86649B226A13DDC534E18DFD5C22FAEA317CA4D4960F18457FD6D2FFB5F3273F74C89980DC774590D8D30D1159CA81999ED94A042D67DA68C82616AD46C2C88288A8EBD0B37AC7C152D9522CA4544642AD1210F6B642FEBF43563FA872B0DEFAFC69D0B6570E8FEA9570D0AADCFA9B06CC8BFD62CEDC221541210EEEF9762448C6D49F26AA767A4D66CB168589E0201923015314E6CD4A480E5936E7CF145F73A564C5B782635B3AFC3028E2632C5D3458224A7C9E8BA1876E8F690463C878292D3DC011E9640331E7F7621F2B5E0F6713DD8C9D6767521C4BA880DA8D11C67753C8493D2C4C4F1443147550D0B25B7FAD04EAFA9F8AA60974C1365C8A794CFEECEB4279B1150909A97E5A7A10B5D91186CA5B25A612036631FE73529C8CFAE51E76FB704A772DE5320EFC1212E7A399B1FEBF57D014AF9129DFF5D2C5DFBBEEAC55F360CF6D22FA90B8E2E9AD0C71AB6495A9452A58D653B8CC26128C66B43EFBA6E39AEC5717A1A3C2AE1449FCABAFE1180B159DA55190CD81A3D9E8D798647E11B827F0A057D6DA5AAD78AB5112EE65E10E8B8B369BA24E1B8AD2CD8548C497016C07A143DE1232F8059BE303572456FA92E76A0F23D1340629228B7D27C02D3833A72745B91A3DBEB5E081117A9F19597F00E4277B414FAEA8C8CEB895C37F956A5A22F8D7A10ADA50B22BAB312504904511AA0EFDD4D3BF20ECB17E8A684564FFB5BBD5E22C429F9A75A4FB4AE468FE7612ED53C7A11212E7EF3435CC9CA6E7DB167B8CCE2BECF35F89013F8F876223C77FA81570970858663C6E32B91080AA47F9C90177F51E6FD7747B910C9489C7B6ACB070996198AD9A40A69711274159210A9A12DBAAA4FB4632446066AB70D735DC95F7C2BCE517E88C064D728DE82B1B043DF4AEE0EFF5131120A4E5B9B4180EB6F6B8A0D1491ABDA069058A9966B1A517D8E7B4997DC52A1E698FD79E271153DF1913FE6787A5D99DE69F39C3F22D26DC731CFBB33FF5C267D85D7A3DAE8E1C87E1DB2F1236212EF1942EA756967FB3D07D629E59EA4034D9A9B5E270DD4A31C8A3DFDA99C1094B5537132C196DA2AEAF5253A019B9AF25B5DCB0D4DD75C7C9C353DA9DAABFB23959A5455312E7E1C21268C1BC14E83DCFDF50C27FD3E8B4EDC04C5F3CB5FCFFF2B57151E1B1EE1A6456DC006BC43E1158674AA4CF7D146DE4A57103BE43ED130C8007294ED2418C7A2B769A7D20EBB5A8367A77B313F81BB119B9954305FF160FF83EED7F808EE6D340A5CCC000CF81AA497D315D350CCE4E86A31456B8AA85B677491FC662933DFA55EB5BFF64B8D85430D676A85D1CAFAFF383E68C4E6C22A51063739EC03FC58C36C07C44E54828BE2152B2E9AFB0F179B157D09B64C147B524BB5424BB1914419424D9100D06EDCFC718F4DF3D562E9E16C446663F35273CA7BC5426B868A80C8D415C9A12A1619CDB7CDB5BEBC70313150BDF8C3AB26B809FE62D28E798EF1EF98C410A2DA0A9071F82154AC569078B0E647E2C085D1D907E634453442803D0492D3D0C78CACB762020C0E589C8B0981321EA2771305FD0413F3B2963FCE9A232F6641DB7E12ADC009A032063C41756E5E19E5711DE12711F07AFE7545B4D83F3EFD7BFD0435297C89DF3D4AF96EBE2CE8D64B93E36EA5D7E5A0492151D0CAEE7449A7D35E1A3C83E22C3B35162C073CC3B1CF76FBDEE84270721FC042EAAEB7325110181415E2031CFB7462F15111291CDAC0560FF9F4C7341F2FA261B97CEF348D074AA2EB4DB153FE6B1410519DA4213B611999868F3B867A2B6D758D333C4989DE80782683CA26ECDE373C71524F01B76349CE8A07A5EBECBB42259CF970DDA756EC996B189FEA045FEE45F23D476960913106ECA2510B8517AA75D56FA4152B2BDDC212014E5D07FD964D6EE532F0616DF74E104659955132331FABF2D2AD265E71C93C648A956FA0A3DB21FF103D516527F2DA0E870340B61EE8A8ED913B60605EB5A67B834D0FC90564386012585609870FEF6530B3E3C037B55506F0B5694F6B0FC":38:40
  1054. Test mbedtls_mpi_gen_prime (Too small)
  1055. depends_on:MBEDTLS_GENPRIME
  1056. mbedtls_mpi_gen_prime:2:0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1057. Test mbedtls_mpi_gen_prime (OK, minimum size)
  1058. depends_on:MBEDTLS_GENPRIME
  1059. mbedtls_mpi_gen_prime:3:0:0
  1060. Test mbedtls_mpi_gen_prime (corner case limb size -1 bits)
  1061. depends_on:MBEDTLS_GENPRIME
  1062. mbedtls_mpi_gen_prime:63:0:0
  1063. Test mbedtls_mpi_gen_prime (corner case limb size)
  1064. depends_on:MBEDTLS_GENPRIME
  1065. mbedtls_mpi_gen_prime:64:0:0
  1066. Test mbedtls_mpi_gen_prime (corner case limb size +1 bits)
  1067. depends_on:MBEDTLS_GENPRIME
  1068. mbedtls_mpi_gen_prime:65:0:0
  1069. Test mbedtls_mpi_gen_prime (Larger)
  1070. depends_on:MBEDTLS_GENPRIME
  1071. mbedtls_mpi_gen_prime:128:0:0
  1072. Test mbedtls_mpi_gen_prime (Safe)
  1073. depends_on:MBEDTLS_GENPRIME
  1074. mbedtls_mpi_gen_prime:128:MBEDTLS_MPI_GEN_PRIME_FLAG_DH:0
  1075. Test mbedtls_mpi_gen_prime (Safe with lower error rate)
  1076. depends_on:MBEDTLS_GENPRIME
  1077. mbedtls_mpi_gen_prime:128:MBEDTLS_MPI_GEN_PRIME_FLAG_DH | MBEDTLS_MPI_GEN_PRIME_FLAG_LOW_ERR:0
  1078. Test mbedtls_mpi_gen_prime standard RSA #1 (lower error rate)
  1079. depends_on:MBEDTLS_GENPRIME
  1080. mbedtls_mpi_gen_prime:1024:MBEDTLS_MPI_GEN_PRIME_FLAG_LOW_ERR:0
  1081. Test mbedtls_mpi_gen_prime standard RSA #2 (lower error rate)
  1082. depends_on:MBEDTLS_GENPRIME
  1083. mbedtls_mpi_gen_prime:1536:MBEDTLS_MPI_GEN_PRIME_FLAG_LOW_ERR:0
  1084. Test bit getting (Value bit 25)
  1085. mbedtls_mpi_get_bit:10:"49979687":25:1
  1086. Test bit getting (Larger but same limb)
  1087. mbedtls_mpi_get_bit:10:"49979687":26:0
  1088. Test bit getting (Larger and non-existing limb)
  1089. mbedtls_mpi_get_bit:10:"49979687":500:0
  1090. Test bit getting in 0 (null)
  1091. mbedtls_mpi_get_bit:10:"":500:0
  1092. Test bit getting (Value bit 24)
  1093. mbedtls_mpi_get_bit:10:"49979687":24:0
  1094. Test bit getting (Value bit 23)
  1095. mbedtls_mpi_get_bit:10:"49979687":23:1
  1096. Test bit set (Change existing value with a 1)
  1097. mbedtls_mpi_set_bit:10:"49979687":24:1:10:"66756903":0
  1098. Test bit set (Change existing value with a 0)
  1099. mbedtls_mpi_set_bit:10:"49979687":25:0:10:"16425255":0
  1100. Test bit set (Add above existing limbs with a 0)
  1101. mbedtls_mpi_set_bit:10:"49979687":80:0:10:"49979687":0
  1102. Test bit set (Add above existing limbs with a 1)
  1103. mbedtls_mpi_set_bit:10:"49979687":80:1:10:"1208925819614629224685863":0
  1104. Test bit set (Add to 0 (null) with a 0)
  1105. mbedtls_mpi_set_bit:16:"":65:0:16:"":0
  1106. Test bit set (Add to 0 (null) with a 1)
  1107. mbedtls_mpi_set_bit:16:"":65:1:16:"020000000000000000":0
  1108. Test bit set (Bit index larger than 31 with a 0)
  1109. mbedtls_mpi_set_bit:16:"FFFFFFFFFFFFFFFF":32:0:16:"FFFFFFFEFFFFFFFF":0
  1110. Test bit set (Bit index larger than 31 with a 1)
  1111. mbedtls_mpi_set_bit:16:"00":32:1:16:"0100000000":0
  1112. Test bit set (Invalid bit value)
  1113. mbedtls_mpi_set_bit:16:"00":5:2:16:"00":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1114. Fill random: 0 bytes
  1115. mpi_fill_random:0:0:0:0
  1116. Fill random: 1 byte, good
  1117. mpi_fill_random:1:1:0:0
  1118. Fill random: 2 bytes, good, no leading zero
  1119. mpi_fill_random:2:2:0:0
  1120. Fill random: 2 bytes, good, 1 leading zero
  1121. mpi_fill_random:2:256:0:0
  1122. Fill random: MAX_SIZE - 7, good
  1123. mpi_fill_random:MBEDTLS_MPI_MAX_SIZE - 7:MBEDTLS_MPI_MAX_SIZE - 7:0:0
  1124. Fill random: MAX_SIZE, good
  1125. mpi_fill_random:MBEDTLS_MPI_MAX_SIZE:MBEDTLS_MPI_MAX_SIZE:0:0
  1126. Fill random: 0 bytes, previously small >0
  1127. mpi_fill_random:0:0:1:0
  1128. Fill random: 0 bytes, previously small <0
  1129. mpi_fill_random:0:0:-1:0
  1130. Fill random: 0 bytes, previously large >0
  1131. mpi_fill_random:0:0:65:0
  1132. Fill random: 0 bytes, previously large <0
  1133. mpi_fill_random:0:0:-65:0
  1134. Fill random: 1 byte, previously small >0
  1135. mpi_fill_random:1:1:1:0
  1136. Fill random: 1 byte, previously small <0
  1137. mpi_fill_random:1:1:-1:0
  1138. Fill random: 1 byte, previously large >0
  1139. mpi_fill_random:1:1:65:0
  1140. Fill random: 1 byte, previously large <0
  1141. mpi_fill_random:1:1:-65:0
  1142. Fill random: 9 bytes, previously small >0
  1143. mpi_fill_random:1:1:1:0
  1144. Fill random: 9 bytes, previously small <0
  1145. mpi_fill_random:1:1:-1:0
  1146. Fill random: 1 byte, RNG failure
  1147. mpi_fill_random:1:0:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1148. Fill random: 2 bytes, RNG failure after 1 byte
  1149. mpi_fill_random:2:1:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1150. Fill random: 4 bytes, RNG failure after 3 bytes
  1151. mpi_fill_random:4:3:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1152. Fill random: 8 bytes, RNG failure after 7 bytes
  1153. mpi_fill_random:8:7:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1154. Fill random: 16 bytes, RNG failure after 1 bytes
  1155. mpi_fill_random:16:1:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1156. Fill random: 16 bytes, RNG failure after 8 bytes
  1157. mpi_fill_random:16:8:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1158. Fill random: 16 bytes, RNG failure after 15 bytes
  1159. mpi_fill_random:16:15:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1160. Fill random: MAX_SIZE bytes, RNG failure after MAX_SIZE-1 bytes
  1161. mpi_fill_random:MBEDTLS_MPI_MAX_SIZE:MBEDTLS_MPI_MAX_SIZE-1:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
  1162. MPI random in range: 1..2
  1163. mpi_random_many:1:"02":1000
  1164. MPI random in range: 1..3
  1165. mpi_random_many:1:"03":1000
  1166. MPI random in range: 1..4
  1167. mpi_random_many:1:"04":1000
  1168. MPI random in range: 1..5
  1169. mpi_random_many:1:"05":1000
  1170. MPI random in range: 1..6
  1171. mpi_random_many:1:"06":1000
  1172. MPI random in range: 1..7
  1173. mpi_random_many:1:"07":1000
  1174. MPI random in range: 1..8
  1175. mpi_random_many:1:"08":1000
  1176. MPI random in range: 1..9
  1177. mpi_random_many:1:"09":1000
  1178. MPI random in range: 1..10
  1179. mpi_random_many:1:"0a":1000
  1180. MPI random in range: 1..11
  1181. mpi_random_many:1:"0b":1000
  1182. MPI random in range: 1..12
  1183. mpi_random_many:1:"0c":1000
  1184. MPI random in range: 1..255
  1185. mpi_random_many:1:"ff":100
  1186. MPI random in range: 1..256
  1187. mpi_random_many:1:"0100":100
  1188. MPI random in range: 1..257
  1189. mpi_random_many:1:"0101":100
  1190. MPI random in range: 1..272
  1191. mpi_random_many:1:"0110":100
  1192. MPI random in range: 1..2^64-1
  1193. mpi_random_many:1:"ffffffffffffffff":100
  1194. MPI random in range: 1..2^64
  1195. mpi_random_many:1:"010000000000000000":100
  1196. MPI random in range: 1..2^64+1
  1197. mpi_random_many:1:"010000000000000001":100
  1198. MPI random in range: 1..2^64+2^63
  1199. mpi_random_many:1:"018000000000000000":100
  1200. MPI random in range: 1..2^65-1
  1201. mpi_random_many:1:"01ffffffffffffffff":100
  1202. MPI random in range: 1..2^65
  1203. mpi_random_many:1:"020000000000000000":100
  1204. MPI random in range: 1..2^65+1
  1205. mpi_random_many:1:"020000000000000001":100
  1206. MPI random in range: 1..2^65+2^64
  1207. mpi_random_many:1:"030000000000000000":100
  1208. MPI random in range: 1..2^66+2^65
  1209. mpi_random_many:1:"060000000000000000":100
  1210. MPI random in range: 1..2^71-1
  1211. mpi_random_many:1:"7fffffffffffffffff":100
  1212. MPI random in range: 1..2^71
  1213. mpi_random_many:1:"800000000000000000":100
  1214. MPI random in range: 1..2^71+1
  1215. mpi_random_many:1:"800000000000000001":100
  1216. MPI random in range: 1..2^71+2^70
  1217. mpi_random_many:1:"c00000000000000000":100
  1218. MPI random in range: 1..2^72-1
  1219. mpi_random_many:1:"ffffffffffffffffff":100
  1220. MPI random in range: 1..2^72
  1221. mpi_random_many:1:"01000000000000000000":100
  1222. MPI random in range: 1..2^72+1
  1223. mpi_random_many:1:"01000000000000000001":100
  1224. MPI random in range: 1..2^72+2^71
  1225. mpi_random_many:1:"01800000000000000000":100
  1226. MPI random in range: 0..1
  1227. mpi_random_many:0:"04":10000
  1228. MPI random in range: 0..4
  1229. mpi_random_many:0:"04":10000
  1230. MPI random in range: 2..4
  1231. mpi_random_many:2:"04":10000
  1232. MPI random in range: 3..4
  1233. mpi_random_many:3:"04":10000
  1234. MPI random in range: smaller result
  1235. mpi_random_sizes:1:"aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbb":1:0
  1236. MPI random in range: same size result (32-bit limbs)
  1237. mpi_random_sizes:1:"aaaaaaaaaaaaaaaa":2:0
  1238. MPI random in range: same size result (64-bit limbs)
  1239. mpi_random_sizes:1:"aaaaaaaaaaaaaaaa":1:0
  1240. MPI random in range: larger result
  1241. mpi_random_sizes:1:"aaaaaaaaaaaaaaaa":3:0
  1242. ## The "0 limb in upper bound" tests rely on the fact that
  1243. ## mbedtls_mpi_read_binary() bases the size of the MPI on the size of
  1244. ## the input, without first checking for leading zeros. If this was
  1245. ## not the case, the tests would still pass, but would not exercise
  1246. ## the advertised behavior.
  1247. MPI random in range: leading 0 limb in upper bound #0
  1248. mpi_random_sizes:1:"00aaaaaaaaaaaaaaaa":0:0
  1249. MPI random in range: leading 0 limb in upper bound #1
  1250. mpi_random_sizes:1:"00aaaaaaaaaaaaaaaa":1:0
  1251. MPI random in range: leading 0 limb in upper bound #2
  1252. mpi_random_sizes:1:"00aaaaaaaaaaaaaaaa":2:0
  1253. MPI random in range: leading 0 limb in upper bound #3
  1254. mpi_random_sizes:1:"00aaaaaaaaaaaaaaaa":3:0
  1255. MPI random in range: leading 0 limb in upper bound #4
  1256. mpi_random_sizes:1:"00aaaaaaaaaaaaaaaa":4:0
  1257. MPI random in range: previously small >0
  1258. mpi_random_sizes:1:"1234567890":4:1
  1259. MPI random in range: previously small <0
  1260. mpi_random_sizes:1:"1234567890":4:-1
  1261. MPI random in range: previously large >0
  1262. mpi_random_sizes:1:"1234":4:65
  1263. MPI random in range: previously large <0
  1264. mpi_random_sizes:1:"1234":4:-65
  1265. MPI random bad arguments: min < 0
  1266. mpi_random_fail:-1:"04":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1267. MPI random bad arguments: min = N = 0
  1268. mpi_random_fail:0:"00":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1269. MPI random bad arguments: min = N = 1
  1270. mpi_random_fail:1:"01":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1271. MPI random bad arguments: min > N = 0
  1272. mpi_random_fail:1:"00":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1273. MPI random bad arguments: min > N = 1
  1274. mpi_random_fail:2:"01":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1275. MPI random bad arguments: min > N = 1, 0 limb in upper bound
  1276. mpi_random_fail:2:"000000000000000001":MBEDTLS_ERR_MPI_BAD_INPUT_DATA
  1277. MPI Selftest
  1278. depends_on:MBEDTLS_SELF_TEST
  1279. mpi_selftest: