Searched refs:radix (Results 1 – 5 of 5) sorted by relevance
/mbedtls-3.5.0/library/ |
D | bignum.c | 366 static int mpi_get_digit(mbedtls_mpi_uint *d, int radix, char c) in mpi_get_digit() argument 380 if (*d >= (mbedtls_mpi_uint) radix) { in mpi_get_digit() 390 int mbedtls_mpi_read_string(mbedtls_mpi *X, int radix, const char *s) in mbedtls_mpi_read_string() argument 400 if (radix < 2 || radix > 16) { in mbedtls_mpi_read_string() 418 if (radix == 16) { in mbedtls_mpi_read_string() 429 MBEDTLS_MPI_CHK(mpi_get_digit(&d, radix, s[i - 1])); in mbedtls_mpi_read_string() 436 MBEDTLS_MPI_CHK(mpi_get_digit(&d, radix, s[i])); in mbedtls_mpi_read_string() 437 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_int(&T, X, radix)); in mbedtls_mpi_read_string() 456 static int mpi_write_hlp(mbedtls_mpi *X, int radix, in mpi_write_hlp() argument 469 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_int(&r, X, radix)); in mpi_write_hlp() [all …]
|
D | ecp.c | 676 int mbedtls_ecp_point_read_string(mbedtls_ecp_point *P, int radix, in mbedtls_ecp_point_read_string() argument 680 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&P->X, radix, x)); in mbedtls_ecp_point_read_string() 681 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&P->Y, radix, y)); in mbedtls_ecp_point_read_string()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | bignum.h | 457 int mbedtls_mpi_read_string(mbedtls_mpi *X, int radix, const char *s); 481 int mbedtls_mpi_write_string(const mbedtls_mpi *X, int radix, 506 int mbedtls_mpi_read_file(mbedtls_mpi *X, int radix, FILE *fin); 524 int radix, FILE *fout);
|
D | ecp.h | 741 int mbedtls_ecp_point_read_string(mbedtls_ecp_point *P, int radix,
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_bignum.misc.data | 46 Test mpi_read_write_string #2 (Illegal input radix) 55 Test mpi_read_write_string #5 (Illegal output radix) 58 Test mpi_read_write_string #6 (Output radix of 15)
|