Lines Matching refs:i
54 size_t i; in mbedtls_ct_memcmp() local
59 for( i = 0; i < n; i++ ) in mbedtls_ct_memcmp()
64 unsigned char x = A[i], y = B[i]; in mbedtls_ct_memcmp()
307 size_t i; in mbedtls_ct_mpi_uint_cond_assign() local
323 for( i = 0; i < n; i++ ) in mbedtls_ct_mpi_uint_cond_assign()
324 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mbedtls_ct_mpi_uint_cond_assign()
387 size_t i, n; in mbedtls_ct_mem_move_to_left() local
390 for( i = 0; i < total; i++ ) in mbedtls_ct_mem_move_to_left()
392 unsigned no_op = mbedtls_ct_size_gt( total - offset, i ); in mbedtls_ct_mem_move_to_left()
421 for( size_t i = 0; i < len; i++ ) in mbedtls_ct_memcpy_if_eq() local
422 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mbedtls_ct_memcpy_if_eq()
489 size_t i; in mbedtls_ct_hmac() local
506 for( i = 0; i < mac_key_length; i++ ) in mbedtls_ct_hmac()
507 key_buf[i] = (unsigned char)( key_buf[i] ^ 0x36 ); in mbedtls_ct_hmac()
508 for(; i < block_size; ++i ) in mbedtls_ct_hmac()
509 key_buf[i] = 0x36; in mbedtls_ct_hmac()
542 for( i = 0; i < mac_key_length; i++ ) in mbedtls_ct_hmac()
543 key_buf[i] = (unsigned char)( ( key_buf[i] ^ 0x36 ) ^ 0x5C ); in mbedtls_ct_hmac()
544 for(; i < block_size; ++i ) in mbedtls_ct_hmac()
545 key_buf[i] = 0x5C; in mbedtls_ct_hmac()
694 for( size_t i = Y->n; i < X->n; i++ ) in mbedtls_mpi_safe_cond_assign() local
695 X->p[i] &= ~limb_mask; in mbedtls_mpi_safe_cond_assign()
745 for( size_t i = limbs; i > 0; i-- ) in mbedtls_mpi_core_lt_ct() local
754 cond = mbedtls_ct_mpi_uint_lt( B[i - 1], A[i - 1] ); in mbedtls_mpi_core_lt_ct()
763 cond = mbedtls_ct_mpi_uint_lt( A[i - 1], B[i - 1] ); in mbedtls_mpi_core_lt_ct()
783 size_t i; in mbedtls_mpi_lt_mpi_ct() local
815 for( i = X->n; i > 0; i-- ) in mbedtls_mpi_lt_mpi_ct()
824 cond = mbedtls_ct_mpi_uint_lt( Y->p[i - 1], X->p[i - 1] ); in mbedtls_mpi_lt_mpi_ct()
835 cond = mbedtls_ct_mpi_uint_lt( X->p[i - 1], Y->p[i - 1] ); in mbedtls_mpi_lt_mpi_ct()
854 size_t i, plaintext_max_size; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() local
886 for( i = 2; i < ilen; i++ ) in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
888 pad_done |= ((input[i] | (unsigned char)-input[i]) >> 7) ^ 1; in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
933 for( i = 11; i < ilen; i++ ) in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
934 input[i] &= ~bad; in mbedtls_ct_rsaes_pkcs1_v15_unpadding()