mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-27 06:35:22 +00:00
Add checks to guarantee positive input parameters
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
bda7f87e2a
commit
b70f5f1881
@ -1378,6 +1378,9 @@ void ecp_mod_p192k1(char *input_N,
|
||||
limbs_X = X.n;
|
||||
limbs_N = N.n;
|
||||
limbs_res = res.n;
|
||||
TEST_ASSERT(mbedtls_mpi_core_uint_le_mpi(0, X.p, X.n));
|
||||
TEST_ASSERT(mbedtls_mpi_core_uint_le_mpi(0, N.p, N.n));
|
||||
TEST_ASSERT(mbedtls_mpi_core_uint_le_mpi(0, res.p, res.n));
|
||||
|
||||
size_t limbs = limbs_N;
|
||||
size_t bytes = limbs * sizeof(mbedtls_mpi_uint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user