mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Make mbedtls_mpi_core_ct_uint_table_lookup static
Now that we have a function that calls mbedtls_mpi_core_ct_uint_table_lookup(), the compiler won't complain if we make it static. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
@ -540,6 +540,7 @@ cleanup:
|
|||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MBEDTLS_STATIC_TESTABLE
|
||||||
void mbedtls_mpi_core_ct_uint_table_lookup( mbedtls_mpi_uint *dest,
|
void mbedtls_mpi_core_ct_uint_table_lookup( mbedtls_mpi_uint *dest,
|
||||||
const mbedtls_mpi_uint *table,
|
const mbedtls_mpi_uint *table,
|
||||||
size_t limbs,
|
size_t limbs,
|
||||||
|
@ -452,6 +452,7 @@ void mbedtls_mpi_core_montmul( mbedtls_mpi_uint *X,
|
|||||||
int mbedtls_mpi_core_get_mont_r2_unsafe( mbedtls_mpi *X,
|
int mbedtls_mpi_core_get_mont_r2_unsafe( mbedtls_mpi *X,
|
||||||
const mbedtls_mpi *N );
|
const mbedtls_mpi *N );
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_TEST_HOOKS)
|
||||||
/**
|
/**
|
||||||
* Copy an MPI from a table without leaking the index.
|
* Copy an MPI from a table without leaking the index.
|
||||||
*
|
*
|
||||||
@ -469,6 +470,7 @@ void mbedtls_mpi_core_ct_uint_table_lookup( mbedtls_mpi_uint *dest,
|
|||||||
size_t limbs,
|
size_t limbs,
|
||||||
size_t count,
|
size_t count,
|
||||||
size_t index );
|
size_t index );
|
||||||
|
#endif /* MBEDTLS_TEST_HOOKS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Fill an integer with a number of random bytes.
|
* \brief Fill an integer with a number of random bytes.
|
||||||
|
@ -935,7 +935,7 @@ exit:
|
|||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE */
|
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS */
|
||||||
void mpi_core_ct_uint_table_lookup( int bitlen, int window_size )
|
void mpi_core_ct_uint_table_lookup( int bitlen, int window_size )
|
||||||
{
|
{
|
||||||
size_t limbs = BITS_TO_LIMBS( bitlen );
|
size_t limbs = BITS_TO_LIMBS( bitlen );
|
||||||
|
Reference in New Issue
Block a user