Searched refs:swap (Results 1 – 1 of 1) sorted by relevance
256 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char swap ) in mbedtls_mpi_safe_cond_swap() argument266 swap = (swap | (unsigned char)-swap) >> 7; in mbedtls_mpi_safe_cond_swap()272 X->s = X->s * ( 1 - swap ) + Y->s * swap; in mbedtls_mpi_safe_cond_swap()273 Y->s = Y->s * ( 1 - swap ) + s * swap; in mbedtls_mpi_safe_cond_swap()279 X->p[i] = X->p[i] * ( 1 - swap ) + Y->p[i] * swap; in mbedtls_mpi_safe_cond_swap()280 Y->p[i] = Y->p[i] * ( 1 - swap ) + tmp * swap; in mbedtls_mpi_safe_cond_swap()