Lines Matching refs:mbedtls_mpi
150 mbedtls_mpi; typedef
159 void mbedtls_mpi_init( mbedtls_mpi *X );
166 void mbedtls_mpi_free( mbedtls_mpi *X );
177 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs );
188 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs );
199 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
207 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
226 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
245 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
256 int mbedtls_mpi_lset( mbedtls_mpi *X, mbedtls_mpi_sint z );
266 int mbedtls_mpi_get_bit( const mbedtls_mpi *X, size_t pos );
282 int mbedtls_mpi_set_bit( mbedtls_mpi *X, size_t pos, unsigned char val );
292 size_t mbedtls_mpi_lsb( const mbedtls_mpi *X );
302 size_t mbedtls_mpi_bitlen( const mbedtls_mpi *X );
309 size_t mbedtls_mpi_size( const mbedtls_mpi *X );
320 int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s );
338 int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
353 int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin );
367 int mbedtls_mpi_write_file( const char *p, const mbedtls_mpi *X, int radix, FILE *fout );
380 int mbedtls_mpi_read_binary( mbedtls_mpi *X, const unsigned char *buf, size_t buflen );
394 int mbedtls_mpi_write_binary( const mbedtls_mpi *X, unsigned char *buf, size_t buflen );
405 int mbedtls_mpi_shift_l( mbedtls_mpi *X, size_t count );
416 int mbedtls_mpi_shift_r( mbedtls_mpi *X, size_t count );
428 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y );
440 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
452 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
464 int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
476 int mbedtls_mpi_sub_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
488 int mbedtls_mpi_add_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
500 int mbedtls_mpi_sub_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
512 int mbedtls_mpi_add_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b );
524 int mbedtls_mpi_sub_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b );
536 int mbedtls_mpi_mul_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
550 int mbedtls_mpi_mul_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_uint b );
566 int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B…
582 int mbedtls_mpi_div_int( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, mbedtls_mpi_sint b );
596 int mbedtls_mpi_mod_mpi( mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B );
610 int mbedtls_mpi_mod_int( mbedtls_mpi_uint *r, const mbedtls_mpi *A, mbedtls_mpi_sint b );
630 int mbedtls_mpi_exp_mod( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *E, const mbedtls_…
643 int mbedtls_mpi_fill_random( mbedtls_mpi *X, size_t size,
657 int mbedtls_mpi_gcd( mbedtls_mpi *G, const mbedtls_mpi *A, const mbedtls_mpi *B );
671 int mbedtls_mpi_inv_mod( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *N );
684 int mbedtls_mpi_is_prime( const mbedtls_mpi *X,
702 int mbedtls_mpi_gen_prime( mbedtls_mpi *X, size_t nbits, int dh_flag,