From 3f8e0b62b26b995a1079f2484001f921369a786f Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 6 Jan 2016 20:30:23 +0100 Subject: [PATCH] add name of parameters --- bn_mp_exptmod_fast.c | 2 +- bn_s_mp_exptmod.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bn_mp_exptmod_fast.c b/bn_mp_exptmod_fast.c index 2595b1a..52d4a55 100644 --- a/bn_mp_exptmod_fast.c +++ b/bn_mp_exptmod_fast.c @@ -39,7 +39,7 @@ int mp_exptmod_fast(const mp_int *G, const mp_int *X, const mp_int *P, mp_int *Y * one of many reduction algorithms without modding the guts of * the code with if statements everywhere. */ - int (*redux)(mp_int *,const mp_int *,mp_digit); + int (*redux)(mp_int *x, const mp_int *n, mp_digit rho); /* find window size */ x = mp_count_bits(X); diff --git a/bn_s_mp_exptmod.c b/bn_s_mp_exptmod.c index 1535b2e..46e50df 100644 --- a/bn_s_mp_exptmod.c +++ b/bn_s_mp_exptmod.c @@ -25,7 +25,7 @@ int s_mp_exptmod(const mp_int *G, const mp_int *X, const mp_int *P, mp_int *Y, i mp_int M[TAB_SIZE], res, mu; mp_digit buf; int err, bitbuf, bitcpy, bitcnt, mode, digidx, x, y, winsize; - int (*redux)(mp_int *, const mp_int *, const mp_int *); + int (*redux)(mp_int *x, const mp_int *m, const mp_int *mu); /* find window size */ x = mp_count_bits(X);