From a306886b3aa86db884d0d640ed278a6250c47245 Mon Sep 17 00:00:00 2001 From: Werner Lewis Date: Wed, 14 Dec 2022 15:57:12 +0000 Subject: [PATCH] Add modulus to parameter ordering Signed-off-by: Werner Lewis --- library/bignum_mod.h | 2 +- library/bignum_mod_raw.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/bignum_mod.h b/library/bignum_mod.h index 67684bd677..497f4b5b5a 100644 --- a/library/bignum_mod.h +++ b/library/bignum_mod.h @@ -34,7 +34,7 @@ * - **Bignum representation**: the representation of inputs and outputs is * specified by the \p int_rep field of the modulus. * - **Parameter ordering**: for bignum parameters, outputs come before inputs. - * Temporaries come last. + * The modulus is passed after residues. Temporaries come last. * - **Aliasing**: in general, output bignums may be aliased to one or more * inputs. Modulus values may not be aliased to any other parameter. Outputs * may not be aliased to one another. Temporaries may not be aliased to any diff --git a/library/bignum_mod_raw.h b/library/bignum_mod_raw.h index ddb2d09564..93df46f622 100644 --- a/library/bignum_mod_raw.h +++ b/library/bignum_mod_raw.h @@ -36,7 +36,8 @@ * specified by the \p int_rep field of the modulus for arithmetic * functions. Utility functions may allow for different representation. * - **Parameter ordering**: for bignum parameters, outputs come before inputs. - * Temporaries come last. + * The modulus is passed after other bignum input parameters. Temporaries + * come last. * - **Aliasing**: in general, output bignums may be aliased to one or more * inputs. Modulus values may not be aliased to any other parameter. Outputs * may not be aliased to one another. Temporaries may not be aliased to any