Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dradix_to_bin.c28 int radix_to_bin(const void *in, int radix, void *out, unsigned long *len) in radix_to_bin() argument
38 if ((err = mp_read_radix(mpi, in, radix)) != CRYPT_OK) goto LBL_ERR; in radix_to_bin()
A Dgmp_desc.c136 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
141 if (radix == 64) { in read_radix()
173 ret = mpz_set_str(a, b, radix); in read_radix()
179 static int write_radix(void *a, char *b, int radix) in write_radix() argument
183 if (radix >= 11 && radix <= 36) in write_radix()
187 radix = -radix; in write_radix()
188 mpz_get_str(b, radix, a); in write_radix()
A Dltm_desc.c184 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
188 return mpi_to_ltc_error(mp_read_radix(a, b, radix)); in read_radix()
192 static int write_radix(void *a, char *b, int radix) in write_radix() argument
197 return mpi_to_ltc_error(mp_toradix(a, b, radix)); in write_radix()
199 return mpi_to_ltc_error(mp_to_radix(a, b, SIZE_MAX, NULL, radix)); in write_radix()
A Dtfm_desc.c159 static int read_radix(void *a, const char *b, int radix) in read_radix() argument
163 return tfm_to_ltc_error(fp_read_radix(a, (char *)b, radix)); in read_radix()
167 static int write_radix(void *a, char *b, int radix) in write_radix() argument
171 return tfm_to_ltc_error(fp_toradix(a, b, radix)); in write_radix()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dbignum.c476 if( radix < 2 || radix > 16 ) in mbedtls_mpi_read_string()
495 if( radix == 16 ) in mbedtls_mpi_read_string()
586 if( radix < 2 || radix > 16 ) in mbedtls_mpi_write_string()
619 if( radix == 16 ) in mbedtls_mpi_write_string()
677 if( radix < 2 || radix > 16 ) in mbedtls_mpi_read_file()
713 if( radix < 2 || radix > 16 ) in mbedtls_mpi_write_file()
1658 while( q1 >= radix || ( q1 * d0 > radix * r0 + u0_msw ) ) in mbedtls_int_div_int()
1663 if ( r0 >= radix ) break; in mbedtls_int_div_int()
1670 while( q0 >= radix || ( q0 * d0 > radix * r0 + u0_lsw ) ) in mbedtls_int_div_int()
1675 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-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_math.h28 int radix_to_bin(const void *in, int radix, void *out, unsigned long *len);
156 int (*read_radix)(void *a, const char *str, int radix);
164 int (*write_radix)(void *a, char *str, int radix);
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbignum.h423 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
447 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
472 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
490 int radix, FILE *fout );
A Decp.h737 int mbedtls_ecp_point_read_string( mbedtls_ecp_point *P, int radix,
/optee_os-3.20.0/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 24 milliseconds