From 5af0e5b1942ab09f9b28219b7791472e1fb9d7ed 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 c6c2d8feb..322a78860 100644 --- a/include/polarssl/dhm.h +++ b/include/polarssl/dhm.h @@ -237,7 +237,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 * \param f_rng RNG function, for blinding purposes * \param p_rng RNG parameter *