mbedtls_mpi_core_write_be() function
Export A into unsigned binary data, big-endian.
Arguments
A_limbs
The number of limbs of \p A.
output
The output buffer to export to.
output_length
The length in bytes of \p output.
Return value
\c 0 if successful. #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if \p output isn't large enough to hold the value of \p A.
Notes
If \p output is shorter than \p A the export is still successful if the value held in \p A fits in the buffer (that is, if enough of the most significant bytes of \p A are 0).
mbedtls_mpi_core_write_be() is called by 1 function:
![]()
mbedtls_mpi_core_write_be()
mbedtls_mpi_core_write_be():
![]()
mbedtls_mpi_core_write_be()