Werner Lewis | 05998a0 | 2022-09-21 16:55:21 +0100 | [diff] [blame] | 1 | # Automatically generated by generate_bignum_tests.py. Do not edit! |
| 2 | |
| 3 | MPI add #1 0 (null) + 0 (null) |
| 4 | mbedtls_mpi_add_mpi:"":"":"0" |
| 5 | |
| 6 | MPI add #2 0 (null) + 0 (1 limb) |
| 7 | mbedtls_mpi_add_mpi:"":"0":"0" |
| 8 | |
| 9 | MPI add #3 0 (null) + positive |
| 10 | mbedtls_mpi_add_mpi:"":"7b":"7b" |
| 11 | |
| 12 | MPI add #4 0 (null) + negative |
| 13 | mbedtls_mpi_add_mpi:"":"-7b":"-7b" |
| 14 | |
| 15 | MPI add #5 0 (null) + positive with leading zero limb |
| 16 | mbedtls_mpi_add_mpi:"":"0000000000000000123":"123" |
| 17 | |
| 18 | MPI add #6 0 (null) + negative with leading zero limb |
| 19 | mbedtls_mpi_add_mpi:"":"-0000000000000000123":"-123" |
| 20 | |
| 21 | MPI add #7 0 (null) + large positive |
| 22 | mbedtls_mpi_add_mpi:"":"1230000000000000000":"1230000000000000000" |
| 23 | |
| 24 | MPI add #8 0 (null) + large negative |
| 25 | mbedtls_mpi_add_mpi:"":"-1230000000000000000":"-1230000000000000000" |
| 26 | |
| 27 | MPI add #9 0 (1 limb) + 0 (1 limb) |
| 28 | mbedtls_mpi_add_mpi:"0":"0":"0" |
| 29 | |
| 30 | MPI add #10 0 (1 limb) + positive |
| 31 | mbedtls_mpi_add_mpi:"0":"7b":"7b" |
| 32 | |
| 33 | MPI add #11 0 (1 limb) + negative |
| 34 | mbedtls_mpi_add_mpi:"0":"-7b":"-7b" |
| 35 | |
| 36 | MPI add #12 0 (1 limb) + positive with leading zero limb |
| 37 | mbedtls_mpi_add_mpi:"0":"0000000000000000123":"123" |
| 38 | |
| 39 | MPI add #13 0 (1 limb) + negative with leading zero limb |
| 40 | mbedtls_mpi_add_mpi:"0":"-0000000000000000123":"-123" |
| 41 | |
| 42 | MPI add #14 0 (1 limb) + large positive |
| 43 | mbedtls_mpi_add_mpi:"0":"1230000000000000000":"1230000000000000000" |
| 44 | |
| 45 | MPI add #15 0 (1 limb) + large negative |
| 46 | mbedtls_mpi_add_mpi:"0":"-1230000000000000000":"-1230000000000000000" |
| 47 | |
| 48 | MPI add #16 positive + positive |
| 49 | mbedtls_mpi_add_mpi:"7b":"7b":"f6" |
| 50 | |
| 51 | MPI add #17 positive + negative |
| 52 | mbedtls_mpi_add_mpi:"7b":"-7b":"0" |
| 53 | |
| 54 | MPI add #18 positive + positive with leading zero limb |
| 55 | mbedtls_mpi_add_mpi:"7b":"0000000000000000123":"19e" |
| 56 | |
| 57 | MPI add #19 positive + negative with leading zero limb |
| 58 | mbedtls_mpi_add_mpi:"7b":"-0000000000000000123":"-a8" |
| 59 | |
| 60 | MPI add #20 positive + large positive |
| 61 | mbedtls_mpi_add_mpi:"7b":"1230000000000000000":"123000000000000007b" |
| 62 | |
| 63 | MPI add #21 positive + large negative |
| 64 | mbedtls_mpi_add_mpi:"7b":"-1230000000000000000":"-122ffffffffffffff85" |
| 65 | |
| 66 | MPI add #22 negative + negative |
| 67 | mbedtls_mpi_add_mpi:"-7b":"-7b":"-f6" |
| 68 | |
| 69 | MPI add #23 negative + positive with leading zero limb |
| 70 | mbedtls_mpi_add_mpi:"-7b":"0000000000000000123":"a8" |
| 71 | |
| 72 | MPI add #24 negative + negative with leading zero limb |
| 73 | mbedtls_mpi_add_mpi:"-7b":"-0000000000000000123":"-19e" |
| 74 | |
| 75 | MPI add #25 negative + large positive |
| 76 | mbedtls_mpi_add_mpi:"-7b":"1230000000000000000":"122ffffffffffffff85" |
| 77 | |
| 78 | MPI add #26 negative + large negative |
| 79 | mbedtls_mpi_add_mpi:"-7b":"-1230000000000000000":"-123000000000000007b" |
| 80 | |
| 81 | MPI add #27 positive with leading zero limb + positive with leading zero limb |
| 82 | mbedtls_mpi_add_mpi:"0000000000000000123":"0000000000000000123":"246" |
| 83 | |
| 84 | MPI add #28 positive with leading zero limb + negative with leading zero limb |
| 85 | mbedtls_mpi_add_mpi:"0000000000000000123":"-0000000000000000123":"0" |
| 86 | |
| 87 | MPI add #29 positive with leading zero limb + large positive |
| 88 | mbedtls_mpi_add_mpi:"0000000000000000123":"1230000000000000000":"1230000000000000123" |
| 89 | |
| 90 | MPI add #30 positive with leading zero limb + large negative |
| 91 | mbedtls_mpi_add_mpi:"0000000000000000123":"-1230000000000000000":"-122fffffffffffffedd" |
| 92 | |
| 93 | MPI add #31 negative with leading zero limb + negative with leading zero limb |
| 94 | mbedtls_mpi_add_mpi:"-0000000000000000123":"-0000000000000000123":"-246" |
| 95 | |
| 96 | MPI add #32 negative with leading zero limb + large positive |
| 97 | mbedtls_mpi_add_mpi:"-0000000000000000123":"1230000000000000000":"122fffffffffffffedd" |
| 98 | |
| 99 | MPI add #33 negative with leading zero limb + large negative |
| 100 | mbedtls_mpi_add_mpi:"-0000000000000000123":"-1230000000000000000":"-1230000000000000123" |
| 101 | |
| 102 | MPI add #34 large positive + large positive |
| 103 | mbedtls_mpi_add_mpi:"1230000000000000000":"1230000000000000000":"2460000000000000000" |
| 104 | |
| 105 | MPI add #35 large positive + large negative |
| 106 | mbedtls_mpi_add_mpi:"1230000000000000000":"-1230000000000000000":"0" |
| 107 | |
| 108 | MPI add #36 large negative + large negative |
| 109 | mbedtls_mpi_add_mpi:"-1230000000000000000":"-1230000000000000000":"-2460000000000000000" |
| 110 | |
| 111 | MPI add #37 large positive + large positive |
| 112 | mbedtls_mpi_add_mpi:"1c67967269c6":"1c67967269c6":"38cf2ce4d38c" |
| 113 | |
| 114 | MPI add #38 large positive + positive |
| 115 | mbedtls_mpi_add_mpi:"1c67967269c6":"9cde3":"1c67967c37a9" |
| 116 | |
| 117 | MPI add #39 large positive + large negative |
| 118 | mbedtls_mpi_add_mpi:"1c67967269c6":"-1c67967269c6":"0" |
| 119 | |
| 120 | MPI add #40 large positive + negative |
| 121 | mbedtls_mpi_add_mpi:"1c67967269c6":"-9cde3":"1c6796689be3" |
| 122 | |
| 123 | MPI add #41 positive + positive |
| 124 | mbedtls_mpi_add_mpi:"9cde3":"9cde3":"139bc6" |
| 125 | |
| 126 | MPI add #42 positive + large negative |
| 127 | mbedtls_mpi_add_mpi:"9cde3":"-1c67967269c6":"-1c6796689be3" |
| 128 | |
| 129 | MPI add #43 positive + negative |
| 130 | mbedtls_mpi_add_mpi:"9cde3":"-9cde3":"0" |
| 131 | |
| 132 | MPI add #44 large negative + large negative |
| 133 | mbedtls_mpi_add_mpi:"-1c67967269c6":"-1c67967269c6":"-38cf2ce4d38c" |
| 134 | |
| 135 | MPI add #45 large negative + negative |
| 136 | mbedtls_mpi_add_mpi:"-1c67967269c6":"-9cde3":"-1c67967c37a9" |
| 137 | |
| 138 | MPI add #46 negative + negative |
| 139 | mbedtls_mpi_add_mpi:"-9cde3":"-9cde3":"-139bc6" |
| 140 | |
| 141 | MPI compare #1 0 (null) == 0 (null) |
| 142 | mbedtls_mpi_cmp_mpi:"":"":0 |
| 143 | |
| 144 | MPI compare #2 0 (null) == 0 (1 limb) |
| 145 | mbedtls_mpi_cmp_mpi:"":"0":0 |
| 146 | |
| 147 | MPI compare #3 0 (null) < positive |
| 148 | mbedtls_mpi_cmp_mpi:"":"7b":-1 |
| 149 | |
| 150 | MPI compare #4 0 (null) > negative |
| 151 | mbedtls_mpi_cmp_mpi:"":"-7b":1 |
| 152 | |
| 153 | MPI compare #5 0 (null) < positive with leading zero limb |
| 154 | mbedtls_mpi_cmp_mpi:"":"0000000000000000123":-1 |
| 155 | |
| 156 | MPI compare #6 0 (null) > negative with leading zero limb |
| 157 | mbedtls_mpi_cmp_mpi:"":"-0000000000000000123":1 |
| 158 | |
| 159 | MPI compare #7 0 (null) < large positive |
| 160 | mbedtls_mpi_cmp_mpi:"":"1230000000000000000":-1 |
| 161 | |
| 162 | MPI compare #8 0 (null) > large negative |
| 163 | mbedtls_mpi_cmp_mpi:"":"-1230000000000000000":1 |
| 164 | |
| 165 | MPI compare #9 0 (1 limb) == 0 (1 limb) |
| 166 | mbedtls_mpi_cmp_mpi:"0":"0":0 |
| 167 | |
| 168 | MPI compare #10 0 (1 limb) < positive |
| 169 | mbedtls_mpi_cmp_mpi:"0":"7b":-1 |
| 170 | |
| 171 | MPI compare #11 0 (1 limb) > negative |
| 172 | mbedtls_mpi_cmp_mpi:"0":"-7b":1 |
| 173 | |
| 174 | MPI compare #12 0 (1 limb) < positive with leading zero limb |
| 175 | mbedtls_mpi_cmp_mpi:"0":"0000000000000000123":-1 |
| 176 | |
| 177 | MPI compare #13 0 (1 limb) > negative with leading zero limb |
| 178 | mbedtls_mpi_cmp_mpi:"0":"-0000000000000000123":1 |
| 179 | |
| 180 | MPI compare #14 0 (1 limb) < large positive |
| 181 | mbedtls_mpi_cmp_mpi:"0":"1230000000000000000":-1 |
| 182 | |
| 183 | MPI compare #15 0 (1 limb) > large negative |
| 184 | mbedtls_mpi_cmp_mpi:"0":"-1230000000000000000":1 |
| 185 | |
| 186 | MPI compare #16 positive == positive |
| 187 | mbedtls_mpi_cmp_mpi:"7b":"7b":0 |
| 188 | |
| 189 | MPI compare #17 positive > negative |
| 190 | mbedtls_mpi_cmp_mpi:"7b":"-7b":1 |
| 191 | |
| 192 | MPI compare #18 positive < positive with leading zero limb |
| 193 | mbedtls_mpi_cmp_mpi:"7b":"0000000000000000123":-1 |
| 194 | |
| 195 | MPI compare #19 positive > negative with leading zero limb |
| 196 | mbedtls_mpi_cmp_mpi:"7b":"-0000000000000000123":1 |
| 197 | |
| 198 | MPI compare #20 positive < large positive |
| 199 | mbedtls_mpi_cmp_mpi:"7b":"1230000000000000000":-1 |
| 200 | |
| 201 | MPI compare #21 positive > large negative |
| 202 | mbedtls_mpi_cmp_mpi:"7b":"-1230000000000000000":1 |
| 203 | |
| 204 | MPI compare #22 negative == negative |
| 205 | mbedtls_mpi_cmp_mpi:"-7b":"-7b":0 |
| 206 | |
| 207 | MPI compare #23 negative < positive with leading zero limb |
| 208 | mbedtls_mpi_cmp_mpi:"-7b":"0000000000000000123":-1 |
| 209 | |
| 210 | MPI compare #24 negative > negative with leading zero limb |
| 211 | mbedtls_mpi_cmp_mpi:"-7b":"-0000000000000000123":1 |
| 212 | |
| 213 | MPI compare #25 negative < large positive |
| 214 | mbedtls_mpi_cmp_mpi:"-7b":"1230000000000000000":-1 |
| 215 | |
| 216 | MPI compare #26 negative > large negative |
| 217 | mbedtls_mpi_cmp_mpi:"-7b":"-1230000000000000000":1 |
| 218 | |
| 219 | MPI compare #27 positive with leading zero limb == positive with leading zero limb |
| 220 | mbedtls_mpi_cmp_mpi:"0000000000000000123":"0000000000000000123":0 |
| 221 | |
| 222 | MPI compare #28 positive with leading zero limb > negative with leading zero limb |
| 223 | mbedtls_mpi_cmp_mpi:"0000000000000000123":"-0000000000000000123":1 |
| 224 | |
| 225 | MPI compare #29 positive with leading zero limb < large positive |
| 226 | mbedtls_mpi_cmp_mpi:"0000000000000000123":"1230000000000000000":-1 |
| 227 | |
| 228 | MPI compare #30 positive with leading zero limb > large negative |
| 229 | mbedtls_mpi_cmp_mpi:"0000000000000000123":"-1230000000000000000":1 |
| 230 | |
| 231 | MPI compare #31 negative with leading zero limb == negative with leading zero limb |
| 232 | mbedtls_mpi_cmp_mpi:"-0000000000000000123":"-0000000000000000123":0 |
| 233 | |
| 234 | MPI compare #32 negative with leading zero limb < large positive |
| 235 | mbedtls_mpi_cmp_mpi:"-0000000000000000123":"1230000000000000000":-1 |
| 236 | |
| 237 | MPI compare #33 negative with leading zero limb > large negative |
| 238 | mbedtls_mpi_cmp_mpi:"-0000000000000000123":"-1230000000000000000":1 |
| 239 | |
| 240 | MPI compare #34 large positive == large positive |
| 241 | mbedtls_mpi_cmp_mpi:"1230000000000000000":"1230000000000000000":0 |
| 242 | |
| 243 | MPI compare #35 large positive > large negative |
| 244 | mbedtls_mpi_cmp_mpi:"1230000000000000000":"-1230000000000000000":1 |
| 245 | |
| 246 | MPI compare #36 large negative == large negative |
| 247 | mbedtls_mpi_cmp_mpi:"-1230000000000000000":"-1230000000000000000":0 |
| 248 | |
| 249 | MPI compare #37 negative > negative |
| 250 | mbedtls_mpi_cmp_mpi:"-2":"-3":1 |
| 251 | |
| 252 | MPI compare #38 negative == negative |
| 253 | mbedtls_mpi_cmp_mpi:"-2":"-2":0 |
| 254 | |
| 255 | MPI compare #39 positive < positive |
| 256 | mbedtls_mpi_cmp_mpi:"2b4":"2b5":-1 |
| 257 | |
| 258 | MPI compare #40 positive < positive |
| 259 | mbedtls_mpi_cmp_mpi:"2b5":"2b6":-1 |
| 260 | |
| 261 | MPI compare (abs) #1 0 (null) == 0 (null) |
| 262 | mbedtls_mpi_cmp_abs:"":"":0 |
| 263 | |
| 264 | MPI compare (abs) #2 0 (null) == 0 (1 limb) |
| 265 | mbedtls_mpi_cmp_abs:"":"0":0 |
| 266 | |
| 267 | MPI compare (abs) #3 0 (null) < positive |
| 268 | mbedtls_mpi_cmp_abs:"":"7b":-1 |
| 269 | |
| 270 | MPI compare (abs) #4 0 (null) < positive |
| 271 | mbedtls_mpi_cmp_abs:"":"7b":-1 |
| 272 | |
| 273 | MPI compare (abs) #5 0 (null) < positive with leading zero limb |
| 274 | mbedtls_mpi_cmp_abs:"":"0000000000000000123":-1 |
| 275 | |
| 276 | MPI compare (abs) #6 0 (null) < positive with leading zero limb |
| 277 | mbedtls_mpi_cmp_abs:"":"0000000000000000123":-1 |
| 278 | |
| 279 | MPI compare (abs) #7 0 (null) < large positive |
| 280 | mbedtls_mpi_cmp_abs:"":"1230000000000000000":-1 |
| 281 | |
| 282 | MPI compare (abs) #8 0 (null) < large positive |
| 283 | mbedtls_mpi_cmp_abs:"":"1230000000000000000":-1 |
| 284 | |
| 285 | MPI compare (abs) #9 0 (1 limb) == 0 (1 limb) |
| 286 | mbedtls_mpi_cmp_abs:"0":"0":0 |
| 287 | |
| 288 | MPI compare (abs) #10 0 (1 limb) < positive |
| 289 | mbedtls_mpi_cmp_abs:"0":"7b":-1 |
| 290 | |
| 291 | MPI compare (abs) #11 0 (1 limb) < positive |
| 292 | mbedtls_mpi_cmp_abs:"0":"7b":-1 |
| 293 | |
| 294 | MPI compare (abs) #12 0 (1 limb) < positive with leading zero limb |
| 295 | mbedtls_mpi_cmp_abs:"0":"0000000000000000123":-1 |
| 296 | |
| 297 | MPI compare (abs) #13 0 (1 limb) < positive with leading zero limb |
| 298 | mbedtls_mpi_cmp_abs:"0":"0000000000000000123":-1 |
| 299 | |
| 300 | MPI compare (abs) #14 0 (1 limb) < large positive |
| 301 | mbedtls_mpi_cmp_abs:"0":"1230000000000000000":-1 |
| 302 | |
| 303 | MPI compare (abs) #15 0 (1 limb) < large positive |
| 304 | mbedtls_mpi_cmp_abs:"0":"1230000000000000000":-1 |
| 305 | |
| 306 | MPI compare (abs) #16 positive == positive |
| 307 | mbedtls_mpi_cmp_abs:"7b":"7b":0 |
| 308 | |
| 309 | MPI compare (abs) #17 positive == positive |
| 310 | mbedtls_mpi_cmp_abs:"7b":"7b":0 |
| 311 | |
| 312 | MPI compare (abs) #18 positive < positive with leading zero limb |
| 313 | mbedtls_mpi_cmp_abs:"7b":"0000000000000000123":-1 |
| 314 | |
| 315 | MPI compare (abs) #19 positive < positive with leading zero limb |
| 316 | mbedtls_mpi_cmp_abs:"7b":"0000000000000000123":-1 |
| 317 | |
| 318 | MPI compare (abs) #20 positive < large positive |
| 319 | mbedtls_mpi_cmp_abs:"7b":"1230000000000000000":-1 |
| 320 | |
| 321 | MPI compare (abs) #21 positive < large positive |
| 322 | mbedtls_mpi_cmp_abs:"7b":"1230000000000000000":-1 |
| 323 | |
| 324 | MPI compare (abs) #22 positive == positive |
| 325 | mbedtls_mpi_cmp_abs:"7b":"7b":0 |
| 326 | |
| 327 | MPI compare (abs) #23 positive < positive with leading zero limb |
| 328 | mbedtls_mpi_cmp_abs:"7b":"0000000000000000123":-1 |
| 329 | |
| 330 | MPI compare (abs) #24 positive < positive with leading zero limb |
| 331 | mbedtls_mpi_cmp_abs:"7b":"0000000000000000123":-1 |
| 332 | |
| 333 | MPI compare (abs) #25 positive < large positive |
| 334 | mbedtls_mpi_cmp_abs:"7b":"1230000000000000000":-1 |
| 335 | |
| 336 | MPI compare (abs) #26 positive < large positive |
| 337 | mbedtls_mpi_cmp_abs:"7b":"1230000000000000000":-1 |
| 338 | |
| 339 | MPI compare (abs) #27 positive with leading zero limb == positive with leading zero limb |
| 340 | mbedtls_mpi_cmp_abs:"0000000000000000123":"0000000000000000123":0 |
| 341 | |
| 342 | MPI compare (abs) #28 positive with leading zero limb == positive with leading zero limb |
| 343 | mbedtls_mpi_cmp_abs:"0000000000000000123":"0000000000000000123":0 |
| 344 | |
| 345 | MPI compare (abs) #29 positive with leading zero limb < large positive |
| 346 | mbedtls_mpi_cmp_abs:"0000000000000000123":"1230000000000000000":-1 |
| 347 | |
| 348 | MPI compare (abs) #30 positive with leading zero limb < large positive |
| 349 | mbedtls_mpi_cmp_abs:"0000000000000000123":"1230000000000000000":-1 |
| 350 | |
| 351 | MPI compare (abs) #31 positive with leading zero limb == positive with leading zero limb |
| 352 | mbedtls_mpi_cmp_abs:"0000000000000000123":"0000000000000000123":0 |
| 353 | |
| 354 | MPI compare (abs) #32 positive with leading zero limb < large positive |
| 355 | mbedtls_mpi_cmp_abs:"0000000000000000123":"1230000000000000000":-1 |
| 356 | |
| 357 | MPI compare (abs) #33 positive with leading zero limb < large positive |
| 358 | mbedtls_mpi_cmp_abs:"0000000000000000123":"1230000000000000000":-1 |
| 359 | |
| 360 | MPI compare (abs) #34 large positive == large positive |
| 361 | mbedtls_mpi_cmp_abs:"1230000000000000000":"1230000000000000000":0 |
| 362 | |
| 363 | MPI compare (abs) #35 large positive == large positive |
| 364 | mbedtls_mpi_cmp_abs:"1230000000000000000":"1230000000000000000":0 |
| 365 | |
| 366 | MPI compare (abs) #36 large positive == large positive |
| 367 | mbedtls_mpi_cmp_abs:"1230000000000000000":"1230000000000000000":0 |
| 368 | |
| 369 | MPI compare (abs) #37 positive < positive |
| 370 | mbedtls_mpi_cmp_abs:"2":"3":-1 |
| 371 | |
| 372 | MPI compare (abs) #38 positive == positive |
| 373 | mbedtls_mpi_cmp_abs:"2":"2":0 |
| 374 | |
| 375 | MPI compare (abs) #39 positive < positive |
| 376 | mbedtls_mpi_cmp_abs:"2b4":"2b5":-1 |
| 377 | |
| 378 | MPI compare (abs) #40 positive < positive |
| 379 | mbedtls_mpi_cmp_abs:"2b5":"2b6":-1 |
| 380 | |
| 381 | # End of automatically generated file. |