mbedtls_mpi_write_binary() function
Export an MPI into unsigned big endian binary data of fixed size.
Arguments
X
The source MPI. This must point to an initialized MPI.
buf
The output buffer. This must be a writable buffer of length \p buflen Bytes.
buflen
The size of the output buffer \p buf in Bytes.
Return value
\c 0 if successful. #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if \p buf isn't large enough to hold the value of \p X. Another negative error code on different kinds of failure.
Functions calling mbedtls_mpi_write_binary()
Functions called by mbedtls_mpi_write_binary()
mbedtls_mpi_write_binary()
memset() all items filtered out
Data read by mbedtls_mpi_write_binary()
Data written by mbedtls_mpi_write_binary()
mbedtls_mpi_write_binary()
Type of mbedtls_mpi_write_binary()
mbedtls_mpi_write_binary()
size_t all items filtered out