mbedtls_mpi_div_mpi() function
Perform a division with remainder of two MPIs: A = Q * B + R
Arguments
Q
The destination MPI for the quotient. This may be \c NULL if the value of the quotient is not needed.
R
The destination MPI for the remainder value. This may be \c NULL if the value of the remainder is not needed.
A
The dividend. This must point to an initialized MPi.
B
The divisor. This must point to an initialized MPI.
Return value
\c 0 if successful. #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed. #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p B equals zero. Another negative error code on different kinds of failure.
Functions calling mbedtls_mpi_div_mpi()
Functions called by mbedtls_mpi_div_mpi()
mbedtls_mpi_div_mpi()
Data read by mbedtls_mpi_div_mpi()
Data written by mbedtls_mpi_div_mpi()
mbedtls_mpi_div_mpi()
Type of mbedtls_mpi_div_mpi()
mbedtls_mpi_div_mpi()
size_t all items filtered out