Lines Matching refs:k
554 size_t i, j, k; in mbedtls_mpi_write_string() local
556 for( i = X->n, k = 0; i > 0; i-- ) in mbedtls_mpi_write_string()
562 if( c == 0 && k == 0 && ( i + j ) != 2 ) in mbedtls_mpi_write_string()
567 k = 1; in mbedtls_mpi_write_string()
1320 size_t i, n, t, k; in mbedtls_mpi_div_mpi() local
1345 k = mbedtls_mpi_bitlen( &Y ) % biL; in mbedtls_mpi_div_mpi()
1346 if( k < biL - 1 ) in mbedtls_mpi_div_mpi()
1348 k = biL - 1 - k; in mbedtls_mpi_div_mpi()
1349 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &X, k ) ); in mbedtls_mpi_div_mpi()
1350 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, k ) ); in mbedtls_mpi_div_mpi()
1352 else k = 0; in mbedtls_mpi_div_mpi()
1413 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &X, k ) ); in mbedtls_mpi_div_mpi()
2046 size_t i, j, k, n, s; in mpi_miller_rabin() local
2088 k = mbedtls_mpi_bitlen( &W ); in mpi_miller_rabin()
2089 if (j > k) { in mpi_miller_rabin()
2090 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &A, j - k ) ); in mpi_miller_rabin()
2182 size_t k, n; in mbedtls_mpi_gen_prime() local
2195 k = mbedtls_mpi_bitlen( X ); in mbedtls_mpi_gen_prime()
2196 if( k > nbits ) MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( X, k - nbits + 1 ) ); in mbedtls_mpi_gen_prime()