Home
last modified time | relevance | path

Searched refs:radix (Results 1 – 18 of 18) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/math/
A Dradix_to_bin.c35 int radix_to_bin(const void *in, int radix, void *out, unsigned long *len) in radix_to_bin() argument
45 if ((err = mp_read_radix(mpi, in, radix)) != CRYPT_OK) goto LBL_ERR; in radix_to_bin()
A Dgmp_desc.c143 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
148 if (radix == 64) { in read_radix()
180 ret = mpz_set_str(a, b, radix); in read_radix()
186 static int write_radix(void *a, char *b, int radix) in write_radix() argument
190 if (radix >= 11 && radix <= 36) in write_radix()
194 radix = -radix; in write_radix()
195 mpz_get_str(b, radix, a); in write_radix()
A Dltm_desc.c176 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
180 return mpi_to_ltc_error(mp_read_radix(a, b, radix)); in read_radix()
184 static int write_radix(void *a, char *b, int radix) in write_radix() argument
188 return mpi_to_ltc_error(mp_toradix(a, b, radix)); in write_radix()
A Dtfm_desc.c166 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
170 return tfm_to_ltc_error(fp_read_radix(a, (char *)b, radix)); in read_radix()
174 static int write_radix(void *a, char *b, int radix) in write_radix() argument
178 return tfm_to_ltc_error(fp_toradix(a, b, radix)); in write_radix()
/optee_os/lib/libmbedtls/mbedtls/library/
A Dbignum.c630 if( radix < 2 || radix > 16 ) in mbedtls_mpi_read_string()
649 if( radix == 16 ) in mbedtls_mpi_read_string()
740 if( radix < 2 || radix > 16 ) in mbedtls_mpi_write_string()
773 if( radix == 16 ) in mbedtls_mpi_write_string()
831 if( radix < 2 || radix > 16 ) in mbedtls_mpi_read_file()
867 if( radix < 2 || radix > 16 ) in mbedtls_mpi_write_file()
1913 while( q1 >= radix || ( q1 * d0 > radix * r0 + u0_msw ) ) in mbedtls_int_div_int()
1918 if ( r0 >= radix ) break; in mbedtls_int_div_int()
1925 while( q0 >= radix || ( q0 * d0 > radix * r0 + u0_lsw ) ) in mbedtls_int_div_int()
1930 if ( r0 >= radix ) break; in mbedtls_int_div_int()
[all …]
A Decp.c854 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix, in mbedtls_ecp_point_read_string() argument
862 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &P->X, radix, x ) ); in mbedtls_ecp_point_read_string()
863 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &P->Y, radix, y ) ); in mbedtls_ecp_point_read_string()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_math.h35 int radix_to_bin(const void *in, int radix, void *out, unsigned long *len);
163 int (*read_radix)(void *a, const char *str, int radix);
171 int (*write_radix)(void *a, char *str, int radix);
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dbignum.h415 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
439 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
464 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
482 int radix, FILE *fout );
A Decp.h727 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix,
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dbignum.h415 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
439 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
464 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
482 int radix, FILE *fout );
A Decp.h727 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbignum.h415 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
439 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
464 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
482 int radix, FILE *fout );
A Decp.h727 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dbignum.h415 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
439 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
464 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
482 int radix, FILE *fout );
A Decp.h727 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dbignum.h415 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
439 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
464 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
482 int radix, FILE *fout );
A Decp.h727 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix,
/optee_os/core/lib/libtomcrypt/
A Dmpi_desc.c211 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
213 int res = mbedtls_mpi_read_string(a, radix, b); in read_radix()
224 static int write_radix(void *a, char *b, int radix) in write_radix() argument
227 int res = mbedtls_mpi_write_string(a, radix, b, ol, &ol); in write_radix()

Completed in 42 milliseconds