From 0f644f48e92ec10ca7f7c9941dbcdcfd6faf6d3f Mon Sep 17 00:00:00 2001 From: Werner Lewis Date: Thu, 15 Dec 2022 14:13:32 +0000 Subject: [PATCH] Add output initialization requirement Signed-off-by: Werner Lewis --- library/bignum_mod.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/bignum_mod.h b/library/bignum_mod.h index ee5e0bfb53..e03c9aa2ec 100644 --- a/library/bignum_mod.h +++ b/library/bignum_mod.h @@ -19,7 +19,9 @@ * modified by the function. * - Bignum parameters called \c X, \c Y, ... are outputs or input-output. * The initial bignum value of output-only parameters is ignored, but - * they must be set up and associated with the modulus \c N. + * they must be set up and associated with the modulus \c N. Some + * functions (typically constant-flow) require that the limbs in an + * output residue are initialized. * - Bignum parameters called \c P are inputs used to set up a modulus or * residue. These must be pointers to an array of limbs. * - \c T is a temporary storage area. The initial content of such a