From ff9e1a4aa41a8a08feb4d0815ca17ea07d9c5cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 25 Jun 2014 13:03:50 +0200 Subject: [PATCH] Document in-out param of dhm_calc_secret() --- include/polarssl/dhm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/polarssl/dhm.h b/include/polarssl/dhm.h index 48d926856..0a32bd90d 100644 --- a/include/polarssl/dhm.h +++ b/include/polarssl/dhm.h @@ -218,7 +218,8 @@ int dhm_make_public( dhm_context *ctx, int x_size, * * \param ctx DHM context * \param output destination buffer - * \param olen number of chars written + * \param olen on entry, must hold the size of the destination buffer + * on exit, holds the actual number of bytes written * * \return 0 if successful, or an POLARSSL_ERR_DHM_XXX error code */