Lines Matching refs:mbedtls_mpi_uint
210 mbedtls_mpi_uint *p; in mbedtls_mpi_grow()
217 if ((p = (mbedtls_mpi_uint *) mbedtls_calloc(nblimbs, ciL)) == NULL) { in mbedtls_mpi_grow()
241 mbedtls_mpi_uint *p; in mbedtls_mpi_shrink()
265 if ((p = (mbedtls_mpi_uint *) mbedtls_calloc(i, ciL)) == NULL) { in mbedtls_mpi_shrink()
357 static inline mbedtls_mpi_uint mpi_sint_abs(mbedtls_mpi_sint z) in mpi_sint_abs()
366 return (mbedtls_mpi_uint) 0 - (mbedtls_mpi_uint) z; in mpi_sint_abs()
371 #define TO_SIGN(x) ((mbedtls_mpi_sint) (((mbedtls_mpi_uint) x) >> (biL - 1)) * -2 + 1)
424 X->p[off] &= ~((mbedtls_mpi_uint) 0x01 << idx); in mbedtls_mpi_set_bit()
425 X->p[off] |= (mbedtls_mpi_uint) val << idx; in mbedtls_mpi_set_bit()
488 static int mpi_get_digit(mbedtls_mpi_uint *d, int radix, char c) in mpi_get_digit()
502 if (*d >= (mbedtls_mpi_uint) radix) { in mpi_get_digit()
517 mbedtls_mpi_uint d; in mbedtls_mpi_read_string()
580 mbedtls_mpi_uint r; in mpi_write_hlp()
701 mbedtls_mpi_uint d; in mbedtls_mpi_read_file()
986 mbedtls_mpi_uint p[1]; in mbedtls_mpi_cmp_int()
1003 mbedtls_mpi_uint *p; in mbedtls_mpi_add_abs()
1004 mbedtls_mpi_uint c; in mbedtls_mpi_add_abs()
1064 mbedtls_mpi_uint carry; in mbedtls_mpi_sub_abs()
1163 mbedtls_mpi_uint p[1]; in mbedtls_mpi_add_int()
1179 mbedtls_mpi_uint p[1]; in mbedtls_mpi_sub_int()
1252 int mbedtls_mpi_mul_int(mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_uint b) in mbedtls_mpi_mul_int()
1289 static mbedtls_mpi_uint mbedtls_int_div_int(mbedtls_mpi_uint u1, in mbedtls_int_div_int()
1290 mbedtls_mpi_uint u0, in mbedtls_int_div_int()
1291 mbedtls_mpi_uint d, in mbedtls_int_div_int()
1292 mbedtls_mpi_uint *r) in mbedtls_int_div_int()
1297 const mbedtls_mpi_uint radix = (mbedtls_mpi_uint) 1 << biH; in mbedtls_int_div_int()
1298 const mbedtls_mpi_uint uint_halfword_mask = ((mbedtls_mpi_uint) 1 << biH) - 1; in mbedtls_int_div_int()
1299 mbedtls_mpi_uint d0, d1, q0, q1, rAX, r0, quotient; in mbedtls_int_div_int()
1300 mbedtls_mpi_uint u0_msw, u0_lsw; in mbedtls_int_div_int()
1309 *r = ~(mbedtls_mpi_uint) 0u; in mbedtls_int_div_int()
1312 return ~(mbedtls_mpi_uint) 0u; in mbedtls_int_div_int()
1324 *r = (mbedtls_mpi_uint) (dividend - (quotient * d)); in mbedtls_int_div_int()
1327 return (mbedtls_mpi_uint) quotient; in mbedtls_int_div_int()
1398 mbedtls_mpi_uint TP2[3]; in mbedtls_mpi_div_mpi()
1456 Z.p[i - t - 1] = ~(mbedtls_mpi_uint) 0u; in mbedtls_mpi_div_mpi()
1520 mbedtls_mpi_uint p[1]; in mbedtls_mpi_div_int()
1559 int mbedtls_mpi_mod_int(mbedtls_mpi_uint *r, const mbedtls_mpi *A, mbedtls_mpi_sint b) in mbedtls_mpi_mod_int()
1562 mbedtls_mpi_uint x, y, z; in mbedtls_mpi_mod_int()
1644 mbedtls_mpi_uint *T = (mbedtls_mpi_uint *) mbedtls_calloc(T_limbs, sizeof(mbedtls_mpi_uint)); in mbedtls_mpi_exp_mod()
1696 mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N->p); in mbedtls_mpi_exp_mod()
2007 mbedtls_mpi_uint r; in mpi_check_small_factors()
2064 A.p[A.n - 1] &= ((mbedtls_mpi_uint) 1 << (k - (A.n - 1) * biL - 1)) - 1; in mpi_miller_rabin()
2173 mbedtls_mpi_uint r; in mbedtls_mpi_gen_prime()