mbedtls_mpi_core_shift_r() function
Shift an MPI in-place right by a number of bits. Shifting by more bits than there are bit positions in \p X is valid and results in setting \p X to 0. This function's execution time depends on the value of \p count (and of course \p limbs).
Arguments
limbs
The number of limbs of \p X. This must be at least 1.
count
The number of bits to shift by.
![]()
mbedtls_mpi_core_shift_r(X, limbs, 8 * n_bytes - n_bits);
mbedtls_mpi_core_shift_r() is called by 2 functions:
![]()
mbedtls_mpi_core_shift_r()
mbedtls_mpi_core_shift_r():
![]()
mbedtls_mpi_core_shift_r()