1Test mbedtls_mpi_core_io functions with null pointers 2mpi_core_io_null 3 4Test mbedtls_mpi_core_io_be #1 (Buffer and limbs just fit, input limb-aligned) 5mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":96:24:0:0 6 7Test mbedtls_mpi_core_io_be #2 (Buffer and limbs just fit, input unaligned) 8mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":94:24:0:0 9 10Test mbedtls_mpi_core_io_be #3 (Buffer just fits, extra limbs, input limb-aligned) 11mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":96:28:0:0 12 13Test mbedtls_mpi_core_io_be #4 (Buffer just fits, extra limbs, input unaligned) 14mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":94:28:0:0 15 16Test mbedtls_mpi_core_io_be #5 (Extra limbs, buffer aligned to extra limbs, input limb-aligned) 17mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":112:28:0:0 18 19Test mbedtls_mpi_core_io_be #6 (Extra limbs, buffer aligned to extra limbs, input unaligned) 20mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":112:28:0:0 21 22Test mbedtls_mpi_core_io_be #7 (Buffer and limbs just fit, input limb-aligned with leading zeroes) 23mpi_core_io_be:"00000000000000001fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":88:24:0:0 24 25Test mbedtls_mpi_core_io_be #8 (Buffer and limbs just fit, input unaligned with leading zeroes) 26mpi_core_io_be:"00000000000000001fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":86:24:0:0 27 28Test mbedtls_mpi_core_io_be #9 (Buffer just fits, extra limbs, input limb-aligned with leading zeroes) 29mpi_core_io_be:"00000000000000001fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":88:28:0:0 30 31Test mbedtls_mpi_core_io_be #10 (Buffer just fits, extra limbs, input unaligned with leading zeroes) 32mpi_core_io_be:"00000000000000001fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":86:28:0:0 33 34Test mbedtls_mpi_core_io_be #11 (Zero) 35mpi_core_io_be:"00":1:1:0:0 36 37Test mbedtls_mpi_core_io_be #12 (Zero, empty output) 38mpi_core_io_be:"00":0:1:0:0 39 40Test mbedtls_mpi_core_io_be #13 (Zero, empty input) 41mpi_core_io_be:"":1:1:0:0 42 43Test mbedtls_mpi_core_io_be #14 (One) 44mpi_core_io_be:"01":1:1:0:0 45 46Test mbedtls_mpi_core_io_be #15 (One limb, 32 bit) 47depends_on:MBEDTLS_HAVE_INT32 48mpi_core_io_be:"ff000000":4:1:0:0 49 50Test mbedtls_mpi_core_io_be #16 (One limb, 64 bit) 51depends_on:MBEDTLS_HAVE_INT64 52mpi_core_io_be:"ff00000000000000":8:2:0:0 53 54Test mbedtls_mpi_core_io_be #17 (not enough limbs, input limb-aligned) 55mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":96:22:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL:0 56 57Test mbedtls_mpi_core_io_be #18 (not enough limbs, input unaligned) 58mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":94:22:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL:0 59 60Test mbedtls_mpi_core_io_be #19 (buffer too small, input limb-aligned) 61mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":95:24:0:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL 62 63Test mbedtls_mpi_core_io_be #20 (buffer too small, input unaligned) 64mpi_core_io_be:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":93:24:0:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL 65 66Test mbedtls_mpi_core_io_be #21 (Buffer and limbs fit, input unaligned, odd number of limbs) 67mpi_core_io_be:"00de4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":82:21:0:0 68 69Test mbedtls_mpi_core_io_le #1 (Buffer and limbs just fit, input limb-aligned) 70mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":96:24:0:0 71 72Test mbedtls_mpi_core_io_le #2 (Buffer and limbs just fit, input unaligned) 73mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":94:24:0:0 74 75Test mbedtls_mpi_core_io_le #3 (Buffer just fits, extra limbs, input limb-aligned) 76mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":96:28:0:0 77 78Test mbedtls_mpi_core_io_le #4 (Buffer just fits, extra limbs, input unaligned) 79mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":94:28:0:0 80 81Test mbedtls_mpi_core_io_le #5 (Extra limbs, buffer aligned to extra limbs, input limb-aligned) 82mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":112:28:0:0 83 84Test mbedtls_mpi_core_io_le #6 (Extra limbs, buffer aligned to extra limbs, input unaligned) 85mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":112:28:0:0 86 87Test mbedtls_mpi_core_io_le #7 (Buffer and limbs just fit, input limb-aligned with leading zeroes) 88mpi_core_io_le:"1fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b44240000000000000000":88:24:0:0 89 90Test mbedtls_mpi_core_io_le #8 (Buffer and limbs just fit, input unaligned with leading zeroes) 91mpi_core_io_le:"1fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b0000000000000000":86:24:0:0 92 93Test mbedtls_mpi_core_io_le #9 (Buffer just fits, extra limbs, input limb-aligned with leading zeroes) 94mpi_core_io_le:"1fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b44240000000000000000":88:28:0:0 95 96Test mbedtls_mpi_core_io_le #10 (Buffer just fits, extra limbs, input unaligned with leading zeroes) 97mpi_core_io_le:"1fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b0000000000000000":86:28:0:0 98 99Test mbedtls_mpi_core_io_le #11 (Zero) 100mpi_core_io_le:"00":1:1:0:0 101 102Test mbedtls_mpi_core_io_le #12 (Zero, empty output) 103mpi_core_io_le:"00":0:1:0:0 104 105Test mbedtls_mpi_core_io_le #13 (Zero, empty input) 106mpi_core_io_le:"":1:1:0:0 107 108Test mbedtls_mpi_core_io_le #14 (One) 109mpi_core_io_le:"01":1:1:0:0 110 111Test mbedtls_mpi_core_io_le #15 (One limb) 112depends_on:MBEDTLS_HAVE_INT32 113mpi_core_io_le:"000000ff":4:1:0:0 114 115Test mbedtls_mpi_core_io_le #16 (One limb) 116depends_on:MBEDTLS_HAVE_INT64 117mpi_core_io_le:"00000000000000ff":8:2:0:0 118 119Test mbedtls_mpi_core_io_le #17 (not enough limbs, input limb-aligned) 120mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":96:22:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL:0 121 122Test mbedtls_mpi_core_io_le #18 (not enough limbs, input unaligned) 123mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":94:22:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL:0 124 125Test mbedtls_mpi_core_io_le #19 (buffer too small, input limb-aligned) 126mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":95:24:0:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL 127 128Test mbedtls_mpi_core_io_le #20 (buffer too small, input unaligned) 129mpi_core_io_le:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b":93:24:0:MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL 130 131Test mbedtls_mpi_core_io_le #21 (Buffer and limbs fit, input unaligned, odd number of limbs) 132mpi_core_io_le:"de4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b442400":82:21:0:0 133 134Test mbedtls_mpi_core_bitlen 764-bit 135mpi_core_bitlen:"941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea5963bf212713cee46b107c09182b5edcd955adac418bf4918e2889af48e1099d513830cec85c26ac1e158b52620e33ba8692f893efbb2f958b4424":764 136 137Test mbedtls_mpi_core_bitlen 0x18 138mpi_core_bitlen:"18":5 139 140Test mbedtls_mpi_core_bitlen 0x18 with leading 0 limb(s) 141mpi_core_bitlen:"00000000000000018":5 142 143Test mbedtls_mpi_core_bitlen 0x18 << 64 144mpi_core_bitlen:"180000000000000000":69 145 146Test mbedtls_mpi_core_bitlen 0x01 147mpi_core_bitlen:"1":1 148 149Test mbedtls_mpi_core_bitlen 0x0f 150mpi_core_bitlen:"f":4 151 152Test mbedtls_mpi_core_bitlen 0x10 153mpi_core_bitlen:"10":5 154 155Test mbedtls_mpi_core_bitlen 0x0a 156mpi_core_bitlen:"a":4 157 158Test mbedtls_mpi_core_bitlen: 0 (1 limb) 159mpi_core_bitlen:"0":0 160 161mbedtls_mpi_core_lt_ct: x=y (1 limb) 162mpi_core_lt_ct:"2B5":"2B5":0 163 164mbedtls_mpi_core_lt_ct: x>y (1 limb) 165mpi_core_lt_ct:"2B5":"2B4":0 166 167mbedtls_mpi_core_lt_ct: x<y (1 limb) 168mpi_core_lt_ct:"2B5":"2B6":1 169 170mbedtls_mpi_core_lt_ct: x>y (63 bit x, y first byte greater) 171mpi_core_lt_ct:"7FFFFFFFFFFFFFFF":"00000000000000FF":0 172 173mbedtls_mpi_core_lt_ct: x<y (63 bit y, x first byte greater) 174mpi_core_lt_ct:"00000000000000FF":"7FFFFFFFFFFFFFFF":1 175 176mbedtls_mpi_core_lt_ct: x>y (64 bit x, y=x-1) 177mpi_core_lt_ct:"8000000000000000":"7FFFFFFFFFFFFFFF":0 178 179mbedtls_mpi_core_lt_ct: x<y (64 bit y, x=y-1) 180mpi_core_lt_ct:"7FFFFFFFFFFFFFFF":"8000000000000000":1 181 182mbedtls_mpi_core_lt_ct: x>y (64 bit x, y=1) 183mpi_core_lt_ct:"8000000000000000":"0000000000000001":0 184 185mbedtls_mpi_core_lt_ct: x<y (64 bit y, x=1) 186mpi_core_lt_ct:"0000000000000001":"8000000000000000":1 187 188mbedtls_mpi_core_lt_ct: x>y (64 bit x, y=0) 189mpi_core_lt_ct:"8000000000000000":"0000000000000000":0 190 191mbedtls_mpi_core_lt_ct: x<y (64 bit y, x=0) 192mpi_core_lt_ct:"0000000000000000":"8000000000000000":1 193 194mbedtls_mpi_core_lt_ct: x>y (64 bit x, first bytes equal) 195mpi_core_lt_ct:"FFFFFFFFFFFFFFFF":"00000000000000FF":0 196 197mbedtls_mpi_core_lt_ct: x<y (64 bit y, first bytes equal) 198mpi_core_lt_ct:"00000000000000FF":"FFFFFFFFFFFFFFFF":1 199 200mbedtls_mpi_core_lt_ct: x>y (31 bit x, y first byte greater) 201mpi_core_lt_ct:"7FFFFFFF":"000000FF":0 202 203mbedtls_mpi_core_lt_ct: x<y (31 bit y, x first byte greater) 204mpi_core_lt_ct:"000000FF":"7FFFFFFF":1 205 206mbedtls_mpi_core_lt_ct: x>y (32 bit x, y=x-1) 207mpi_core_lt_ct:"80000000":"7FFFFFFF":0 208 209mbedtls_mpi_core_lt_ct: x<y (32 bit y, x=y-1) 210mpi_core_lt_ct:"7FFFFFFF":"80000000":1 211 212mbedtls_mpi_core_lt_ct: x>y (32 bit x, y=1) 213mpi_core_lt_ct:"80000000":"00000001":0 214 215mbedtls_mpi_core_lt_ct: x<y (32 bit y, x=1) 216mpi_core_lt_ct:"00000001":"80000000":1 217 218mbedtls_mpi_core_lt_ct: x>y (32 bit x, y=0) 219mpi_core_lt_ct:"80000000":"00000000":0 220 221mbedtls_mpi_core_lt_ct: x<y (32 bit y, x=0) 222mpi_core_lt_ct:"00000000":"80000000":1 223 224mbedtls_mpi_core_lt_ct: x>y (32 bit x, first bytes equal) 225mpi_core_lt_ct:"FFFFFFFF":"000000FF":0 226 227mbedtls_mpi_core_lt_ct: x<y (32 bit y, first bytes equal) 228mpi_core_lt_ct:"000000FF":"FFFFFFFF":1 229 230mbedtls_mpi_core_lt_ct: x<y, zero vs non-zero MS limb 231mpi_core_lt_ct:"0FFFFFFFFFFFFFFFF":"1FFFFFFFFFFFFFFFF":1 232 233mbedtls_mpi_core_lt_ct: x>y, equal MS limbs 234mpi_core_lt_ct:"EEFFFFFFFFFFFFFFFF":"EEFFFFFFFFFFFFFFF1":0 235 236mbedtls_mpi_core_lt_ct: x=y (multi-limb) 237mpi_core_lt_ct:"EEFFFFFFFFFFFFFFFF":"EEFFFFFFFFFFFFFFFF":0 238 239mbedtls_mpi_core_lt_ct: x<y (alternating limbs) 240mpi_core_lt_ct:"11FFFFFFFFFFFFFFFF":"FF1111111111111111":1 241 242mbedtls_mpi_core_lt_ct: x>y (alternating limbs) 243mpi_core_lt_ct:"FF1111111111111111":"11FFFFFFFFFFFFFFFF":0 244 245Test mbedtls_mpi_core_uint_le_mpi: 0 (1 limb) 246mpi_core_uint_le_mpi:"00" 247 248Test mbedtls_mpi_core_uint_le_mpi: 0 (>=2 limbs) 249mpi_core_uint_le_mpi:"000000000000000000" 250 251Test mbedtls_mpi_core_uint_le_mpi: 1 (1 limb) 252mpi_core_uint_le_mpi:"01" 253 254Test mbedtls_mpi_core_uint_le_mpi: 1 (>=2 limbs) 255mpi_core_uint_le_mpi:"000000000000000001" 256 257Test mbedtls_mpi_core_uint_le_mpi: 42 (1 limb) 258mpi_core_uint_le_mpi:"2a" 259 260Test mbedtls_mpi_core_uint_le_mpi: 42 (>=2 limbs) 261mpi_core_uint_le_mpi:"000000000000000042" 262 263Test mbedtls_mpi_core_uint_le_mpi: 2^31-1 264mpi_core_uint_le_mpi:"7fffffff" 265 266Test mbedtls_mpi_core_uint_le_mpi: 2^31-1 with leading zero limb 267mpi_core_uint_le_mpi:"00000000007fffffff" 268 269Test mbedtls_mpi_core_uint_le_mpi: 2^32-1 270mpi_core_uint_le_mpi:"ffffffff" 271 272Test mbedtls_mpi_core_uint_le_mpi: 2^32-1 with leading zero limb 273mpi_core_uint_le_mpi:"0000000000ffffffff" 274 275Test mbedtls_mpi_core_uint_le_mpi: 2^32 276mpi_core_uint_le_mpi:"10000000" 277 278Test mbedtls_mpi_core_uint_le_mpi: 2^32 with leading zero limb 279mpi_core_uint_le_mpi:"000000000010000000" 280 281Test mbedtls_mpi_core_uint_le_mpi: 2^32+1 282mpi_core_uint_le_mpi:"10000001" 283 284Test mbedtls_mpi_core_uint_le_mpi: 2^32+1 with leading zero limb 285mpi_core_uint_le_mpi:"000000000010000001" 286 287Test mbedtls_mpi_core_uint_le_mpi: 2^63-1 288mpi_core_uint_le_mpi:"7fffffffffffffff" 289 290Test mbedtls_mpi_core_uint_le_mpi: 2^63-1 with leading zero limb 291mpi_core_uint_le_mpi:"007fffffffffffffff" 292 293Test mbedtls_mpi_core_uint_le_mpi: 2^64-1 294mpi_core_uint_le_mpi:"ffffffffffffffff" 295 296Test mbedtls_mpi_core_uint_le_mpi: 2^64-1 with leading zero limb 297mpi_core_uint_le_mpi:"00ffffffffffffffff" 298 299Test mbedtls_mpi_core_uint_le_mpi: 2^64 300mpi_core_uint_le_mpi:"010000000000000000" 301 302Test mbedtls_mpi_core_uint_le_mpi: 2^64+1 303mpi_core_uint_le_mpi:"010000000000000001" 304 305Test mbedtls_mpi_core_uint_le_mpi: 2^64+2 306mpi_core_uint_le_mpi:"010000000000000002" 307 308mbedtls_mpi_core_cond_assign: 1 limb 309mpi_core_cond_assign:"FFFFFFFF":"11111111":4 310 311mbedtls_mpi_core_cond_assign: more limbs #1 312mpi_core_cond_assign:"00000000FFFFFFFF55555555AAAAAAAA":"0123456789ABCDEF0123456789ABCDEF":16 313 314mbedtls_mpi_core_cond_assign: more limbs #2 315mpi_core_cond_assign:"11111111EEEEEEEE77777777CCCCCCCC":"FEDCBA9876543210FEDCBA9876543210":16 316 317mbedtls_mpi_core_cond_assign: more limbs #3 318mpi_core_cond_assign:"562D2B7E83BDC6FF783CEC0D6F46EAE7":"4C314E3B5CEB009C25F3300D5ECF670A":16 319 320mbedtls_mpi_core_cond_assign: copy 256 bytes of limbs 321mpi_core_cond_assign:"00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF":"6E3173EEAC8D68A5AB53D259F32D9E9C298FD2C4FAD3BEE9151DC103EA2382F5480C7D11F451C060A1E3D887E05A620EF6395763CB7A40FC473DD0771456A018E18635EA971C36DCAD09D60E8BD0E2E0CCD1AECB8BE0ABA881DBE60163F6C45947EC0B05FDAAA3DF944627DD4FACBAD3FF2AB4B99D91E548C06A4AF320A9CA0D2FD0CB19B90B9D6A8BF59CB631DD925B6DEA621FE962099D3D0BED6B13C0C546DC6B563A7FC63B1B77D277897DD7B9DF28C4C9213A183B83D982964C6AD8192CE7354B11ED727EDEF85074C46E4E2E6C1728FB7980385CDB36512F927847C6A14A118624ABC12B09DBEE60D651B5431AAD982228C61655EABB80C263871AE1CF":256 322 323mbedtls_mpi_core_cond_assign: copy half of the limbs 324mpi_core_cond_assign:"00000000FFFFFFFF55555555AAAAAAAA":"FEDCBA9876543210FEDCBA9876543210":8 325 326mbedtls_mpi_core_cond_swap: same value 327mpi_core_cond_swap:"FFFFFFFF":"FFFFFFFF":4 328 329mbedtls_mpi_core_cond_swap: 1 limb 330mpi_core_cond_swap:"FFFFFFFF":"11111111":4 331 332mbedtls_mpi_core_cond_swap: more limbs #1 333mpi_core_cond_swap:"00000000FFFFFFFF55555555AAAAAAAA":"0123456789ABCDEF0123456789ABCDEF":16 334 335mbedtls_mpi_core_cond_swap: more limbs #2 336mpi_core_cond_swap:"11111111EEEEEEEE77777777CCCCCCCC":"FEDCBA9876543210FEDCBA9876543210":16 337 338mbedtls_mpi_core_cond_swap: more limbs #3 339mpi_core_cond_swap:"562D2B7E83BDC6FF783CEC0D6F46EAE7":"4C314E3B5CEB009C25F3300D5ECF670A":16 340 341mbedtls_mpi_core_cond_swap: copy 256 bytes of limbs 342mpi_core_cond_swap:"00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF00000000111111112222222233333333444444445555555566666666777777778888888899999999AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFF":"9FBBA284460D8EAB5E0D66B634BD18FBA58C0C25417DD637526A7622C6425B46E09AEFBB8C2340AC823DFE990A62C85DB23BCDBEA734134606CEEB4BCF7444569D5EC4E32341ED09D7A5D0BB8B11D7B726BAECCF37D4FC1BEBD892CADD7BE9E093343C1A68D7A188DFE145C1EDBD8048B24E20A076F981D75ABE44318ADC40ED316C444774B6A90D3EE49557315AA6FAB162A498C0B2E2C15BD94186A665E12DDC39211583FA5F21218A3B46999FEBA4DFF454FB6ED35B8F3AE5F8EA840838BD76006DA112F85EDAA2CC07518FFC9724D5695BAF74F16C8D1A3A06029D2F5C1023D9E8A84D1267BD9AF82D1F5F77092D34BE4E8C4D1EA8C58F90B094DCFD6920":256 343 344mbedtls_mpi_core_cond_swap: copy half of the limbs 345mpi_core_cond_swap:"00000000FFFFFFFF55555555AAAAAAAA":"FEDCBA9876543210FEDCBA9876543210":8 346 347mbedtls_mpi_montg_init #1 348mpi_montg_init:"000000000000001d":"cb08d3dcb08d3dcb" 349 350mbedtls_mpi_montg_init #2 351mpi_montg_init:"0000000000000009":"71c71c71c71c71c7" 352 353mbedtls_mpi_montg_init #3 354mpi_montg_init:"000000000001869f":"34d76bc8e5e3eaa1" 355 356mbedtls_mpi_montg_init #4 357mpi_montg_init:"00000000000080000000000000000001":"ffffffffffffffff" 358 359mbedtls_mpi_montg_init #5 360mpi_montg_init:"0000000000a1ffffffffffffffffffff":"0000000000000001" 361 362mbedtls_mpi_montg_init #6 363mpi_montg_init:"00000000000257ffffffffffffffffff":"0000000000000001" 364 365mbedtls_mpi_montg_init #7 366mpi_montg_init:"b91ba63180c726fbd57786f27f1ede97a3b40c59a7fcfb5898f076e9af57028d":"32edc7e1ac2e6fbb" 367 368mbedtls_mpi_montg_init #8 369mpi_montg_init:"b3a119602ee213cde28581ecd892e0f592a338655dce4ca88054b3d124d0e561":"e41cfb909805815f" 370 371mbedtls_mpi_montg_init #9 372mpi_montg_init:"0284139ea19c139ebe09a8111926aaa39a2c2be12ed487a809d3cb5bc55854725b4cdcb5734c58f90b2f60d99cc1950cdbc8d651793e93c9c6f0ead752500a32c56c62082912b66132b2a6aa42ada923e1ad22ceb7ba0123":"c02e2164b293c975" 373 374mbedtls_mpi_montg_init #10 375mpi_montg_init:"00000000000000011a9351d2d32ccd568e75bf8b4ebbb2a36be691b55832edac662ff79803df8af525fba453068be16ac3920bcc1b468f8f7fe786e0fa4ecbabcad31e5e3b05def802eb8600deaf11ef452487db878df20a80606e4bb6a163b83895d034cc8b53dbcd005be42ffdd2ce99bed06089a0b79d":"ffec8978c055794b" 376 377mbedtls_mpi_montg_init #11 378mpi_montg_init:"eeaf0ab9adb38dd69c33f80afa8fc5e86072618775ff3c0b9ea2314c9c256576d674df7496ea81d3383b4813d692c6e0e0d5d8e250b98be48e495c1d6089dad15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e57ec68edbc3c05726cc02fd4cbf4976eaa9afd5138fe8376435b9fc61d2fc0eb06e3":"7b07a0b0379b9135" 379 380mbedtls_mpi_montg_init #12 381mpi_montg_init:"00000007a364ab3de755f924642bd5273524234f78395da1ed9098f39af4fe248288b0cb7f1c27214588969479d7dc9f0d327b5544dd4c095aa1fa271df421fe9ee460855cc8423d223e2c85dc793f6babdca7fc804ea1f408f867db053bfd98c45085ea5d805c78d2863bacdfcaf4c6147ebb74a9056045074785714c0b84ed":"8f54b233c070871b" 382 383mbedtls_mpi_montg_init #13 384mpi_montg_init:"e2df85c83ee8463b3af26805791cc0b1ba1af89564e887a63d5ba18ea72fb593b664cf8ace78241ea3109b7644510e02324a5c1e9a85daada3c383759d7678ce8d8886b51a3237dc84b543de4f843c77fc77ba08ef90e7e96ba622478f6b96daa3e9b8511f36279fb0120ef93bad2090e7878346fe4ae29ad61be48b6835e8407d0849422e05c7a4d1e02322f2675056d73d4c5a1ab376bfaccfd61ff7d64b715c9525a7ed8dcda1144f8722c30d12ba3d95221d897edc825a1598a645e2c457":"b777a905d9239899" 385 386mbedtls_mpi_montg_init #14 387mpi_montg_init:"baea2d65939296fc2536f18f2a4042a741f33088ecd5000e76c67a466e7a1e696f8ee9a15497168b3a2b597799dc9475909ebbc64b96f233430c6aa3e4a86e9352b0230081502da09ef41dc0a164a1c6a31bd1338e359a28c78ef50c89f06a46b46a27d7245bba7468334625687201d62ef084de4c5190dfe70c14a318204492de6edd138e14e9337fda739dcadd0212302db7770de28d8c5c79b6a6b5f927e656e157cd7e41204ec39731fe3608ecd4b885a194647fe7f02b74639cc76cdf03":"827ef0810f71fc55" 388 389mbedtls_mpi_montg_init #15 390mpi_montg_init:"bf741f75e28a44e271cf43e68dbadd23c72d2f2e1fc78a6d6aaaadf2ccbf26c9a232aff5b3f3f29323b114f3018144ed9438943e07820e222137d3bb229b61671e61f75f6021a26436df9e669929fa392df021f105d2fce0717468a522018721ccde541b9a7b558128419f457ef33a5753f00c20c2d709727eef6278c55b278b10abe1d13e538514128b5dcb7bfd015e0fdcb081555071813974135d5ab5000630a94f5b0f4021a504ab4f3df2403e6140b9939f8bbe714635f5cff10744be03":"aab901da57bba355" 391 392mbedtls_mpi_core_get_mont_r2_unsafe_neg 393mpi_core_get_mont_r2_unsafe_neg: 394 395mbedtls_mpi_core_get_mont_r2_unsafe #1 396mpi_core_get_mont_r2_unsafe:"f":"1":"1" 397 398mbedtls_mpi_core_get_mont_r2_unsafe #2 399mpi_core_get_mont_r2_unsafe:"fd":"ec":"24" 400 401mbedtls_mpi_core_get_mont_r2_unsafe #3 402mpi_core_get_mont_r2_unsafe:"eeff99aa37":"a23bd6a686":"a23bd6a686" 403 404mbedtls_mpi_core_get_mont_r2_unsafe #4 405mpi_core_get_mont_r2_unsafe:"eeff99aa11":"3308cb71":"3308cb71" 406 407mbedtls_mpi_core_get_mont_r2_unsafe #5 408mpi_core_get_mont_r2_unsafe:"800000000005":"6400000000":"6400000000" 409 410mbedtls_mpi_core_get_mont_r2_unsafe #6 411mpi_core_get_mont_r2_unsafe:"7fffffffffffffff":"4":"4" 412 413mbedtls_mpi_core_get_mont_r2_unsafe #7 414mpi_core_get_mont_r2_unsafe:"80fe000a10000001":"5dbc6e833bad575a":"5dbc6e833bad575a" 415 416mbedtls_mpi_core_get_mont_r2_unsafe #8 417mpi_core_get_mont_r2_unsafe:"25a55a46e5da99c71c7":"11637ce1347edeaf669":"1e455bf7451c05bc711" 418 419mbedtls_mpi_core_get_mont_r2_unsafe #9 420mpi_core_get_mont_r2_unsafe:"314dc643fb763f2b8c0e2de00879":"1058ad82120c3a10196bb36229c1":"1058ad82120c3a10196bb36229c1" 421 422mbedtls_mpi_core_get_mont_r2_unsafe #10 423mpi_core_get_mont_r2_unsafe:"8335616aed761f1f7f44e6bd49e807b82e3bf2bf11bfa63":"5d96a26447dca0cb7209c048f9e63e8dc623d67c8f44396":"5d96a26447dca0cb7209c048f9e63e8dc623d67c8f44396" 424 425mbedtls_mpi_core_get_mont_r2_unsafe #11 426mpi_core_get_mont_r2_unsafe:"d1cece570f2f991013f26dd5b03c4c5b65f97be5905f36cb4664f2c78ff80aa8135a4aaf57ccb8a0aca2f394909a74cef1ef6758a64d11e2c149c393659d124bfc94196f0ce88f7d7d567efa5a649e2deefaa6e10fdc3deac60d606bf63fc540ac95294347031aefd73d6a9ee10188aaeb7a90d920894553cb196881691cadc51808715a07e8b24fcb1a63df047c7cdf084dd177ba368c806f3d51ddb5d3898c863e687ecaf7d649a57a46264a582f94d3c8f2edaf59f77a7f6bdaf83c991e8f06abe220ec8507386fce8c3da84c6c3903ab8f3ad4630a204196a7dbcbd9bcca4e40ec5cc5c09938d49f5e1e6181db8896f33bb12e6ef73f12ec5c5ea7a8a337":"12d7243d92ebc8338221f6dcec8ad8a2ec64c10a98339c8721beb1cb79e629253a7aa35e25d5421e6c2b43ddc4310cf4443875c070a7a5a5cc2c4c3eefa8a133af2e477fb7bb5b5058c6120946a7f9f08f2fab51e2f243b9ba206d2bfd62e4ef647dda49100d7004794f28172be2d715905fbd2e9ab8588c774523c0e096b49b6855a10e5ce0d8498370949a29d71d293788bf10a71e2447d4b2f11959a72f7290e2950772d14c83f15532468745fa58a83fca8883b0b6169a27ec0cf922c4f39d283bb20fca5ff1de01d9c66b8a710108b951af634d56c843d9505bf2edd5a7b8f0b72a5c95672151e60075a78084e83fbe284617a90c74c8335cce38bb012e":"12d7243d92ebc8338221f6dcec8ad8a2ec64c10a98339c8721beb1cb79e629253a7aa35e25d5421e6c2b43ddc4310cf4443875c070a7a5a5cc2c4c3eefa8a133af2e477fb7bb5b5058c6120946a7f9f08f2fab51e2f243b9ba206d2bfd62e4ef647dda49100d7004794f28172be2d715905fbd2e9ab8588c774523c0e096b49b6855a10e5ce0d8498370949a29d71d293788bf10a71e2447d4b2f11959a72f7290e2950772d14c83f15532468745fa58a83fca8883b0b6169a27ec0cf922c4f39d283bb20fca5ff1de01d9c66b8a710108b951af634d56c843d9505bf2edd5a7b8f0b72a5c95672151e60075a78084e83fbe284617a90c74c8335cce38bb012e" 427 428Fill random core: 0 bytes 429mpi_core_fill_random:0:0:1:0:0 430 431Fill random core: 1 byte, RNG stops at 0 432mpi_core_fill_random:1:-1:0:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED 433 434Fill random core: 1 byte, RNG just sufficient 435mpi_core_fill_random:1:0:0:0:0 436 437Fill random core: 1 byte, RNG not exhausted 438mpi_core_fill_random:1:1:0:0:0 439 440Fill random core: 1 byte, prior content nonzero 441mpi_core_fill_random:1:0:0:0xba:0 442 443Fill random core: 1 byte, 1 extra limb 444mpi_core_fill_random:1:0:1:0:0 445 446Fill random core: 1 byte, 1 extra limb, prior content nonzero 447mpi_core_fill_random:1:0:1:0xba:0 448 449Fill random core: 8 bytes, RNG stops before 450mpi_core_fill_random:8:-1:0:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED 451 452Fill random core: 8 bytes, RNG just sufficient 453mpi_core_fill_random:8:0:0:0:0 454 455Fill random core: 8 bytes, RNG not exhausted 456mpi_core_fill_random:8:1:0:0:0 457 458Fill random core: 8 bytes, prior content nonzero 459mpi_core_fill_random:8:0:0:0xba:0 460 461Fill random core: 8 bytes, 1 extra limb 462mpi_core_fill_random:8:0:1:0:0 463 464Fill random core: 8 bytes, 1 extra limb, prior content nonzero 465mpi_core_fill_random:8:0:1:0xba:0 466 467Fill random core: 9 bytes, 1 missing limb 468mpi_core_fill_random:9:0:-1:0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA 469 470Fill random core: 42 bytes, RNG stops before 471mpi_core_fill_random:42:-1:0:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED 472 473Fill random core: 42 bytes, RNG just sufficient 474mpi_core_fill_random:42:0:0:0:0 475 476Fill random core: 42 bytes, RNG not exhausted 477mpi_core_fill_random:42:1:0:0:0 478 479Fill random core: 42 bytes, prior content nonzero 480mpi_core_fill_random:42:0:0:0xba:0 481 482Fill random core: 42 bytes, 1 extra limb 483mpi_core_fill_random:42:0:1:0:0 484 485Fill random core: 42 bytes, 1 extra limb, prior content nonzero 486mpi_core_fill_random:42:0:1:0xba:0 487 488Fill random core: 42 bytes, 1 missing limb 489mpi_core_fill_random:42:0:-1:0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA 490 491Fill random core: 42 bytes, 5 missing limbs 492mpi_core_fill_random:42:0:-5:0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA 493 494CLZ: 0 0: all ones 495mpi_core_clz:0:0 496 497CLZ: 1 0 498mpi_core_clz:1:0 499 500CLZ: 1 1 501mpi_core_clz:1:1 502 503CLZ: 4 5 504mpi_core_clz:4:5 505 506CLZ: 8 16 507mpi_core_clz:8:16 508 509CLZ: 31 0 510mpi_core_clz:31:0 511 512CLZ: 32 0 513mpi_core_clz:32:0 514 515CLZ: 33 0 516mpi_core_clz:33:0 517 518CLZ: 63 0 519mpi_core_clz:63:0 520 521CLZ: 64 0 522mpi_core_clz:64:0 523 524CLZ: 100000 0: skip overly long input 525mpi_core_clz:100000:0 526