summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c')
-rw-r--r--plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c b/plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c
index cf278c2532..a6b225e0f0 100644
--- a/plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c
+++ b/plugins/MirOTR/libgcrypt-1.4.6/cipher/rsa.c
@@ -285,7 +285,7 @@ generate_std (RSA_secret_key *sk, unsigned int nbits, unsigned long use_e,
u = gcry_mpi_snew ( nbits );
mpi_invm(u, p, q );
- if( DBG_CIPHER )
+ if ( DBG_CIPHER )
{
log_mpidump(" p= ", p );
log_mpidump(" q= ", q );
@@ -534,7 +534,7 @@ generate_x931 (RSA_secret_key *sk, unsigned int nbits, unsigned long e_value,
u = f; f = NULL;
mpi_invm (u, p, q );
- if( DBG_CIPHER )
+ if ( DBG_CIPHER )
{
if (*swapped)
log_debug ("p and q are swapped\n");
@@ -599,7 +599,7 @@ check_secret_key( RSA_secret_key *sk )
static void
public(gcry_mpi_t output, gcry_mpi_t input, RSA_public_key *pkey )
{
- if( output == input ) /* powm doesn't like output and input the same */
+ if ( output == input ) /* powm doesn't like output and input the same */
{
gcry_mpi_t x = mpi_alloc( mpi_get_nlimbs(input)*2 );
mpi_powm( x, input, pkey->e, pkey->n );
@@ -625,7 +625,7 @@ stronger_key_check ( RSA_secret_key *skey )
log_info ( "RSA Oops: n != p * q\n" );
/* check that p is less than q */
- if( mpi_cmp( skey->p, skey->q ) > 0 )
+ if ( mpi_cmp( skey->p, skey->q ) > 0 )
{
log_info ("RSA Oops: p >= q - fixed\n");
_gcry_mpi_swap ( skey->p, skey->q);