Skip to content

Commit 0e4792e

Browse files
committed
mpi_lt_mpi_ct perform tests for both limb size
The corner case tests were designed for 32 and 64 bit limbs independently and performed only on the target platform. On the other platform they are not corner cases anymore, but we can still exercise them.
1 parent 67ce647 commit 0e4792e

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

tests/suites/test_suite_mpi.data

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -209,43 +209,33 @@ Base test mbedtls_mpi_lt_mpi_ct (Y is longer in storage) #8
209209
mbedtls_mpi_lt_mpi_ct:3:"2B5":4:"2B5":0:MBEDTLS_ERR_MPI_BAD_INPUT_DATA
210210

211211
Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #1
212-
depends_on:MBEDTLS_HAVE_INT64
213-
mbedtls_mpi_lt_mpi_ct:1:"7FFFFFFFFFFFFFFF":1:"FF":0:0
212+
mbedtls_mpi_lt_mpi_ct:2:"7FFFFFFFFFFFFFFF":2:"FF":0:0
214213

215214
Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #2
216-
depends_on:MBEDTLS_HAVE_INT64
217-
mbedtls_mpi_lt_mpi_ct:1:"8000000000000000":1:"7FFFFFFFFFFFFFFF":0:0
215+
mbedtls_mpi_lt_mpi_ct:2:"8000000000000000":2:"7FFFFFFFFFFFFFFF":0:0
218216

219217
Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #3
220-
depends_on:MBEDTLS_HAVE_INT64
221-
mbedtls_mpi_lt_mpi_ct:1:"8000000000000000":1:"1":0:0
218+
mbedtls_mpi_lt_mpi_ct:2:"8000000000000000":2:"1":0:0
222219

223220
Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #4
224-
depends_on:MBEDTLS_HAVE_INT64
225-
mbedtls_mpi_lt_mpi_ct:1:"8000000000000000":1:"0":0:0
221+
mbedtls_mpi_lt_mpi_ct:2:"8000000000000000":2:"0":0:0
226222

227223
Base test mbedtls_mpi_lt_mpi_ct (corner case - 64 bit) #5
228-
depends_on:MBEDTLS_HAVE_INT64
229-
mbedtls_mpi_lt_mpi_ct:1:"FFFFFFFFFFFFFFFF":1:"FF":0:0
224+
mbedtls_mpi_lt_mpi_ct:2:"FFFFFFFFFFFFFFFF":2:"FF":0:0
230225

231226
Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #1
232-
depends_on:MBEDTLS_HAVE_INT32
233227
mbedtls_mpi_lt_mpi_ct:1:"7FFFFFFF":1:"FF":0:0
234228

235229
Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #2
236-
depends_on:MBEDTLS_HAVE_INT32
237230
mbedtls_mpi_lt_mpi_ct:1:"80000000":1:"7FFFFFFF":0:0
238231

239232
Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #3
240-
depends_on:MBEDTLS_HAVE_INT32
241233
mbedtls_mpi_lt_mpi_ct:1:"80000000":1:"1":0:0
242234

243235
Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #4
244-
depends_on:MBEDTLS_HAVE_INT32
245236
mbedtls_mpi_lt_mpi_ct:1:"80000000":1:"0":0:0
246237

247238
Base test mbedtls_mpi_lt_mpi_ct (corner case - 32 bit) #5
248-
depends_on:MBEDTLS_HAVE_INT32
249239
mbedtls_mpi_lt_mpi_ct:1:"FFFFFFFF":1:"FF":0:0
250240

251241
Multi-limb mbedtls_mpi_lt_mpi_ct (X<Y, zero vs non-zero MS limb) #1

0 commit comments

Comments
 (0)