[git] GnuPG - branch, STABLE-BRANCH-1-4, updated. gnupg-1.4.22-9-g877e307
by Dario Niedermann
cvs at cvs.gnupg.org
Fri Nov 10 15:50:26 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, STABLE-BRANCH-1-4 has been updated
via 877e3073d731fec55a88673f91ed646a75e786c8 (commit)
from 96f3b1de1cb16b51c34910dfd61b6f1402b9d784 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 877e3073d731fec55a88673f91ed646a75e786c8
Author: Dario Niedermann <dario at darioniedermann.it>
Date: Fri Nov 10 15:45:59 2017 +0100
Do not use C99 feature.
* cipher/rsa.c (secret): Move var decl to the beginning.
--
Trivial patch; ChangeLog written by wk.
Signed-off-by: Werner Koch <wk at gnupg.org>
diff --git a/cipher/rsa.c b/cipher/rsa.c
index 51b7640..b3ecd3b 100644
--- a/cipher/rsa.c
+++ b/cipher/rsa.c
@@ -304,6 +304,9 @@ secret(MPI output, MPI input, RSA_secret_key *skey )
#if 0
mpi_powm( output, input, skey->d, skey->n );
#else
+ MPI D_blind;
+ MPI rr;
+ unsigned int rr_nbits;
int nlimbs = mpi_get_nlimbs (skey->n)+1;
MPI m1 = mpi_alloc_secure (nlimbs);
MPI m2 = mpi_alloc_secure (nlimbs);
@@ -326,9 +329,7 @@ secret(MPI output, MPI input, RSA_secret_key *skey )
# endif /* USE_BLINDING */
/* RSA secret operation: */
- MPI D_blind = mpi_alloc_secure (nlimbs);
- MPI rr;
- unsigned int rr_nbits;
+ D_blind = mpi_alloc_secure (nlimbs);
rr_nbits = mpi_get_nbits (skey->p) / 4;
if (rr_nbits < 96)
-----------------------------------------------------------------------
Summary of changes:
cipher/rsa.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list