Lines Matching refs:k
543 size_t i, j, k; in mbedtls_mpi_write_string() local
545 for (i = X->n, k = 0; i > 0; i--) { in mbedtls_mpi_write_string()
549 if (c == 0 && k == 0 && (i + j) != 2) { in mbedtls_mpi_write_string()
555 k = 1; in mbedtls_mpi_write_string()
1169 for (size_t k = 0; k < j; k++) { in mbedtls_mpi_mul_mpi() local
1172 (void) mbedtls_mpi_core_mla(X->p + k, i + 1, in mbedtls_mpi_mul_mpi()
1174 B->p[k]); in mbedtls_mpi_mul_mpi()
1344 size_t i, n, t, k; in mbedtls_mpi_div_mpi() local
1385 k = mbedtls_mpi_bitlen(&Y) % biL; in mbedtls_mpi_div_mpi()
1386 if (k < biL - 1) { in mbedtls_mpi_div_mpi()
1387 k = biL - 1 - k; in mbedtls_mpi_div_mpi()
1388 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&X, k)); in mbedtls_mpi_div_mpi()
1389 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&Y, k)); in mbedtls_mpi_div_mpi()
1391 k = 0; in mbedtls_mpi_div_mpi()
1444 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(&X, k)); in mbedtls_mpi_div_mpi()
2271 size_t i, j, k, s; in mpi_miller_rabin() local
2299 k = mbedtls_mpi_bitlen(&W); in mpi_miller_rabin()
2300 if (j > k) { in mpi_miller_rabin()
2301 A.p[A.n - 1] &= ((mbedtls_mpi_uint) 1 << (k - (A.n - 1) * biL - 1)) - 1; in mpi_miller_rabin()
2410 size_t k, n; in mbedtls_mpi_gen_prime() local
2451 k = n * biL; in mbedtls_mpi_gen_prime()
2452 if (k > nbits) { in mbedtls_mpi_gen_prime()
2453 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_r(X, k - nbits)); in mbedtls_mpi_gen_prime()