Lines Matching refs:i
53 size_t i; in mbedtls_ct_memcmp() local
58 for( i = 0; i < n; i++ ) in mbedtls_ct_memcmp()
63 unsigned char x = A[i], y = B[i]; in mbedtls_ct_memcmp()
306 size_t i; in mbedtls_ct_mpi_uint_cond_assign() local
322 for( i = 0; i < n; i++ ) in mbedtls_ct_mpi_uint_cond_assign()
323 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mbedtls_ct_mpi_uint_cond_assign()
386 size_t i, n; in mbedtls_ct_mem_move_to_left() local
389 for( i = 0; i < total; i++ ) in mbedtls_ct_mem_move_to_left()
391 unsigned no_op = mbedtls_ct_size_gt( total - offset, i ); in mbedtls_ct_mem_move_to_left()
420 for( size_t i = 0; i < len; i++ ) in mbedtls_ct_memcpy_if_eq() local
421 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mbedtls_ct_memcpy_if_eq()
541 size_t i; in mbedtls_mpi_safe_cond_assign() local
555 for( i = Y->n; i < X->n; i++ ) in mbedtls_mpi_safe_cond_assign()
556 X->p[i] &= ~limb_mask; in mbedtls_mpi_safe_cond_assign()
573 size_t i; in mbedtls_mpi_safe_cond_swap() local
593 for( i = 0; i < X->n; i++ ) in mbedtls_mpi_safe_cond_swap()
595 tmp = X->p[i]; in mbedtls_mpi_safe_cond_swap()
596 X->p[i] = ( X->p[i] & ~limb_mask ) | ( Y->p[i] & limb_mask ); in mbedtls_mpi_safe_cond_swap()
597 Y->p[i] = ( Y->p[i] & ~limb_mask ) | ( tmp & limb_mask ); in mbedtls_mpi_safe_cond_swap()
611 size_t i; in mbedtls_mpi_lt_mpi_ct() local
643 for( i = X->n; i > 0; i-- ) in mbedtls_mpi_lt_mpi_ct()
652 cond = mbedtls_ct_mpi_uint_lt( Y->p[i - 1], X->p[i - 1] ); in mbedtls_mpi_lt_mpi_ct()
663 cond = mbedtls_ct_mpi_uint_lt( X->p[i - 1], Y->p[i - 1] ); in mbedtls_mpi_lt_mpi_ct()
683 size_t i, plaintext_max_size; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() local
716 for( i = 2; i < ilen; i++ ) in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
718 pad_done |= ((input[i] | (unsigned char)-input[i]) >> 7) ^ 1; in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
731 for( i = 2; i < ilen; i++ ) in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
733 pad_done |= mbedtls_ct_uint_if( input[i], 0, 1 ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
735 bad |= mbedtls_ct_uint_if( pad_done, 0, input[i] ^ 0xFF ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
779 for( i = 11; i < ilen; i++ ) in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
780 input[i] &= ~bad; in mbedtls_ct_rsaes_pkcs1_v15_unpadding()