mbedtls_mpi_core_read_be() function
Import X from unsigned binary data, big-endian. The MPI needs to have enough limbs to store the full value (including any most significant zero bytes in the input).
Arguments
X
The address of the MPI. May only be #NULL if \p X_limbs is 0 and \p input_length is 0.
X_limbs
The number of limbs of \p X.
input
The input buffer to import from. May only be #NULL if \p input_length is 0.
input_length
The length in bytes of \p input.
Return value
\c 0 if successful. #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if \p X isn't large enough to hold the value in \p input.
mbedtls_mpi_core_read_be() is called by 1 function and calls 1 function:
![]()
mbedtls_mpi_core_read_be()
mbedtls_mpi_core_read_be():
![]()
mbedtls_mpi_core_read_be()