From 8c32b24a3580a4e7ae390b8c69b12edce3f788c8 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 7 Dec 2022 23:01:44 +0100 Subject: [PATCH] Rename MPI-legacy test function for clarity A mod version of the function will be added very soon. Signed-off-by: Gilles Peskine --- tests/suites/test_suite_bignum_random.data | 26 +++++++++---------- .../suites/test_suite_bignum_random.function | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/suites/test_suite_bignum_random.data b/tests/suites/test_suite_bignum_random.data index fe290531a9..bf51b0f0a5 100644 --- a/tests/suites/test_suite_bignum_random.data +++ b/tests/suites/test_suite_bignum_random.data @@ -17,31 +17,31 @@ MPI core random basic: 2^30..2^129 mpi_core_random_basic:0x40000000:"0200000000000000000000000000000000":0 # Use the same data values for mpi_core_random_basic->NOT_ACCEPTABLE -# and for mpi_random_values where we want to return NOT_ACCEPTABLE but -# this isn't checked at runtime. +# and for mpi_legacy_random_values where we want to return NOT_ACCEPTABLE +# but this isn't checked at runtime. MPI core random basic: 2^28-1..2^28 (NOT_ACCEPTABLE) mpi_core_random_basic:0x0fffffff:"10000000":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE MPI random legacy=core: 2^28-1..2^28 (NOT_ACCEPTABLE) -mpi_random_values:0x0fffffff:"10000000" +mpi_legacy_random_values:0x0fffffff:"10000000" MPI core random basic: 2^29-1..2^29 (NOT_ACCEPTABLE) mpi_core_random_basic:0x1fffffff:"20000000":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE MPI random legacy=core: 2^29-1..2^29 (NOT_ACCEPTABLE) -mpi_random_values:0x1fffffff:"20000000" +mpi_legacy_random_values:0x1fffffff:"20000000" MPI core random basic: 2^30-1..2^30 (NOT_ACCEPTABLE) mpi_core_random_basic:0x3fffffff:"40000000":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE MPI random legacy=core: 2^30-1..2^30 (NOT_ACCEPTABLE) -mpi_random_values:0x3fffffff:"40000000" +mpi_legacy_random_values:0x3fffffff:"40000000" MPI core random basic: 2^31-1..2^31 (NOT_ACCEPTABLE) mpi_core_random_basic:0x7fffffff:"80000000":MBEDTLS_ERR_MPI_NOT_ACCEPTABLE MPI random legacy=core: 2^31-1..2^31 (NOT_ACCEPTABLE) -mpi_random_values:0x7fffffff:"80000000" +mpi_legacy_random_values:0x7fffffff:"80000000" MPI random in range: 1..2 mpi_random_many:1:"02":1000 @@ -214,22 +214,22 @@ MPI random bad arguments: min > N = 1, 0 limb in upper bound mpi_random_fail:2:"000000000000000001":MBEDTLS_ERR_MPI_BAD_INPUT_DATA MPI random legacy=core: 0..1 -mpi_random_values:0:"01" +mpi_legacy_random_values:0:"01" MPI random legacy=core: 0..2 -mpi_random_values:0:"02" +mpi_legacy_random_values:0:"02" MPI random legacy=core: 1..2 -mpi_random_values:1:"02" +mpi_legacy_random_values:1:"02" MPI random legacy=core: 2^30..2^31 -mpi_random_values:0x40000000:"80000000" +mpi_legacy_random_values:0x40000000:"80000000" MPI random legacy=core: 2^31-1..2^32-1 -mpi_random_values:0x7fffffff:"ffffffff" +mpi_legacy_random_values:0x7fffffff:"ffffffff" MPI random legacy=core: 0..2^256 -mpi_random_values:0:"010000000000000000000000000000000000000000000000000000000000000000" +mpi_legacy_random_values:0:"010000000000000000000000000000000000000000000000000000000000000000" MPI random legacy=core: 0..2^256+1 -mpi_random_values:0:"010000000000000000000000000000000000000000000000000000000000000001" +mpi_legacy_random_values:0:"010000000000000000000000000000000000000000000000000000000000000001" diff --git a/tests/suites/test_suite_bignum_random.function b/tests/suites/test_suite_bignum_random.function index 184de5a405..2250e8c5de 100644 --- a/tests/suites/test_suite_bignum_random.function +++ b/tests/suites/test_suite_bignum_random.function @@ -110,7 +110,7 @@ exit: /* END_CASE */ /* BEGIN_CASE */ -void mpi_random_values( int min, char *max_hex ) +void mpi_legacy_random_values( int min, char *max_hex ) { /* Same RNG as in mpi_core_random_basic */ mbedtls_test_rnd_pseudo_info rnd_core = rnd_pseudo_seed;