Fix formatting: remove trailing spaces, #endif with comments (> 10 lines)
diff --git a/library/rsa.c b/library/rsa.c
index 9cfbe2a..e3cac12 100644
--- a/library/rsa.c
+++ b/library/rsa.c
@@ -104,7 +104,7 @@
do
{
- MPI_CHK( mpi_gen_prime( &ctx->P, ( nbits + 1 ) >> 1, 0,
+ MPI_CHK( mpi_gen_prime( &ctx->P, ( nbits + 1 ) >> 1, 0,
f_rng, p_rng ) );
MPI_CHK( mpi_gen_prime( &ctx->Q, ( nbits + 1 ) >> 1, 0,
@@ -153,7 +153,7 @@
return( 0 );
}
-#endif
+#endif /* POLARSSL_GENPRIME */
/*
* Check a public RSA key
@@ -329,7 +329,7 @@
return( ret );
}
-#endif
+#endif /* !POLARSSL_RSA_NO_CRT */
/*
* Do an RSA private key operation
@@ -361,7 +361,7 @@
Vi = &ctx->Vi;
Vf = &ctx->Vf;
#endif
-#endif
+#endif /* !POLARSSL_RSA_NO_CRT */
mpi_init( &T ); mpi_init( &T1 ); mpi_init( &T2 );
@@ -419,7 +419,7 @@
MPI_CHK( mpi_mul_mpi( &T, &T, Vf ) );
MPI_CHK( mpi_mod_mpi( &T, &T, &ctx->N ) );
}
-#endif
+#endif /* POLARSSL_RSA_NO_CRT */
olen = ctx->len;
MPI_CHK( mpi_write_binary( &T, output, olen ) );
@@ -483,7 +483,7 @@
dlen -= use_len;
}
}
-#endif
+#endif /* POLARSSL_PKCS1_V21 */
#if defined(POLARSSL_PKCS1_V21)
/*
@@ -1490,7 +1490,7 @@
return( 0 );
}
-#endif
+#endif /* POLARSSL_PKCS1_V15 */
/*
* Checkup routine
@@ -1606,6 +1606,6 @@
return( ret );
}
-#endif
+#endif /* POLARSSL_SELF_TEST */
-#endif
+#endif /* POLARSSL_RSA_C */