aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rsa.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-05-24 18:31:33 +0000
committerDavid Shaw <[email protected]>2003-05-24 18:31:33 +0000
commit29e6411a7bc1657fab1a3c2b847051a30e2247ea (patch)
tree62aeaf6d2fb67efd3023169a6d82b085a70c3100 /cipher/rsa.c
parent* mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c, (diff)
downloadgnupg-29e6411a7bc1657fab1a3c2b847051a30e2247ea.tar.gz
gnupg-29e6411a7bc1657fab1a3c2b847051a30e2247ea.zip
* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c, elgamal.c,
rijndael.c, rndunix.c, sha256.c, cast5.c, idea-stub.c, rmd160.c, rndw32.c, sha512.c, md5.c, rmd160test.c, rsa.c, tiger.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
Diffstat (limited to '')
-rw-r--r--cipher/rsa.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/cipher/rsa.c b/cipher/rsa.c
index e438b39cf..3ae530c55 100644
--- a/cipher/rsa.c
+++ b/cipher/rsa.c
@@ -301,9 +301,9 @@ stronger_key_check ( RSA_secret_key *skey )
static void
secret(MPI output, MPI input, RSA_secret_key *skey )
{
- #if 0
+#if 0
mpi_powm( output, input, skey->d, skey->n );
- #else
+#else
MPI m1 = mpi_alloc_secure( mpi_get_nlimbs(skey->n)+1 );
MPI m2 = mpi_alloc_secure( mpi_get_nlimbs(skey->n)+1 );
MPI h = mpi_alloc_secure( mpi_get_nlimbs(skey->n)+1 );
@@ -329,7 +329,7 @@ secret(MPI output, MPI input, RSA_secret_key *skey )
mpi_free ( h );
mpi_free ( m1 );
mpi_free ( m2 );
- #endif
+#endif
}
@@ -489,6 +489,3 @@ rsa_get_info( int algo,
default:*r_usage = 0; return NULL;
}
}
-
-
-