mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-23 03:39:53 +00:00
Change the fix_quasi_reduction function to static
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
aaa1d2a276
commit
e81a2b85c9
@ -28,6 +28,8 @@
|
|||||||
#include "mbedtls/bignum.h"
|
#include "mbedtls/bignum.h"
|
||||||
#include "bignum_mod.h"
|
#include "bignum_mod.h"
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_TEST_HOOKS)
|
||||||
|
|
||||||
/** Convert an MPI to its canonical representative.
|
/** Convert an MPI to its canonical representative.
|
||||||
*
|
*
|
||||||
* \note Currently handles the case when `N->int_rep` is
|
* \note Currently handles the case when `N->int_rep` is
|
||||||
@ -44,4 +46,6 @@ MBEDTLS_STATIC_TESTABLE
|
|||||||
int mbedtls_mpi_mod_raw_fix_quasi_reduction(mbedtls_mpi_uint *X,
|
int mbedtls_mpi_mod_raw_fix_quasi_reduction(mbedtls_mpi_uint *X,
|
||||||
const mbedtls_mpi_mod_modulus *N);
|
const mbedtls_mpi_mod_modulus *N);
|
||||||
|
|
||||||
|
#endif /* MBEDTLS_TEST_HOOKS */
|
||||||
|
|
||||||
#endif /* MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H */
|
#endif /* MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H */
|
||||||
|
@ -340,7 +340,7 @@ exit:
|
|||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE */
|
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS */
|
||||||
void mpi_mod_raw_fix_quasi_reduction(char *input_N,
|
void mpi_mod_raw_fix_quasi_reduction(char *input_N,
|
||||||
char *input_A,
|
char *input_A,
|
||||||
char *result)
|
char *result)
|
||||||
@ -381,7 +381,7 @@ exit:
|
|||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE */
|
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS */
|
||||||
void mpi_mod_raw_fix_quasi_reduction_neg(char *input_N,
|
void mpi_mod_raw_fix_quasi_reduction_neg(char *input_N,
|
||||||
char *input_A,
|
char *input_A,
|
||||||
char *result)
|
char *result)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user