From 3926a2cc6402f31dfb4046f0c558c96418baadfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 25 Jun 2014 12:57:47 +0200 Subject: [PATCH] Clarify mpi_write_binary()'s doc. --- include/polarssl/bignum.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h index 3feee8fd9..cd7592c4f 100644 --- a/include/polarssl/bignum.h +++ b/include/polarssl/bignum.h @@ -414,7 +414,9 @@ int mpi_write_file( const char *p, const mpi *X, int radix, FILE *fout ); int mpi_read_binary( mpi *X, const unsigned char *buf, size_t buflen ); /** - * \brief Export X into unsigned binary data, big endian + * \brief Export X into unsigned binary data, big endian. + * Always fills the whole buffer, which will start with zeros + * if the number is smaller. * * \param X Source MPI * \param buf Output buffer