diff mbox series

[1/3] ecc: Make product variable of _vli_mmod_fast const

Message ID 20231109142056.12385-1-marcel@holtmann.org (mailing list archive)
State New
Headers show
Series [1/3] ecc: Make product variable of _vli_mmod_fast const | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

Marcel Holtmann Nov. 9, 2023, 2:20 p.m. UTC
---
 ell/ecc-external.c | 2 +-
 ell/ecc-private.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Denis Kenzior Nov. 9, 2023, 3:29 p.m. UTC | #1
Hi Marcel,

On 11/9/23 08:20, Marcel Holtmann wrote:
> ---
>   ell/ecc-external.c | 2 +-
>   ell/ecc-private.h  | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)

All three applied, thanks.

Regards,
-Denis
diff mbox series

Patch

diff --git a/ell/ecc-external.c b/ell/ecc-external.c
index a851271df26e..46f710bff11b 100644
--- a/ell/ecc-external.c
+++ b/ell/ecc-external.c
@@ -550,7 +550,7 @@  static void vli_mmod_fast_384(uint64_t *result, const uint64_t *product,
 /* Computes result = product % curve_prime
  *  from http://www.nsa.gov/ia/_files/nist-routines.pdf
 */
-bool _vli_mmod_fast(uint64_t *result, uint64_t *product,
+bool _vli_mmod_fast(uint64_t *result, const uint64_t *product,
 			const uint64_t *curve_prime, unsigned int ndigits)
 {
 	uint64_t tmp[2 * L_ECC_MAX_DIGITS];
diff --git a/ell/ecc-private.h b/ell/ecc-private.h
index 880ae800e8d8..dcf676d9614a 100644
--- a/ell/ecc-private.h
+++ b/ell/ecc-private.h
@@ -86,7 +86,7 @@  void _vli_mod_add(uint64_t *result, const uint64_t *left, const uint64_t *right,
 
 void _vli_rshift1(uint64_t *vli, unsigned int ndigits);
 
-bool _vli_mmod_fast(uint64_t *result, uint64_t *product,
+bool _vli_mmod_fast(uint64_t *result, const uint64_t *product,
 			const uint64_t *curve_prime, unsigned int ndigits);
 
 void _vli_mod_mult_fast(uint64_t *result, const uint64_t *left,