X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/fe6657c961b01ec72e9f35f4c3d96b11b31cf09c..45c0fd363937c6e9b05da04a9167e9912c05ca0c:/rsa-test.c diff --git a/rsa-test.c b/rsa-test.c index ad788d8..e4c330f 100644 --- a/rsa-test.c +++ b/rsa-test.c @@ -7,7 +7,7 @@ * (c) 2004 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,12 +15,12 @@ * 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)