cleanup: Big pile of whitespace fixes, all at once.
[u/mdw/catacomb] / rsa-test.c
index ad788d8..e4c330f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2004 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Catacomb.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * Catacomb is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with Catacomb; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
@@ -65,7 +65,7 @@ static int tencpad(int nbits,
   mp_drop(c);
   xfree(q);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 #define tsigpad tencpad
@@ -107,7 +107,7 @@ static int tdecpad(int nbits,
   mp_drop(c);
   dstr_destroy(&d);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 static int tvrfpad(int nbits,
@@ -146,7 +146,7 @@ static int tvrfpad(int nbits,
   mp_drop(c);
   dstr_destroy(&d);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 static int tencpub(rsa_pub *rp,
@@ -263,7 +263,7 @@ static int tdecpriv(rsa_priv *rp,
   dstr_destroy(&d);
   GR_DESTROY(r);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 static int tvrfpub(rsa_pub *rp,
@@ -303,7 +303,7 @@ static int tvrfpub(rsa_pub *rp,
   mp_drop(c);
   dstr_destroy(&d);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 /*----- Deep magic --------------------------------------------------------*
@@ -320,7 +320,7 @@ static int tvrfpub(rsa_pub *rp,
   rp.d = *(mp **)v++->buf;                                             \
   rsa_recover(&rp);
 #define ARG_priv                                                       \
-  &rp, 
+  &rp,
 #define TAB_priv                                                       \
   &type_mp, &type_mp, &type_mp,
 
@@ -330,9 +330,9 @@ static int tvrfpub(rsa_pub *rp,
   rp.n = *(mp **)v++->buf;                                             \
   rp.e = *(mp **)v++->buf;
 #define ARG_pub                                                                \
-  &rp, 
+  &rp,
 #define TAB_pub                                                                \
-  &type_mp, &type_mp, 
+  &type_mp, &type_mp,
 
 #define DECL_pad                                                       \
   int nbits;
@@ -495,7 +495,7 @@ static int tvrfpub(rsa_pub *rp,
 
 static grand *fib;
 
-TESTS(FUNCS)  
+TESTS(FUNCS)
 
 static const test_chunk tests[] = {
   TESTS(TAB)