mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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@gnupg.org>
This commit is contained in:
parent
96f3b1de1c
commit
877e3073d7
@ -304,6 +304,9 @@ secret(MPI output, MPI input, RSA_secret_key *skey )
|
|||||||
#if 0
|
#if 0
|
||||||
mpi_powm( output, input, skey->d, skey->n );
|
mpi_powm( output, input, skey->d, skey->n );
|
||||||
#else
|
#else
|
||||||
|
MPI D_blind;
|
||||||
|
MPI rr;
|
||||||
|
unsigned int rr_nbits;
|
||||||
int nlimbs = mpi_get_nlimbs (skey->n)+1;
|
int nlimbs = mpi_get_nlimbs (skey->n)+1;
|
||||||
MPI m1 = mpi_alloc_secure (nlimbs);
|
MPI m1 = mpi_alloc_secure (nlimbs);
|
||||||
MPI m2 = 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 */
|
# endif /* USE_BLINDING */
|
||||||
|
|
||||||
/* RSA secret operation: */
|
/* RSA secret operation: */
|
||||||
MPI D_blind = mpi_alloc_secure (nlimbs);
|
D_blind = mpi_alloc_secure (nlimbs);
|
||||||
MPI rr;
|
|
||||||
unsigned int rr_nbits;
|
|
||||||
|
|
||||||
rr_nbits = mpi_get_nbits (skey->p) / 4;
|
rr_nbits = mpi_get_nbits (skey->p) / 4;
|
||||||
if (rr_nbits < 96)
|
if (rr_nbits < 96)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user