chiark / gitweb /
cleanup: Big pile of whitespace fixes, all at once.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 28 Jan 2007 22:51:01 +0000 (22:51 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 29 Jan 2007 17:39:38 +0000 (17:39 +0000)
427 files changed:
.gdbinit
Makefile.m4
README
README.cipher
README.mp
README.random
arena.c
arena.h
bbs-fetch.c
bbs-gen.c
bbs-jump.c
bbs-rand.c
bbs.h
bintab.h
bitops.h
bittest.c
blkc.h
blowfish-mktab.c
blowfish.c
blowfish.h
buf.c
buf.h
calc/ec2.cal
calc/ecp.cal
calc/gfx-test.cal
calc/gfx.cal
cast-base.h
cast-s.c
cast-sk.c
cast-tab.h
cast128.c
cast128.h
cast256.c
cast256.h
catacomb-config.in
catcrypt.1
catcrypt.c
catsign.1
catsign.c
cbc-def.h
cbc.h
cc-enc.c
cc-kem.c
cc-list.c
cc-sig.c
cc-subcmd.c
cc.h
cfb-def.h
cfb.h
configure.in
cookie.1
cookie.c
counter-def.h
counter.h
crc32.c
crc32.h
daftstory.h
debian/catacomb-bin.postinst
debian/rules
des-base.c
des-base.h
des-mktab.c
des.c
des.h
des3.c
des3.h
desx-tab.h
desx.c
desx.h
dh-check.c
dh-fetch.c
dh-gen.c
dh-kcdsa.c
dh-limlee.c
dh-param.c
dh.h
dsa-check.c
dsa-gen.c
dsa-sign.c
dsa-verify.c
dsa.h
dsarand.c
dsarand.h
dsig.1
dsig.c
ec-bin.c
ec-exp.c
ec-exp.h
ec-fetch.c
ec-guts.h
ec-info.c
ec-keys.h
ec-prime.c
ec-raw.c
ec-raw.h
ec-test.c
ec-test.h
ec.c
ec.h
ecb-def.h
ecb.h
ectab.h
ectab.in
exp.c
exp.h
f-binpoly.c
f-niceprime.c
f-prime.c
factorial.c
fibrand.c
fibrand.h
field-exp.c
field-exp.h
field-guts.h
field-parse.c
field.c
field.h
fipstest.c
fipstest.h
g-bin.c
g-ec.c
g-prime.c
gcipher.h
gdsa.c
gdsa.h
genlimits.c
genprimes.c
gf-arith.c
gf-exp.c
gf-exp.h
gf-gcd.c
gf.h
gfn.c
gfn.h
gfreduce-exp.h
gfreduce.c
gfreduce.h
gfshare-mktab.c
gfshare.c
gfshare.h
gfx-kmul.c
gfx-sqr-mktab.c
gfx-sqr.c
gfx.c
gfx.h
ghash-def.h
ghash.h
gkcdsa.c
gkcdsa.h
gmac.h
grand.c
grand.h
group-dstr.c
group-exp.c
group-exp.h
group-file.c
group-guts.h
group-parse.c
group-stdops.c
group-string.c
group-test.c
group.h
has160.c
has160.h
hash.h
hashsum.1
hashsum.c
hmac-def.h
hmac.h
idea.c
idea.h
karatsuba.h
key-attr.c
key-binary.c
key-data.c
key-data.h
key-error.c
key-error.h
key-fetch.c
key-file.c
key-flags.c
key-io.c
key-misc.c
key-moan.c
key-pack.c
key-pass.c
key-text.c
key.1
key.h
keycheck-mp.c
keycheck-report.c
keycheck.c
keycheck.h
keyring.5
keysz.c
keyutil.c
lcrand.c
lcrand.h
limlee.c
limlee.h
lmem.c
lmem.h
manual/catacomb.tex
manual/mp-mod.tex
manual/mp-mp.tex
manual/mp-mpx.tex
manual/mp.tex
mars-mktab.c
mars.c
mars.h
maurer.c
maurer.h
md2-tab.h
md2.c
md2.h
md4.c
md4.h
md5.c
md5.h
mgf-def.h
mgf.h
mkpgroups
mkphrase.1
mkphrase.c
mp-arith.c
mp-const.c
mp-exp.c
mp-exp.h
mp-gcd.c
mp-io.c
mp-jacobi.c
mp-mem.c
mp-misc.c
mp-modexp.c
mp-modsqrt.c
mp-sqrt.c
mp-test.c
mp.h
mparena.c
mparena.h
mpbarrett-exp.c
mpbarrett-exp.h
mpbarrett-mexp.c
mpbarrett.c
mpbarrett.h
mpcrt.c
mpcrt.h
mpdump.c
mpint.c
mpint.h
mpmont-exp.c
mpmont-exp.h
mpmont-mexp.c
mpmont.c
mpmont.h
mpmul.c
mpmul.h
mprand.c
mprand.h
mpreduce-exp.h
mpreduce.c
mpreduce.h
mpscan.c
mpscan.h
mptext-dstr.c
mptext-file.c
mptext-len.c
mptext-string.c
mptext.c
mptext.h
mptypes.c
mpw.h
mpx-kmul.c
mpx-ksqr.c
mpx.c
mpx.h
noekeon.c
noekeon.h
noise.c
noise.h
oaep.c
ofb-def.h
ofb.h
papers/rand.tex
paranoia.h
passphrase.c
passphrase.h
pcheck.pl
perftest.c
pfilt.c
pfilt.h
pgen-gcd.c
pgen-simul.c
pgen-stdev.c
pgen.c
pgen.h
pixie-common.c
pixie.1
pixie.c
pixie.h
pkcs1.c
prim.c
prim.h
pss.c
ptab.h
qdparse.c
qdparse.h
rabin.c
rabin.h
rand.c
rand.h
rc2-tab.h
rc2.c
rc2.h
rc4.c
rc4.h
rc5.c
rc5.h
rho.c
rho.h
rijndael-base.c
rijndael-base.h
rijndael-mktab.c
rijndael.c
rijndael.h
rijndael192.c
rijndael192.h
rijndael256.c
rijndael256.h
rmd128.c
rmd128.h
rmd160.c
rmd160.h
rmd256.c
rmd256.h
rmd320.c
rmd320.h
rsa-fetch.c
rsa-gen.c
rsa-priv.c
rsa-pub.c
rsa-recover.c
rsa-test.c
rsa.h
rspit.c
safer-mktab.c
safer.c
safer.h
safersk.c
seal.c
seal.h
serpent-check.c
serpent-sbox.h
serpent.c
serpent.h
sha.c
sha.h
sha256.c
sha256.h
sha512.c
sha512.h
share.c
share.h
skipjack-tab.h
skipjack.c
skipjack.h
square-mktab.c
square.c
square.h
sslprf.c
sslprf.h
strongprime.c
strongprime.h
tea.c
tea.h
tests/Makefile.m4
tests/blowfish
tests/desx
tests/ec
tests/gdsa
tests/gf
tests/gfn
tests/gfreduce
tests/gfx
tests/gkcdsa
tests/group
tests/lcrand
tests/md4
tests/mp
tests/mpbarrett
tests/mpmont
tests/mpreduce
tests/mpx
tests/rijndael.aes
tests/rmd256
tests/rmd320
tests/rsa
tests/sha224
tests/skipjack
tests/tea-test.c
tests/tiger
tests/twofish.aes
tests/whirlpool
tests/whirlpool256
tests/xtea-test.c
tiger-base.h
tiger-mktab.c
tiger.c
tiger.h
tlsprf.c
tlsprf.h
twofish-mktab.c
twofish.c
twofish.h
utils/README
utils/factor.c
utils/fnb.c
utils/genpgroup
utils/genpgroups
utils/mpreducetests.py
utils/prim.c
utils/psstest-xlate.lisp
whirlpool-mktab.c
whirlpool.c
whirlpool.h
xtea.c
xtea.h

index c4147c35b550c34dc8af70a437c33cbbd7a3cb86..e4db89ba581d14509d16ac005105349855d3c27a 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -17,11 +17,11 @@ define mp-printr
       call (void)fputs("0x", stdout)
     else
       if $arg0 == 8
-        call (void)fputs("0", stdout)
+       call (void)fputs("0", stdout)
       else
-        if $arg0 != 10
-          call (void)fputs("$arg0:", stdout)
-        end
+       if $arg0 != 10
+         call (void)fputs("$arg0:", stdout)
+       end
       end
     end
     call (void)mp_writefile($arg1, stdout, $arg0)
index f5d42d2b3f4ea20677fc0a5263c7fb220d3a1d2e..5a31b5b9eacf6ba4908295aa0310dd951cb5bb9a 100644 (file)
 ## 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,
@@ -130,12 +130,12 @@ gciphertab.c: gengctab
        $(srcdir)/gengctab gccipher gcipher >gciphertab.c.new \
                "lit(join(`ciphers', `-', `cipher_modes')) \
                lit(join(`hashes', `-', `_(mgf)')) \
-               rc4 seal" 
+               rc4 seal"
        mv gciphertab.c.new gciphertab.c
 
 gmactab.c: gengctab
        $(srcdir)/gengctab gcmac gmac >gmactab.c.new \
-               "lit(join(`hashes', `-', `_(hmac)'))" 
+               "lit(join(`hashes', `-', `_(hmac)'))"
        mv gmactab.c.new gmactab.c
 
 ghashtab.c: gengctab
@@ -284,7 +284,7 @@ patsubst(MP_BASE MP_SOURCES, `\.c\>', `.lo') dsig.o keyutil.o rspit.o \
        patsubst(LIBCAT_SRC, `\.c\>', `.o'): \
        mptypes.h primetab.h
 patsubst(MP_SOURCES, `\.c\>', `.lo'): mplimits.h
-       
+
 dsig_SOURCES = dsig.c
 cookie_SOURCES = cookie.c
 catcrypt_SOURCES = catcrypt.c
@@ -299,7 +299,7 @@ pixie_LDADD =
 pixie_CFLAGS = $(AM_CFLAGS)
 mkphrase_SOURCES = mkphrase.c
 bittest_SOURCES = bittest.c
-bittest_LDADD = 
+bittest_LDADD =
 
 define(`emit', `
 patsubst(_item, `[^a-zA-Z0-9]', `_')_mktab_SOURCES = _item`'-mktab.c
diff --git a/README b/README
index 7662c49029045a41116f28b8e768aaabb9ed9570..9cd5a65635deef2b897f881c404706d4f8dae142 100644 (file)
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
 Catacomb
 
-       
+
        Catacomb is a cryptographic library.  It covers quite a lot of
        the `standard' cryptographic primitives, although there's plenty
        of scope for improvement, implementing more block ciphers and
@@ -97,7 +97,7 @@ Licensing, and trust
        hostile implementation can, undetectably, leak bits of your
        private key in each signed message.  This works by carefully
        choosing a supposedly random parameter to the signature
-       function. 
+       function.
 
        Once your adversary has acquired a few signed messages, which
        shouldn't be too hard, he can recover either your entire key, or
index 46293c822e1a71ab8878b14ff252b87ce772b129..b4a3f5696a53ee35c4ae6f5175c5c7edc7de30cd 100644 (file)
@@ -10,7 +10,7 @@ Block cipher interface
        There are a number of block ciphers implemented, all with
        extremely similar interfaces.  However, block ciphers aren't
        actually at all pleasant to use directly.  They're really
-       intended to be used only by higher-level `modes'.  
+       intended to be used only by higher-level `modes'.
 
        Anyway, I'll take Bruce Schneier's Blowfish as an example.
 
@@ -47,11 +47,11 @@ Block cipher interface
        The `type'      Simply N if specific macros for handling blocks
                        of the appropriate width have been written, or X
                        if the macros should use a loop instead.
-                       
+
        The `endianness'
                        Either `B' for big-endian, or `L' for little-
                        endian.
-                       
+
        The `width'     The cipher's block size in bits.
 
        This simple interface is thoroughly inconvenient for general
index 63bcbed5084c6d1be30d007548fdf1675c909663..8a276c4b27568e0c53a4bd33b1db639d727561fd 100644 (file)
--- a/README.mp
+++ b/README.mp
@@ -243,7 +243,7 @@ Modular multiplication and exponentiation
        value x R^{-1} mod m.  That doesn't sound very useful, does it?
 
        Things start looking more hopeful when you multiply your inputs
-       by R.  (There's a clever way of doing that: see below.)  To
+       by R.  (There's a clever way of doing that: see below.)  To
        compute xy mod m, you can first calculate xR and yR, multiply
        them together to get xyR^2, and do a Montgomery reduction to get
        xyR^2 R^{-1} mod m.  Then the R^{-1} cancels one of the Rs and
index 9cd39860e15c514962dec27ccf48d51d0d6d7458..2505dee98063dcad942721e93debbdd759bc7e9f 100644 (file)
@@ -203,7 +203,7 @@ Statistical testing
        reproduce my results exactly using the publicly available
        DIEHARD distribution and the code supplied.  If you do actually
        want them, send me some mail and I'll send you a 60K tar.gz
-       file by (approximate) return.   
+       file by (approximate) return.
 
 -- [mdw]
 
diff --git a/arena.c b/arena.c
index f4c94d823378b343a7bb8249d93823f4ec6a88da..dde8e84b6137c68d3e02d993dfcd300ce5d1610f 100644 (file)
--- a/arena.c
+++ b/arena.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/arena.h b/arena.h
index 08d004e7b8a9a4fdf96c9336f8dd8efb9892841c..acae67921711e248ed82196e6d82b33870808746 100644 (file)
--- a/arena.h
+++ b/arena.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 20eee08182b222d3738962731de92782850eacda..96c21d073a42bb004ff419bdce6655e1b98948f3 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -48,7 +48,7 @@ static const key_fetchdef priv[] = {
 const key_fetchdef bbs_privfetch[] = {
   { "n",       offsetof(bbs_priv, n),          KENC_MP,        0 },
   { "private", 0,                              KENC_STRUCT,    priv },
-  { 0,         0,                              0,              0 }  
+  { 0,         0,                              0,              0 }
 };
 
 /* --- @bbs_pubfree@, @bbs_privfree@ --- *
index 3b419afbc25da7ebc4a31e0f71b6be4842fd6143..c668b212eaacc05b0a3935591d2696fdec5a20a5 100644 (file)
--- a/bbs-gen.c
+++ b/bbs-gen.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -53,7 +53,7 @@
  * Returns:    If it worked OK, @PGEN_DONE@, otherwise @PGEN_ABORT@.
  *
  * Use:                Finds two prime numbers %$p'$% and %$q'$% such that both are
- *             congruent to %$3 \bmod 4$%, and  $(p - 1)/2$% and
+ *             congruent to %$3 \bmod 4$%, and  $(p - 1)/2$% and
  *             %$(q - 1)/2$% have no common factors.  The product %$n = pq$%
  *             is eminently suitable for use as a modulus in a Blum-Blum-
  *             Shub pseudorandom bit generator.
index 250c9e243309bb8e355bd27e207490358da82893..7275bd9054f60b1c4c197e2569457595ea925b90 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -164,7 +164,7 @@ static void jump(bbs *b, const bbs_priv *bp, mp *n,
  *             steps.  The @...n@ versions take an @unsigned long@ argument;
  *             the non-@...n@ versions a multiprecision integer.  If @n@ is
  *             negative then the generator is stepped in the reverse
- *             direction. 
+ *             direction.
  */
 
 static void ff(bbs *b, const bbs_priv *bp, mp *n)
index 90669a7e600c2543675829a6a3153c3c78ee9357..20d9c7a989853bb70cfc3471d52625dbcfe8c9c6 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -236,10 +236,10 @@ static int gmisc(grand *r, unsigned op, ...)
   switch (op) {
     case GRAND_CHECK:
       switch (va_arg(ap, unsigned)) {
-        case GRAND_CHECK:
-        case GRAND_SEEDINT:
-        case GRAND_SEEDUINT32:
-        case GRAND_SEEDMP:
+       case GRAND_CHECK:
+       case GRAND_SEEDINT:
+       case GRAND_SEEDUINT32:
+       case GRAND_SEEDMP:
        case GRAND_SEEDRAND:
        case BBS_SET:
        case BBS_STEP:
@@ -252,11 +252,11 @@ static int gmisc(grand *r, unsigned op, ...)
        case BBS_REWN:
        case BBS_MOD:
        case BBS_STATE:
-          rc = 1;
-          break;
-        default:
-          rc = 0;
-          break;
+         rc = 1;
+         break;
+       default:
+         rc = 0;
+         break;
       }
       break;
     case GRAND_SEEDINT: {
@@ -355,12 +355,12 @@ static const grand_ops gops = {
 
 /* --- @bbs_rand@ --- *
  *
- * Arguments:   @mp *m@ = modulus
+ * Arguments:  @mp *m@ = modulus
  *             @mp *x@ = initial seed
  *
- * Returns:     Pointer to a generic generator.
+ * Returns:    Pointer to a generic generator.
  *
- * Use:         Constructs a generic generator interface over a
+ * Use:                Constructs a generic generator interface over a
  *             Blum-Blum-Shub generator.
  */
 
diff --git a/bbs.h b/bbs.h
index 96e3e844f594bc70f0d89f4fddf6764148f50e3f..30fb474760fa876f9cc14f65cc0b6143025d93c9 100644 (file)
--- a/bbs.h
+++ b/bbs.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -225,7 +225,7 @@ extern void bbs_wrap(bbs */*b*/);
  *             steps.  The @...n@ versions take an @unsigned long@ argument;
  *             the non-@...n@ versions a multiprecision integer.  If @n@ is
  *             negative then the generator is stepped in the reverse
- *             direction. 
+ *             direction.
  */
 
 extern void bbs_ff(bbs */*b*/, const bbs_priv */*bp*/, mp */*n*/);
@@ -247,7 +247,7 @@ extern void bbs_rewn(bbs */*b*/, const bbs_priv */*bp*/, unsigned long /*n*/);
  * Returns:    If it worked OK, @PGEN_DONE@, otherwise @PGEN_ABORT@.
  *
  * Use:                Finds two prime numbers %$p'$% and %$q'$% such that both are
- *             congruent to %$3 \bmod 4$%, and  $(p - 1)/2$% and
+ *             congruent to %$3 \bmod 4$%, and  $(p - 1)/2$% and
  *             %$(q - 1)/2$% have no common factors.  The product %$n = pq$%
  *             is eminently suitable for use as a modulus in a Blum-Blum-
  *             Shub pseudorandom bit generator.
@@ -260,12 +260,12 @@ extern int bbs_gen(bbs_priv */*bp*/, unsigned /*nbits*/, grand */*r*/,
 
 /* --- @bbs_rand@ --- *
  *
- * Arguments:   @mp *m@ = modulus
+ * Arguments:  @mp *m@ = modulus
  *             @mp *x@ = initial seed
  *
- * Returns:     Pointer to a generic generator.
+ * Returns:    Pointer to a generic generator.
  *
- * Use:         Constructs a generic generator interface over a
+ * Use:                Constructs a generic generator interface over a
  *             Blum-Blum-Shub generator.
  */
 
index ef4d8148b0485b57c553ab792a332d8bde818234..221d74930a8ce205cc8517b056ac76ecf2dc44f6 100644 (file)
--- a/bintab.h
+++ b/bintab.h
@@ -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,
index f6668bc8331bf52c5ee3e0bf4c654a01c62101f8..02f9a348aa9bd3bc21f0bc40aab2db5c6c50ee87 100644 (file)
--- a/bitops.h
+++ b/bitops.h
@@ -7,7 +7,7 @@
  * (c) 2002 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,
index b246d7a223360af8b09647947d1117ab1e82686f..f13d35882cee5b2241fe87968abe9cb08981655c 100644 (file)
--- a/bittest.c
+++ b/bittest.c
@@ -7,7 +7,7 @@
  * (c) 2002 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,
diff --git a/blkc.h b/blkc.h
index d785f1d7bf03bb6734b7ff2769b524e68bf14b15..d95c4f9cded8322a29deaaebf20d528f11aecb45 100644 (file)
--- a/blkc.h
+++ b/blkc.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
 #ifdef TEST_RIG
 
 #include <string.h>
-    
+
 #include <mLib/quis.h>
 #include <mLib/testrig.h>
 
@@ -289,7 +289,7 @@ static int pre##_verify(dstr *v)                                    \
   if (memcmp(b.buf, v[2].buf, PRE##_BLKSZ)) {                          \
     ok = 0;                                                            \
     printf("\nfail encryption:"                                                \
-           "\n\tkey        = ");                                       \
+          "\n\tkey        = ");                                        \
     type_hex.dump(&v[0], stdout);                                      \
     printf("\n\tplaintext  = "); type_hex.dump(&v[1], stdout);         \
     printf("\n\texpected   = "); type_hex.dump(&v[2], stdout);         \
@@ -305,7 +305,7 @@ static int pre##_verify(dstr *v)                                    \
   if (memcmp(b.buf, v[1].buf, PRE##_BLKSZ)) {                          \
     ok = 0;                                                            \
     printf("\nfail decryption:"                                                \
-           "\n\tkey        = ");                                       \
+          "\n\tkey        = ");                                        \
     type_hex.dump(&v[0], stdout);                                      \
     printf("\n\tciphertext = "); type_hex.dump(&v[2], stdout);         \
     printf("\n\texpected   = "); type_hex.dump(&v[1], stdout);         \
index 37a9b5300e1733c14d4e8843ff10ca8699986ac8..86c079eb48f48162366d01463dd2ebd9c9714b2e 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -68,7 +68,7 @@ static void spigot(uint32 *buf, size_t n)
   unsigned max = 32 * n;
   size_t step = n / 60;
 
-  fputs("[                                                             ]\r[",
+  fputs("[                                                            ]\r[",
        stderr);
 
 #define EMIT(z) do {                                                   \
@@ -154,7 +154,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
     else if (i % 4 == 3)
-      fputs(",                 \\\n    ", stdout);
+      fputs(",                 \\\n    ", stdout);
     else
       fputs(", ", stdout);
   }
@@ -170,7 +170,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
     } else if (i % 4 == 3)
-      fputs(",                 \\\n    ", stdout);
+      fputs(",                 \\\n    ", stdout);
     else
       fputs(", ", stdout);
     }
index 56f25c76629eabd9298a532648f19e5c7a275465..2750cfbd760f7bf0be9b1b0e92b9d14b8324d689 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -49,8 +49,8 @@ const octet blowfish_keysz[] = { KSZ_RANGE, BLOWFISH_KEYSZ, 1, 56, 1 };
   x ^= *r;                                                             \
   y ^= ((k->s0[U8(x >> 24)] +                                          \
         k->s1[U8(x >> 16)]) ^                                          \
-        k->s2[U8(x >>  8)]) +                                          \
-        k->s3[U8(x >>  0)];                                            \
+        k->s2[U8(x >>  8)]) +                                          \
+        k->s3[U8(x >>  0)];                                            \
 } while (0)
 
 #define EBLK(k, a, b, c, d) do {                                       \
index 3f44404bc9440ff71b95e6eaa0b4499723c8150f..a9ece5ee38c8e8078613eeb6e11f0f52073c6474 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1998 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,
diff --git a/buf.c b/buf.c
index 0cdb91dd95bf7378892731aade809c1098e25d14..0cf2cf0a4d37ade0b9f4feac663edfbc40270cea 100644 (file)
--- a/buf.c
+++ b/buf.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/buf.h b/buf.h
index 9b8e3408914d2cdc41fda9e8faa9ae8438e1d4d5..065db07522b33fecf3f77c66c15c8eda025e99f6 100644 (file)
--- a/buf.h
+++ b/buf.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 325914b9a4d77947816059847c6b1f587166bdf6..e43c61b296b70bd3b2eb468d953cf8811bfbe450 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,
index 0163d5e394d3d4955cd047564386c15232a898be..4fedccf908fa6177c088421267d0434e025f5829 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -74,7 +74,7 @@ define ecp_pt_add(a, b)
     e = a.e;
     if (a.x == b.x) {
       if (a.y != b.y) {
-        return (0);
+       return (0);
       }
       alpha = (3 * a.x^2 + e.a) * minv(2 * a.y, e.p) % e.p;
     } else
index 25846ef71cf3d26d44dac0922347bea5eee07d3e..3a5804f8c71788220ad9a7a1b586c8b07ef5ab23 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index e38f4b7044bc399529f70a92d8f2657213bc3706..01d5c100c9a92bcc1cb987060922abaf9b6e3a2f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 02f93b607ac39dcea63eeacda53094fde5804ba8..36cd42be0e1807187f5b5dc9ccb54c3cfa9ca94c 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 541bfebec81667edc2e64cdbbddc550fdd8eb970..e9b1e6a15a1a5534fa1ca8f89e20c91b723e2879 100644 (file)
--- a/cast-s.c
+++ b/cast-s.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index bdc74fe26118837df6e29b2b083cc9bdcd1bc6b9..25210b76289c8b6dabc971f1b213908cfef8cfa2 100644 (file)
--- a/cast-sk.c
+++ b/cast-sk.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index b6797bf6eac1db9762ae7405d4ebaa77e52115a7..6155f922a7be2fa19534a34330958351f3665212 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 1032b27542571a43e2c3b6a31c53ef2c1fe265fe..5f1361473396b4cab7c4ac0c29636ec6c083e832 100644 (file)
--- a/cast128.c
+++ b/cast128.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -148,7 +148,7 @@ void cast128_init(cast128_ctx *k, const void *buf, size_t sz)
 #define Z_e U8(Z_cdef >>  8)
 #define Z_f U8(Z_cdef >>  0)
 
-#define SK(w, x, y, z)                                                         \
+#define SK(w, x, y, z)                                                 \
   cast_sk[0][w] ^ cast_sk[1][x] ^ cast_sk[2][y] ^ cast_sk[3][z]
 
   i = 0;
index cf027b2e7ca776c0528c4d7d635a5d5496bada81..fb51416f27feadd0340bc46fba39a0603b027ce4 100644 (file)
--- a/cast128.h
+++ b/cast128.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index be06c9e33e9a3eb51dec490ef7e5a20ec451437a..36546b0d582d7d932a8d1f441d404cf501e35799 100644 (file)
--- a/cast256.c
+++ b/cast256.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 018550c590fac2e7e9128d6032a511337ce6e7a2..7e65a831682679b51927f34b3017387bd653a435 100644 (file)
--- a/cast256.h
+++ b/cast256.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 8b460e0c6b401f2068f1ac5b4a28358532bc6533..2b06152c64cc9d2ba31f37f61edc16ec900dd14b 100755 (executable)
 # 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,
index 61da7f96a2bcbff930a323f0c5fcdfcb2083031f..72bfe1247b17357f1aeb003b5248b7bc3df946b2 100644 (file)
@@ -120,7 +120,7 @@ on the key, or its type.  The
 .B catcrypt
 command deals with both signing and key-encapsulation keys.  (Note that
 .B catcrypt
-uses signing keys in the same way as 
+uses signing keys in the same way as
 .BR catsign (1).)
 .SS "Key-encapsulation keys"
 (Key encapsulation is a means of transmitting a short, known, random
@@ -278,7 +278,7 @@ for a list of supported signature algorithms.
 .B rsapkcs1
 This is almost the same as the RSASSA-PKCS1-v1_5 algorithm described in
 RFC3447; the difference is that the hash is left bare rather than being
-wrapped in a DER-encoded 
+wrapped in a DER-encoded
 .B DigestInfo
 structure.  This doesn't affect security since the key can only be used
 with the one hash function anyway, and dropping the DER wrapping permits
@@ -303,7 +303,7 @@ command (see
 to generate the key.
 .TP
 .B dsa
-This is the DSA algorithm described in FIPS180-1 and FIPS180-2.    Use the
+This is the DSA algorithm described in FIPS180-1 and FIPS180-2.  Use the
 .B dsa
 algorithm of the
 .B key add
@@ -380,7 +380,7 @@ the default hash function is
 .BR sha .
 .hP \*o
 For
-.BR kcdsa 
+.BR kcdsa
 and
 .BR eckcdsa ,
 the default hash function is
@@ -456,7 +456,7 @@ The hash functions which can be used in a key's
 attribute.
 .TP
 .B enc
-The encodings which can be applied to encrypted messages; see 
+The encodings which can be applied to encrypted messages; see
 .B ENCODINGS
 above.
 .SS encrypt
@@ -555,7 +555,7 @@ An error prevented decryption.  The program will exit nonzero.
 .BI "WARN " reason
 .B catcrypt
 encountered a situation which may or may not invalidate the decryption.
-.TP 
+.TP
 .BI "OK " message
 Decryption was successful.  This is only produced if main output is
 being sent somewhere other than standard output.
@@ -577,7 +577,7 @@ All messages.
 .B Warning!
 All output written has been checked for authenticity.  However, output
 can fail madway through for many reasons, and the resulting message may
-therefore be truncated.  Don't rely on the output being complete until 
+therefore be truncated.  Don't rely on the output being complete until
 .B OK
 is printed or
 .B catcrypt decrypt
@@ -588,7 +588,7 @@ The
 command encodes an input file according to one of the encodings
 described above in
 .BR ENCODINGS .
-The input is read from the 
+The input is read from the
 .I file
 given on the command line, or from standard input if none is specified.
 Options provided are:
@@ -622,7 +622,7 @@ The
 command decodes an input file encoded according to one of the encodings
 described above in
 .BR ENCODINGS .
-The input is read from the 
+The input is read from the
 .I file
 given on the command line, or from standard input if none is specified.
 Options provided are:
@@ -640,7 +640,7 @@ Set the PEM boundary string to
 i.e., assuming we're encoding in PEM format, start processing input
 between
 .BI "\-\-\-\-\-BEGIN " label "\-\-\-\-\-"
-and 
+and
 .BI "\-\-\-\-\-END " label "\-\-\-\-\-"
 lines.  Without this option,
 .B catcrypt
index cbbf694e2b622d85d4f56ec8f8a9cee420977517..a1e3495acc47376156e007585f9ba7ed5c101bc7 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,
@@ -160,8 +160,8 @@ static int encrypt(int argc, char *argv[])
       { "sign-key",    OPTF_ARGREQ,    0,      's' },
       { "armour",      0,              0,      'a' },
       { "armor",       0,              0,      'a' },
-      { "format",      OPTF_ARGREQ,    0,      'f' },
-      { "output",      OPTF_ARGREQ,    0,      'o' },
+      { "format",      OPTF_ARGREQ,    0,      'f' },
+      { "output",      OPTF_ARGREQ,    0,      'o' },
       { "nocheck",     0,              0,      'C' },
       { 0,             0,              0,      0 }
     };
@@ -254,7 +254,7 @@ static int encrypt(int argc, char *argv[])
     buf_init(&b, d.buf, d.len);
     BSTEP(&b, d.len);
     chunk_write(e, &b);
-  }  
+  }
 
   /* --- Now do the main crypto --- */
 
@@ -352,8 +352,8 @@ static int decrypt(int argc, char *argv[])
       { "verbose",     0,              0,      'v' },
       { "quiet",       0,              0,      'q' },
       { "nocheck",     0,              0,      'C' },
-      { "format",      OPTF_ARGREQ,    0,      'f' },
-      { "output",      OPTF_ARGREQ,    0,      'o' },
+      { "format",      OPTF_ARGREQ,    0,      'f' },
+      { "output",      OPTF_ARGREQ,    0,      'o' },
       { 0,             0,              0,      0 }
     };
     i = mdwopt(argc, argv, "abf:o:qvC", opt, 0, 0, 0);
@@ -530,7 +530,7 @@ static int decrypt(int argc, char *argv[])
       die(EXIT_FAILURE, "error unbuffering output: %s", strerror(errno));
   }
   if (ofp && (fflush(ofp) || ferror(ofp) || fclose(ofp)))
-      die(EXIT_FAILURE, "error writing output: %s", strerror(errno));    
+      die(EXIT_FAILURE, "error writing output: %s", strerror(errno));
 
   e->ops->decdone(e);
   if (verb && ofp != stdout)
index 3f1cd5e07a47a6496ad991a0be9f9f269b4ff3d9..93fe70d32d75f270f92d423325f4f0a706f18313 100644 (file)
--- a/catsign.1
+++ b/catsign.1
@@ -62,7 +62,7 @@ is one of:
 .RB [ \-t
 .IR time ]
 .br
-       
+
 .RB [ \-o
 .IR output ]
 .RI [ file
@@ -81,7 +81,7 @@ is one of:
 .RB [ \-F
 .IR format ]
 .br
-       
+
 .RB [ \-m
 .IR file ]
 .RB [ \-o
@@ -148,7 +148,7 @@ on the key, or its type.  The
 .B catsign
 command deals with signing keys.  (Note that
 .B catsign
-uses signing keys in the same way as 
+uses signing keys in the same way as
 .BR catcrypt (1).)
 .PP
 A
@@ -176,7 +176,7 @@ for a list of supported signature algorithms.
 .B rsapkcs1
 This is almost the same as the RSASSA-PKCS1-v1_5 algorithm described in
 RFC3447; the difference is that the hash is left bare rather than being
-wrapped in a DER-encoded 
+wrapped in a DER-encoded
 .B DigestInfo
 structure.  This doesn't affect security since the key can only be used
 with the one hash function anyway, and dropping the DER wrapping permits
@@ -201,7 +201,7 @@ command (see
 to generate the key.
 .TP
 .B dsa
-This is the DSA algorithm described in FIPS180-1 and FIPS180-2.    Use the
+This is the DSA algorithm described in FIPS180-1 and FIPS180-2.  Use the
 .B dsa
 algorithm of the
 .B key add
@@ -278,7 +278,7 @@ the default hash function is
 .BR sha .
 .hP \*o
 For
-.BR kcdsa 
+.BR kcdsa
 and
 .BR eckcdsa ,
 the default hash function is
@@ -373,7 +373,7 @@ The hash functions which can be used in a key's
 attribute.
 .TP
 .B enc
-The encodings which can be applied to encrypted messages; see 
+The encodings which can be applied to encrypted messages; see
 .B ENCODINGS
 above.
 .SS sign
@@ -430,7 +430,7 @@ command checks a signature's validity, producing as output information
 about the signature and the signed message.
 .PP
 The first non-option argument is the name of the file containing the
-signature data; this may be omitted or 
+signature data; this may be omitted or
 .RB ` \- '
 to indicate that the signature be read from standard input.  The second
 non-option argument, if any, is the name of the file to read the message
@@ -533,7 +533,7 @@ All messages.
 .B Warning!
 All output written has been checked for authenticity.  However, output
 can fail madway through for many reasons, and the resulting message may
-therefore be truncated.  Don't rely on the output being complete until 
+therefore be truncated.  Don't rely on the output being complete until
 .B OK
 is printed or
 .B catsign verify
@@ -621,7 +621,7 @@ This is a (slightly) more complex operation than re-encoding, though it
 does not require any cryptographic operations.
 .PP
 The first non-option argument is the name of the file containing the
-signature data; this may be omitted or 
+signature data; this may be omitted or
 .RB ` \- '
 to indicate that the signature be read from standard input.  The second
 non-option argument, if any, is the name of the file to read the message
@@ -688,7 +688,7 @@ The
 command encodes an input file according to one of the encodings
 described above in
 .BR ENCODINGS .
-The input is read from the 
+The input is read from the
 .I file
 given on the command line, or from standard input if none is specified.
 Options provided are:
@@ -722,7 +722,7 @@ The
 command decodes an input file encoded according to one of the encodings
 described above in
 .BR ENCODINGS .
-The input is read from the 
+The input is read from the
 .I file
 given on the command line, or from standard input if none is specified.
 Options provided are:
@@ -740,7 +740,7 @@ Set the PEM boundary string to
 i.e., assuming we're encoding in PEM format, start processing input
 between
 .BI "\-\-\-\-\-BEGIN " label "\-\-\-\-\-"
-and 
+and
 .BI "\-\-\-\-\-END " label "\-\-\-\-\-"
 lines.  Without this option,
 .B catsign
index 727c980c05ff726759d2321960253ef5d14296c4..5c6a6f8b1ebcf60fc8a5e0056ad2bda2d6a47700 100644 (file)
--- a/catsign.c
+++ b/catsign.c
@@ -7,7 +7,7 @@
  * (c) 2005 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,
@@ -292,7 +292,7 @@ static void mc_endread(msgcanon *m, const encops *eops, enc **ee)
   if (m->fp && !(m->f & F_NOCLOSE)) {
     if (ferror(m->fp) || fclose(m->fp))
       die(EXIT_FAILURE, "error closing message file: %s", strerror(errno));
-  }    
+  }
 }
 
 static void mc_endwrite(msgcanon *m, const encops *eops, enc **ee)
@@ -310,7 +310,7 @@ static void mc_endwrite(msgcanon *m, const encops *eops, enc **ee)
   if (m->fp && !(m->f & F_NOCLOSE)) {
     if (fflush(m->fp) || ferror(m->fp) || fclose(m->fp))
       die(EXIT_FAILURE, "error closing message file: %s", strerror(errno));
-  }    
+  }
 }
 
 /*----- Signature reading and writing -------------------------------------*/
@@ -439,7 +439,7 @@ static int sign(int argc, char *argv[])
   int i;
   char bb[MSGBUFSZ];
   size_t n;
-  dstr d = DSTR_INIT;  
+  dstr d = DSTR_INIT;
   const encops *eo;
   msgcanon mc_in = MC_INIT, mc_out = MC_INIT;
   enc *e;
@@ -618,7 +618,7 @@ static int verify(int argc, char *argv[])
       case 'C': v.f |= F_NOCHECK; break;
       case 't':
        if (strcmp(optarg, "always") == 0) t_fresh = 0;
-        else if ((t_fresh = get_date(optarg, 0)) < 0)
+       else if ((t_fresh = get_date(optarg, 0)) < 0)
          die(EXIT_FAILURE, "bad freshness time");
        break;
       case 'q': if (v.verb > 0) v.verb--; break;
@@ -684,7 +684,7 @@ static int verify(int argc, char *argv[])
   if (dd.len != s.kh.len || memcmp(dd.buf, s.kh.buf, dd.len) != 0) {
     if (v.verb) printf("FAIL key hash mismatch\n");
     exit(EXIT_FAILURE);
-  }    
+  }
 
   /* --- Now a merry dance --- */
 
@@ -767,7 +767,7 @@ static int verify(int argc, char *argv[])
       die(EXIT_FAILURE, "error unbuffering output: %s", strerror(errno));
   }
   if (ofp && (fflush(ofp) || ferror(ofp) || fclose(ofp)))
-      die(EXIT_FAILURE, "error writing output: %s", strerror(errno));    
+      die(EXIT_FAILURE, "error writing output: %s", strerror(errno));
 
   /* --- Tidy up --- */
 
@@ -779,7 +779,7 @@ static int verify(int argc, char *argv[])
   sig_destroy(&s);
   dstr_destroy(&d);
   dstr_destroy(&dd);
-  return (0);  
+  return (0);
 }
 
 /*----- Reformatting ------------------------------------------------------*/
@@ -809,8 +809,8 @@ static int format(int argc, char *argv[])
       { "embed",       0,              0,      'E' },
       { "format-in",   OPTF_ARGREQ,    0,      'f' },
       { "format-out",  OPTF_ARGREQ,    0,      'F' },
-      { "message",     OPTF_ARGREQ,    0,      'm' },
-      { "output",      OPTF_ARGREQ,    0,      'o' },
+      { "message",     OPTF_ARGREQ,    0,      'm' },
+      { "output",      OPTF_ARGREQ,    0,      'o' },
       { 0,             0,              0,      0 }
     };
     i = mdwopt(argc, argv, "f:F:m:o:aADE", opt, 0, 0, 0);
@@ -858,7 +858,7 @@ static int format(int argc, char *argv[])
 
   if (((s.f ^ v.f) & v.m) != 0)
     moan("boundary string inconsistent with contents (ignoring)");
-  
+
   mcsetup_read(&mc_in, s.f, &ie, dfn);
 
   /* --- Prepare the output stuff --- */
index 00695aef45936ef9dfec51d09b42af2c3d6a8fe1..d14c952cff809d0fc2455802cf948505320b3ff9 100644 (file)
--- a/cbc-def.h
+++ b/cbc-def.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -181,7 +181,7 @@ void pre##_cbcencrypt(pre##_cbcctx *ctx,                            \
     BLKC_STORE(PRE, b, ctx->iv);                                       \
     if (d) {                                                           \
       for (i = 0; i < sz; i++)                                         \
-        d[i] = b[i] ^ (s ? s[i] : 0);                                  \
+       d[i] = b[i] ^ (s ? s[i] : 0);                                   \
     }                                                                  \
     memmove(b, b + sz, PRE##_BLKSZ - sz);                              \
     memcpy(b + PRE##_BLKSZ - sz, d, sz);                               \
@@ -508,22 +508,22 @@ int main(void)                                                            \
     if (memcmp(pt, text, sizeof(text)) == 0) {                         \
       done++;                                                          \
       if (sizeof(text) < 40 || done % 8 == 0)                          \
-        fputc('.', stdout);                                            \
+       fputc('.', stdout);                                             \
       if (done % 480 == 0)                                             \
-        fputs("\n\t", stdout);                                         \
+       fputs("\n\t", stdout);                                          \
       fflush(stdout);                                                  \
     } else {                                                           \
       printf("\nError (sz = %lu)\n", (unsigned long)sz);               \
       status = 1;                                                      \
       printf("\tplaintext      = "); hexdump(text, sz);                        \
-        printf(", "); hexdump(text + sz, rest);                                \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(text + sz, rest);                         \
+       fputc('\n', stdout);                                            \
       printf("\tciphertext     = "); hexdump(ct, sz);                  \
-        printf(", "); hexdump(ct + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(ct + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       printf("\trecovered text = "); hexdump(pt, sz);                  \
-        printf(", "); hexdump(pt + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(pt + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       fputc('\n', stdout);                                             \
     }                                                                  \
     if (sz < 63)                                                       \
diff --git a/cbc.h b/cbc.h
index 1b51009af5d056fd8b404da022d21de12554a90e..651df8addd6c6e627b85dd5587e4eeb7e437e6a6 100644 (file)
--- a/cbc.h
+++ b/cbc.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 17c0a56feabd6c63f191cde7544e162bae5f3d5f..c7354e67892d42d4898e9a4358178ed1a1b55cc7 100644 (file)
--- a/cc-enc.c
+++ b/cc-enc.c
@@ -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,
@@ -55,7 +55,7 @@ static enc *bin_decinit(FILE *fp, encbdryp *func, void *p)
 static int bin_read(enc *e, void *p, size_t sz)
 {
   size_t n;
-  
+
   if (!sz) return (0);
   n = fread(p, 1, sz, e->fp);
   if (!n || ferror(e->fp)) return (-1);
@@ -279,7 +279,7 @@ const encops enctab[] = {
     pem_encdone, pem_decdone,
     pem_destroy },
   { 0 }
-};  
+};
 
 /* --- @getenc@ --- *
  *
@@ -319,7 +319,7 @@ enc *initenc(const encops *eo, FILE *fp, const char *msg)
   enc *e = eo->initenc(fp, msg);
   e->ops = eo;
   e->fp = fp;
-  return (e);  
+  return (e);
 }
 
 /* --- @initdec@ --- *
@@ -374,9 +374,9 @@ int cmd_encode(int argc, char *argv[])
 
   for (;;) {
     static const struct option opt[] = {
-      { "format",      OPTF_ARGREQ,    0,      'f' },
-      { "boundary",    OPTF_ARGREQ,    0,      'b' },
-      { "output",      OPTF_ARGREQ,    0,      'o' },
+      { "format",      OPTF_ARGREQ,    0,      'f' },
+      { "boundary",    OPTF_ARGREQ,    0,      'b' },
+      { "output",      OPTF_ARGREQ,    0,      'o' },
       { 0,             0,              0,      0 }
     };
     i = mdwopt(argc, argv, "f:b:o:", opt, 0, 0, 0);
@@ -443,9 +443,9 @@ int cmd_decode(int argc, char *argv[])
 
   for (;;) {
     static const struct option opt[] = {
-      { "format",      OPTF_ARGREQ,    0,      'f' },
-      { "boundary",    OPTF_ARGREQ,    0,      'b' },
-      { "output",      OPTF_ARGREQ,    0,      'o' },
+      { "format",      OPTF_ARGREQ,    0,      'f' },
+      { "boundary",    OPTF_ARGREQ,    0,      'b' },
+      { "output",      OPTF_ARGREQ,    0,      'o' },
       { 0,             0,              0,      0 }
     };
     i = mdwopt(argc, argv, "f:b:o:", opt, 0, 0, 0);
index 1766c8efdb4ed8c508dbca4427f7b646fcd36dac..360977a86cf6267661e3cc1b3d7431ebe7f47722 100644 (file)
--- a/cc-kem.c
+++ b/cc-kem.c
@@ -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,
@@ -169,7 +169,7 @@ typedef struct dh_encctx {
   ge *y;
 } dh_encctx;
 
-static dh_encctx *dh_doinit(key *k, const gprime_param *gp, mp *y, 
+static dh_encctx *dh_doinit(key *k, const gprime_param *gp, mp *y,
                            group *(*makegroup)(const gprime_param *),
                            const char *what)
 {
@@ -235,7 +235,7 @@ static int dh_encdoit(kem *k, dstr *d, ghash *h)
   ge *y = G_CREATE(de->g);
   size_t n = de->g->noctets;
   buf b;
-  
+
   G_EXP(de->g, x, de->g->g, r);
   G_EXP(de->g, y, de->y, r);
   dstr_ensure(d, n);
@@ -540,7 +540,7 @@ k_found:;
     die(EXIT_FAILURE, "encryption scheme (KDF) `%s' not found in key `%s'",
        q, t.buf);
   }
-    
+
   dstr_reset(&d);
   if ((q = key_getattr(0, k, "mac")) == 0) {
     dstr_putf(&d, "%s-hmac", kk->h->name);
index f5aef42e8bbcf8b73ca839500862cff41c150c7b..9c06cd03558d0593f9fe560b218f8ccb01044cae 100644 (file)
--- a/cc-list.c
+++ b/cc-list.c
@@ -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,
index dbcf902d4219d5374d20b416c1c2d1c6157c1ceb..543940828e8668bc0fdab2a171b5870cf5c3ca92 100644 (file)
--- a/cc-sig.c
+++ b/cc-sig.c
@@ -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,
@@ -199,7 +199,7 @@ static int rsapss_sigdoit(sig *s, dstr *d)
                   pss_encode, &rs->p);
   if (!m) return (-1);
   n = mp_octets(rs->rp.rp->n); dstr_ensure(d, n); mp_storeb(m, d->buf, n);
-  d->len += n;  mp_drop(m);
+  d->len += n; mp_drop(m);
   return (0);
 }
 
@@ -793,7 +793,7 @@ void freesig(sig *s)
   GH_DESTROY(s->h);
   if (!s->ops->kf)
     key_drop(s->kd);
-  else {    
+  else {
     key_fetchdone(s->kp);
     xfree(s->kd);
   }
index 9af70e1a017e4d3fb6ff61940ace28007a583fa5..b77a9c9a73940e17d7ca41534960b5719cc4854c 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,
@@ -97,7 +97,7 @@ The following commands are understood:\n\n",
       c = findcmd(cmds, *argv);
       fprintf(fp, "Usage: %s [-OPTIONS] %s\n", QUIS, c->usage);
       if (c->help) {
-       fputc('\n', fp);        
+       fputc('\n', fp);
        pquis(fp, c->help);
       }
       argv++;
diff --git a/cc.h b/cc.h
index 4124b8244275d0e168d31b82297c2530f3c5bc46..f7b12d030f6cf6c14719506d233ca18085647fb5 100644 (file)
--- a/cc.h
+++ b/cc.h
@@ -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,
@@ -101,7 +101,7 @@ struct sigtab {
   const sigops *verifyops;
   const gchash *ch;
 };
-    
+
 extern const struct sigtab sigtab[];
 
 /* --- Data encoding --- */
index 8de17b362fb1706fc5d6f99c41ed383de8d6d357..357bb956e0856e947633803750393e57308b97d0 100644 (file)
--- a/cfb-def.h
+++ b/cfb-def.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -225,11 +225,11 @@ void pre##_cfbencrypt(pre##_cfbctx *ctx,                          \
        break;                                                          \
       if (s) {                                                         \
        BLKC_XLOAD(PRE, iv, s);                                         \
-        s += PRE##_BLKSZ;                                              \
+       s += PRE##_BLKSZ;                                               \
       }                                                                        \
       if (d) {                                                         \
-        BLKC_STORE(PRE, d, iv);                                                \
-        d += PRE##_BLKSZ;                                              \
+       BLKC_STORE(PRE, d, iv);                                         \
+       d += PRE##_BLKSZ;                                               \
       }                                                                        \
       sz -= PRE##_BLKSZ;                                               \
     }                                                                  \
@@ -467,22 +467,22 @@ int main(void)                                                            \
     if (memcmp(pt, text, sizeof(text)) == 0) {                         \
       done++;                                                          \
       if (sizeof(text) < 40 || done % 8 == 0)                          \
-        fputc('.', stdout);                                            \
+       fputc('.', stdout);                                             \
       if (done % 480 == 0)                                             \
-        fputs("\n\t", stdout);                                         \
+       fputs("\n\t", stdout);                                          \
       fflush(stdout);                                                  \
     } else {                                                           \
       printf("\nError (sz = %lu)\n", (unsigned long)sz);               \
       status = 1;                                                      \
       printf("\tplaintext      = "); hexdump(text, sz);                        \
-        printf(", "); hexdump(text + sz, rest);                                \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(text + sz, rest);                         \
+       fputc('\n', stdout);                                            \
       printf("\tciphertext     = "); hexdump(ct, sz);                  \
-        printf(", "); hexdump(ct + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(ct + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       printf("\trecovered text = "); hexdump(pt, sz);                  \
-        printf(", "); hexdump(pt + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(pt + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       fputc('\n', stdout);                                             \
     }                                                                  \
     if (sz < 63)                                                       \
diff --git a/cfb.h b/cfb.h
index 16885b77f9dd90945747b043d340d688a233bc5f..e2082a1a0a9871b752d4c62507e7e4775d8e0aa4 100644 (file)
--- a/cfb.h
+++ b/cfb.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index aef91e05efce02428ac4e9d6bbbde778d363cbce..f8457bf73710a8087566342bfee3daba5b819d66 100644 (file)
@@ -15,12 +15,12 @@ dnl Catacomb is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU Library General Public License as
 dnl published by the Free Software Foundation; either version 2 of the
 dnl License, or (at your option) any later version.
-dnl 
+dnl
 dnl Catacomb is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU Library General Public License for more details.
-dnl 
+dnl
 dnl You should have received a copy of the GNU Library General Public
 dnl License along with Catacomb; if not, write to the Free
 dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
@@ -76,7 +76,7 @@ sigsetjmp(j, 1);],
 [catacomb_cv_freewheel=no])])
 if test "$catacomb_cv_freewheel" = "yes"; then
   AC_DEFINE([USE_FREEWHEEL], [1],
-            [Define if you want to use the freewheel noise generator.])
+           [Define if you want to use the freewheel noise generator.])
 fi
 
 dnl --- Support for the passphrase pixie ---
@@ -86,19 +86,19 @@ AC_CHECK_FUNCS(mlock)
 
 dnl --- Debugging things ---
 
-AC_ARG_ENABLE([mpw], 
-              [AS_HELP_STRING([--enable-mpw], 
-                              [force small-width mp digits])],
-              [case "$enableval" in
-                 y*|t*|short)
-                   AC_DEFINE([FORCE_MPW_SHORT], [1],
-                             [Define to force small-width mp digits.])
-                   ;;
-                 cussid)
-                   AC_DEFINE([FORCE_MPW_CUSSID], [1],
-                             [Define to force strange-width mp digits.])
-                   ;;
-               esac])
+AC_ARG_ENABLE([mpw],
+             [AS_HELP_STRING([--enable-mpw],
+                             [force small-width mp digits])],
+             [case "$enableval" in
+                y*|t*|short)
+                  AC_DEFINE([FORCE_MPW_SHORT], [1],
+                            [Define to force small-width mp digits.])
+                  ;;
+                cussid)
+                  AC_DEFINE([FORCE_MPW_CUSSID], [1],
+                            [Define to force strange-width mp digits.])
+                  ;;
+              esac])
 
 dnl --- Done ---
 
index 4a635e6af4cf0bdc49f4d00945ddb0d2681d5973..7bdef80bf635afb7c0b45a7b4dd12b97277ae3e6 100644 (file)
--- a/cookie.1
+++ b/cookie.1
@@ -155,7 +155,7 @@ argument is supplied, then an identical argument must be supplied to the
 .B verify
 command if the cookie is to be accepted as valid.  The data will usually
 be some way of identifying the cookie's recipient, e.g., an email
-address. 
+address.
 .PP
 The generated cookie is written to standard output, followed by a
 newline.  Cookies are not architecture-specific.
index c9885413048065c76fb4fce8f1f11e84240cc092..341469587c8517494bec6b49dc2b79b18c6f2c76 100644 (file)
--- a/cookie.c
+++ b/cookie.c
@@ -7,7 +7,7 @@
  * (c) 1999 Mark Wooding
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Catacomb.
  *
  * it under the terms of the GNU 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 General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with Catacomb; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -224,7 +224,7 @@ static int cmd_gen(int argc, char *argv[])
   dstr d = DSTR_INIT;
   octet buf[COOKIE_SZ];
   base64_ctx b;
-  
+
   /* --- Various useful flag bits --- */
 
 #define f_bogus 1u
@@ -386,7 +386,7 @@ static int cmd_verify(int argc, char *argv[])
       case 'm':
        if (!(minbits = atoi(optarg)) || minbits % 8)
          die(EXIT_FAILURE, "bad number of bits: `%s'", optarg);
-       break;  
+       break;
 
       /* --- Miscellaneous flags --- */
 
@@ -402,7 +402,7 @@ static int cmd_verify(int argc, char *argv[])
       case 'v':
        v++;
        break;
-       
+
       /* --- Other things are bogus --- */
 
       default:
@@ -687,6 +687,6 @@ int main(int argc, char *argv[])
 
 #undef f_bogus
 #undef f_forever
-}    
+}
 
 /*----- That's all, folks -------------------------------------------------*/
index 315e1c187cc7b9526279a2c4d5536837b9a8f0b1..129efd9a913a04ef91ea1eee1d62ab0a2b9b5d44 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -211,7 +211,7 @@ void pre##_counterencrypt(pre##_counterctx *ctx,                    \
   {                                                                    \
     uint32 n[PRE##_BLKSZ / 4];                                         \
                                                                        \
-    for (;;) {                                                         \
+    for (;;) {                                                         \
       pre##_eblk(&ctx->ctx, ctx->n, n);                                        \
       BLKC_STEP(PRE, ctx->n);                                          \
       if (sz < PRE##_BLKSZ)                                            \
@@ -494,22 +494,22 @@ int main(void)                                                            \
     if (memcmp(pt, text, sizeof(text)) == 0) {                         \
       done++;                                                          \
       if (sizeof(text) < 40 || done % 8 == 0)                          \
-        fputc('.', stdout);                                            \
+       fputc('.', stdout);                                             \
       if (done % 480 == 0)                                             \
-        fputs("\n\t", stdout);                                         \
+       fputs("\n\t", stdout);                                          \
       fflush(stdout);                                                  \
     } else {                                                           \
       printf("\nError (sz = %lu)\n", (unsigned long)sz);               \
       status = 1;                                                      \
       printf("\tplaintext      = "); hexdump(text, sz);                        \
-        printf(", "); hexdump(text + sz, rest);                                \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(text + sz, rest);                         \
+       fputc('\n', stdout);                                            \
       printf("\tciphertext     = "); hexdump(ct, sz);                  \
-        printf(", "); hexdump(ct + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(ct + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       printf("\trecovered text = "); hexdump(pt, sz);                  \
-        printf(", "); hexdump(pt + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(pt + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       fputc('\n', stdout);                                             \
     }                                                                  \
     if (sz < 63)                                                       \
index ac49796028a9ede8e2a9b82608724a6a8a880b53..0cfaa726f08b431e3b18d22b8272b3f985f5ac07 100644 (file)
--- a/counter.h
+++ b/counter.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/crc32.c b/crc32.c
index f6590aae209bc5563b99158be40701f3ae467f4a..3bccfa3a7ef1e77d9e3f8196cfcd2e463d39b191 100644 (file)
--- a/crc32.c
+++ b/crc32.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/crc32.h b/crc32.h
index 86eef42b3410551d88ddc61a74058d6f106b1bc9..1cf164f0c742881e5fb0cf29c92dc52a5d17782f 100644 (file)
--- a/crc32.h
+++ b/crc32.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 055eba2419d034c7cbe4324856e316b14786ccd0..30313a4490e1d448d65a7b7cee2a1211c468dac4 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -61,7 +61,7 @@ Later in the year, the princess tripped over the hem of her dress, fell\n\
 down a spiral staircase, and died.  The king ordered dressmakers to attach\n\
 safety warnings to long dresses.\n\
 \n\
-And the wizard?  Who cares?\n\
+And the wizard?         Who cares?\n\
 "
 #  define TEXT STORY STORY
 #endif
index c78ee623b0b826204f71e4ca0afbeefb9a2ef14e..d8df68817cf2b316960ef673e4c9187f0369a712 100644 (file)
@@ -6,7 +6,7 @@ dpkg-statoverride --remove /usr/bin/pixie 2>/dev/null || true
 case $setuid in
   true)
     echo "Installing /usr/bin/pixie setuid-root."
-    dpkg-statoverride --add --update root root 4755 /usr/bin/pixie 
+    dpkg-statoverride --add --update root root 4755 /usr/bin/pixie
     ;;
   false)
     echo "Making /usr/bin/pixie non-setuid."
index 81161632795ac92ed65aa9abf3048d26067d6340..ec53299eef08343f1ed047906bbb2dd80489e92d 100755 (executable)
@@ -58,4 +58,4 @@ source:
        d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/*
        rm -rf deb-build/=deb=
 
-.PHONY: binary binary-arch binary-indep clean install source 
+.PHONY: binary binary-arch binary-indep clean install source
index 7619a344f70b7981fedbecddd7e7aab195680395..1003cb645439619a40bb7f1b65700f8bbbe88a39 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 086c68e8b5e8f37de109cc6d3723eb5251b68273..709877bc97b2314382b0415a8c8655423cf51c16 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index e41e372fb76834438dd51347c4e79ee16fc3fe35..9f27e627790f781173e322da8b0ad8e415eb3acb 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -264,11 +264,11 @@ int main(void)
     for (j = 0; j < 64; j++) {
       printf("%s0x%08lx", sep, ss[j]);
       if (j % 4 == 3)
-       sep = ",                        \\\n    ";
+       sep = ",                        \\\n    ";
       else
        sep = ", ";
     }
-    printf(" }%s                       \\\n", i == 7 ? "" : ",");
+    printf(" }%s                       \\\n", i == 7 ? "" : ",");
   }
   fputs("\
 }\n\
diff --git a/des.c b/des.c
index a056c11d7fba6fbbc32368bbaa79a205c26dae6e..e2f076134465ac875eaf9b92fe4984c0c9d2931f 100644 (file)
--- a/des.c
+++ b/des.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -170,15 +170,15 @@ void des_init(des_ctx *k, const void *buf, size_t sz)
    */
 
   static const char pc1[] = {
-     0,  0,  0,  0,
+     0,         0,  0,  0,
     57, 49, 41, 33, 25, 17,  9,
      1, 58, 50, 42, 34, 26, 18,
-    10,  2, 59, 51, 43, 35, 27,
+    10,         2, 59, 51, 43, 35, 27,
     19, 11,  3, 60, 52, 44, 36,
-     0,  0,  0,  0,
+     0,         0,  0,  0,
     63, 55, 47, 39, 31, 23, 15,
      7, 62, 54, 46, 38, 30, 22,
-    14,  6, 61, 53, 45, 37, 29,
+    14,         6, 61, 53, 45, 37, 29,
     21, 13,  5, 28, 20, 12,  4
   };
 
@@ -198,14 +198,14 @@ void des_init(des_ctx *k, const void *buf, size_t sz)
    */
 
   static const char pc2[] = {
-     0,  0,  3 + 4, 28 + 4, 15 + 4,  6 + 4, 21 + 4, 10 + 4, /* S-box 2 */
-     0,  0, 16 + 4,  7 + 4, 27 + 4, 20 + 4, 13 + 4,  2 + 4, /* S-box 4 */
-     0,  0, 30 + 8, 40 + 8, 51 + 8, 45 + 8, 33 + 8, 48 + 8, /* S-box 6 */
-     0,  0, 46 + 8, 42 + 8, 50 + 8, 36 + 8, 29 + 8, 32 + 8, /* S-box 8 */
-     0,  0, 14 + 4, 17 + 4, 11 + 4, 24 + 4,  1 + 4,  5 + 4, /* S-box 1 */
-     0,  0, 23 + 4, 19 + 4, 12 + 4,  4 + 4, 26 + 4,  8 + 4, /* S-box 3 */
-     0,  0, 41 + 8, 52 + 8, 31 + 8, 37 + 8, 47 + 8, 55 + 8, /* S-box 5 */
-     0,  0, 44 + 8, 49 + 8, 39 + 8, 56 + 8, 34 + 8, 53 + 8  /* S-box 7 */
+     0,         0,  3 + 4, 28 + 4, 15 + 4,  6 + 4, 21 + 4, 10 + 4, /* S-box 2 */
+     0,         0, 16 + 4,  7 + 4, 27 + 4, 20 + 4, 13 + 4,  2 + 4, /* S-box 4 */
+     0,         0, 30 + 8, 40 + 8, 51 + 8, 45 + 8, 33 + 8, 48 + 8, /* S-box 6 */
+     0,         0, 46 + 8, 42 + 8, 50 + 8, 36 + 8, 29 + 8, 32 + 8, /* S-box 8 */
+     0,         0, 14 + 4, 17 + 4, 11 + 4, 24 + 4,  1 + 4,  5 + 4, /* S-box 1 */
+     0,         0, 23 + 4, 19 + 4, 12 + 4,  4 + 4, 26 + 4,  8 + 4, /* S-box 3 */
+     0,         0, 41 + 8, 52 + 8, 31 + 8, 37 + 8, 47 + 8, 55 + 8, /* S-box 5 */
+     0,         0, 44 + 8, 49 + 8, 39 + 8, 56 + 8, 34 + 8, 53 + 8  /* S-box 7 */
   };
 
   /* --- @v@ --- *
@@ -226,7 +226,7 @@ void des_init(des_ctx *k, const void *buf, size_t sz)
 
   KSZ_ASSERT(des, sz);
   des_expand(buf, sz, &x, &y);
-  
+
   /* --- Permute using the pointless PC1 --- */
 
   permute(pc1, x, y, ka);
diff --git a/des.h b/des.h
index 489d5e08b885519785130252a6601eab56b034a9..f3fe91c6719f77e55e10231d6e1496706149f57b 100644 (file)
--- a/des.h
+++ b/des.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/des3.c b/des3.c
index 1b08d2e59f77df7517e1f8d507c2c2d9d167d6e5..66f82431aa51dcc5966b4c28c6b196c3a5d3d896 100644 (file)
--- a/des3.c
+++ b/des3.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -57,9 +57,9 @@ const octet des3_keysz[] = { KSZ_SET, 21, 7, 8, 14, 16, 24, 0 };
  * Returns:    ---
  *
  * Use:                Initializes a DES key buffer.  The key buffer may have length
- *              7, 8, 14, 16, 21, or 24.  These correspond to one, two or
- *              three DES keys, either packed or unpacked (i.e., still
- *              containing parity bits).
+ *             7, 8, 14, 16, 21, or 24.  These correspond to one, two or
+ *             three DES keys, either packed or unpacked (i.e., still
+ *             containing parity bits).
  */
 
 void des3_init(des3_ctx *k, const void *buf, size_t sz)
diff --git a/des3.h b/des3.h
index 0e08f26c810cbf335ef8fdb4fe895f65a740dda5..f4f33113e257d2ac386a4d17bc1b30c91b5e0a4f 100644 (file)
--- a/des3.h
+++ b/des3.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 205044304e2728f5bc55871efd5102e3be9f66ee..7c892e5c71a15f0fea9b74674e7af2be6ff810c6 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
 /*----- S-box table -------------------------------------------------------*/
 
 #define DESX_S {                                                       \
-  0xbd, 0x56, 0xea, 0xf2, 0xa2, 0xf1, 0xac, 0x2a,                      \
-  0xb0, 0x93, 0xd1, 0x9c, 0x1b, 0x33, 0xfd, 0xd0,                      \
-  0x30, 0x04, 0xb6, 0xdc, 0x7d, 0xdf, 0x32, 0x4b,                      \
-  0xf7, 0xcb, 0x45, 0x9b, 0x31, 0xbb, 0x21, 0x5a,                      \
-  0x41, 0x9f, 0xe1, 0xd9, 0x4a, 0x4d, 0x9e, 0xda,                      \
-  0xa0, 0x68, 0x2c, 0xc3, 0x27, 0x5f, 0x80, 0x36,                      \
-  0x3e, 0xee, 0xfb, 0x95, 0x1a, 0xfe, 0xce, 0xa8,                      \
-  0x34, 0xa9, 0x13, 0xf0, 0xa6, 0x3f, 0xd8, 0x0c,                      \
-  0x78, 0x24, 0xaf, 0x23, 0x52, 0xc1, 0x67, 0x17,                      \
-  0xf5, 0x66, 0x90, 0xe7, 0xe8, 0x07, 0xb8, 0x60,                      \
-  0x48, 0xe6, 0x1e, 0x53, 0xf3, 0x92, 0xa4, 0x72,                      \
-  0x8c, 0x08, 0x15, 0x6e, 0x86, 0x00, 0x84, 0xfa,                      \
-  0xf4, 0x7f, 0x8a, 0x42, 0x19, 0xf6, 0xdb, 0xcd,                      \
-  0x14, 0x8d, 0x50, 0x12, 0xba, 0x3c, 0x06, 0x4e,                      \
-  0xec, 0xb3, 0x35, 0x11, 0xa1, 0x88, 0x8e, 0x2b,                      \
-  0x94, 0x99, 0xb7, 0x71, 0x74, 0xd3, 0xe4, 0xbf,                      \
-  0x3a, 0xde, 0x96, 0x0e, 0xbc, 0x0a, 0xed, 0x77,                      \
-  0xfc, 0x37, 0x6b, 0x03, 0x79, 0x89, 0x62, 0xc6,                      \
-  0xd7, 0xc0, 0xd2, 0x7c, 0x6a, 0x8b, 0x22, 0xa3,                      \
-  0x5b, 0x05, 0x5d, 0x02, 0x75, 0xd5, 0x61, 0xe3,                      \
-  0x18, 0x8f, 0x55, 0x51, 0xad, 0x1f, 0x0b, 0x5e,                      \
-  0x85, 0xe5, 0xc2, 0x57, 0x63, 0xca, 0x3d, 0x6c,                      \
-  0xb4, 0xc5, 0xcc, 0x70, 0xb2, 0x91, 0x59, 0x0d,                      \
-  0x47, 0x20, 0xc8, 0x4f, 0x58, 0xe0, 0x01, 0xe2,                      \
-  0x16, 0x38, 0xc4, 0x6f, 0x3b, 0x0f, 0x65, 0x46,                      \
-  0xbe, 0x7e, 0x2d, 0x7b, 0x82, 0xf9, 0x40, 0xb5,                      \
-  0x1d, 0x73, 0xf8, 0xeb, 0x26, 0xc7, 0x87, 0x97,                      \
-  0x25, 0x54, 0xb1, 0x28, 0xaa, 0x98, 0x9d, 0xa5,                      \
-  0x64, 0x6d, 0x7a, 0xd4, 0x10, 0x81, 0x44, 0xef,                      \
-  0x49, 0xd6, 0xae, 0x2e, 0xdd, 0x76, 0x5c, 0x2f,                      \
-  0xa7, 0x1c, 0xc9, 0x09, 0x69, 0x9a, 0x83, 0xcf,                      \
-  0x29, 0x39, 0xb9, 0xe9, 0x4c, 0xff, 0x43, 0xab,                      \
+  0xbd, 0x56, 0xea, 0xf2, 0xa2, 0xf1, 0xac, 0x2a,                      \
+  0xb0, 0x93, 0xd1, 0x9c, 0x1b, 0x33, 0xfd, 0xd0,                      \
+  0x30, 0x04, 0xb6, 0xdc, 0x7d, 0xdf, 0x32, 0x4b,                      \
+  0xf7, 0xcb, 0x45, 0x9b, 0x31, 0xbb, 0x21, 0x5a,                      \
+  0x41, 0x9f, 0xe1, 0xd9, 0x4a, 0x4d, 0x9e, 0xda,                      \
+  0xa0, 0x68, 0x2c, 0xc3, 0x27, 0x5f, 0x80, 0x36,                      \
+  0x3e, 0xee, 0xfb, 0x95, 0x1a, 0xfe, 0xce, 0xa8,                      \
+  0x34, 0xa9, 0x13, 0xf0, 0xa6, 0x3f, 0xd8, 0x0c,                      \
+  0x78, 0x24, 0xaf, 0x23, 0x52, 0xc1, 0x67, 0x17,                      \
+  0xf5, 0x66, 0x90, 0xe7, 0xe8, 0x07, 0xb8, 0x60,                      \
+  0x48, 0xe6, 0x1e, 0x53, 0xf3, 0x92, 0xa4, 0x72,                      \
+  0x8c, 0x08, 0x15, 0x6e, 0x86, 0x00, 0x84, 0xfa,                      \
+  0xf4, 0x7f, 0x8a, 0x42, 0x19, 0xf6, 0xdb, 0xcd,                      \
+  0x14, 0x8d, 0x50, 0x12, 0xba, 0x3c, 0x06, 0x4e,                      \
+  0xec, 0xb3, 0x35, 0x11, 0xa1, 0x88, 0x8e, 0x2b,                      \
+  0x94, 0x99, 0xb7, 0x71, 0x74, 0xd3, 0xe4, 0xbf,                      \
+  0x3a, 0xde, 0x96, 0x0e, 0xbc, 0x0a, 0xed, 0x77,                      \
+  0xfc, 0x37, 0x6b, 0x03, 0x79, 0x89, 0x62, 0xc6,                      \
+  0xd7, 0xc0, 0xd2, 0x7c, 0x6a, 0x8b, 0x22, 0xa3,                      \
+  0x5b, 0x05, 0x5d, 0x02, 0x75, 0xd5, 0x61, 0xe3,                      \
+  0x18, 0x8f, 0x55, 0x51, 0xad, 0x1f, 0x0b, 0x5e,                      \
+  0x85, 0xe5, 0xc2, 0x57, 0x63, 0xca, 0x3d, 0x6c,                      \
+  0xb4, 0xc5, 0xcc, 0x70, 0xb2, 0x91, 0x59, 0x0d,                      \
+  0x47, 0x20, 0xc8, 0x4f, 0x58, 0xe0, 0x01, 0xe2,                      \
+  0x16, 0x38, 0xc4, 0x6f, 0x3b, 0x0f, 0x65, 0x46,                      \
+  0xbe, 0x7e, 0x2d, 0x7b, 0x82, 0xf9, 0x40, 0xb5,                      \
+  0x1d, 0x73, 0xf8, 0xeb, 0x26, 0xc7, 0x87, 0x97,                      \
+  0x25, 0x54, 0xb1, 0x28, 0xaa, 0x98, 0x9d, 0xa5,                      \
+  0x64, 0x6d, 0x7a, 0xd4, 0x10, 0x81, 0x44, 0xef,                      \
+  0x49, 0xd6, 0xae, 0x2e, 0xdd, 0x76, 0x5c, 0x2f,                      \
+  0xa7, 0x1c, 0xc9, 0x09, 0x69, 0x9a, 0x83, 0xcf,                      \
+  0x29, 0x39, 0xb9, 0xe9, 0x4c, 0xff, 0x43, 0xab,                      \
 }
 
 /*----- That's all, folks -------------------------------------------------*/
diff --git a/desx.c b/desx.c
index 9c7f8ebc7b8bd9431586451ae175fd3e09d71251..d7794826d41deaa25ee384e7bc3ea16fe1fc346b 100644 (file)
--- a/desx.c
+++ b/desx.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -108,7 +108,7 @@ void desx_init(desx_ctx *k, const void *buf, size_t sz)
       mangle(b, b + 8);
       mangle(b, q);
       k->posta = LOAD32(b + 0);
-      k->postb = LOAD32(b + 4);      
+      k->postb = LOAD32(b + 4);
     }
   }
 }
diff --git a/desx.h b/desx.h
index 5b9ab96fb5733426b60e473221df137eb91d64ba..bee363efe568cf93160b80ce3b4afa1e25a9d736 100644 (file)
--- a/desx.h
+++ b/desx.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 13320a6a53bd5be5157cd68c7dc38c11b8cb35ec..ef07e66f16c7ed47abb513ef9b1bba79a7358ba2 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 5f5c74d5eaa139943d25bc66d5d54ff1c176fd07..57439d2df9a68decd34f9f39c5399bbed43cfd49 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -60,7 +60,7 @@ const key_fetchdef dh_privfetch[] = {
   { "g",       offsetof(dh_priv, dp.g),        KENC_MP,        0 },
   { "y",       offsetof(dh_priv, y),           KENC_MP,        0 },
   { "private", 0,                              KENC_STRUCT,    priv },
-  { 0,         0,                              0,              0 }  
+  { 0,         0,                              0,              0 }
 };
 
 /* --- @dh_paramfree@, @dh_pubfree@, @dh_privfree@ --- *
index 03995f37ec594220c00bc5dc318ff80e3a10afcb..a1b61a1ba13d2b92a0ced316f2b444f7b2f3e9b3 100644 (file)
--- a/dh-gen.c
+++ b/dh-gen.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index d1c0611e7828b88b8d812d20cd0819ac423d0cbc..b503a5ba4f0a5143f73cac473ca0398861baf0cc 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2006 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,
index 3787305ea56c7b978b9347a490f8129dc27a46a3..26666a366df9f2ba23d915ea56bec48b9524ede1 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
  *             @unsigned flags@ = other generation flags
  *             @unsigned steps@ = number of steps to go
  *             @grand *r@ = random number source
- *              @pgen_proc *oev@ = outer event handler function
- *              @void *oec@ = argument for the outer event handler
- *              @pgen_proc *iev@ = inner event handler function
- *              @void *iec@ = argument for the inner event handler
- *              @size_t *nf@, @mp ***f@ = output array for factors
+ *             @pgen_proc *oev@ = outer event handler function
+ *             @void *oec@ = argument for the outer event handler
+ *             @pgen_proc *iev@ = inner event handler function
+ *             @void *iec@ = argument for the inner event handler
+ *             @size_t *nf@, @mp ***f@ = output array for factors
  *
  * Returns:    @PGEN_DONE@ if it worked, @PGEN_ABORT@ if it didn't.
  *
index 26ee000d17d7e3ba93f49270ed394ade487dff8c..e1e53744d033d1370da37ed41723e98c5b52874d 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,
diff --git a/dh.h b/dh.h
index 689d8f18a05d46ab4bbcd0d9c20a187b933fa929..04b526e26ac045ee71eb51813d871bab36c14d2e 100644 (file)
--- a/dh.h
+++ b/dh.h
@@ -7,7 +7,7 @@
  * (c) 1999 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 @@
 typedef gprime_param dh_param;         /* Group parameters */
 
 typedef struct dh_pub {
-  dh_param dp;                         /* Shared parameters */         
+  dh_param dp;                         /* Shared parameters */
   mp *y;                               /* Public key */
 } dh_pub;
 
@@ -138,11 +138,11 @@ extern int dh_gen(dh_param */*dp*/, unsigned /*ql*/, unsigned /*pl*/,
  *             @unsigned flags@ = other generation flags
  *             @unsigned steps@ = number of steps to go
  *             @grand *r@ = random number source
- *              @pgen_proc *oev@ = outer event handler function
- *              @void *oec@ = argument for the outer event handler
- *              @pgen_proc *iev@ = inner event handler function
- *              @void *iec@ = argument for the inner event handler
- *              @size_t *nf@, @mp ***f@ = output array for factors
+ *             @pgen_proc *oev@ = outer event handler function
+ *             @void *oec@ = argument for the outer event handler
+ *             @pgen_proc *iev@ = inner event handler function
+ *             @void *iec@ = argument for the inner event handler
+ *             @size_t *nf@, @mp ***f@ = output array for factors
  *
  * Returns:    @PGEN_DONE@ if it worked, @PGEN_ABORT@ if it didn't.
  *
index 5e04b253b66c1b65b90a23387058f7838167a644..a99cd0e034593427835e0a766376af3922d2dcca 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 482d2400e677d7f1d0f3d7a4f22d2dae014670f6..adb8d9ad84b4bec15a8b62d5afdd085aa4935437 100644 (file)
--- a/dsa-gen.c
+++ b/dsa-gen.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -239,15 +239,15 @@ static int verify(dstr *v)
     fputs("\nseed_in = ", stderr); type_hex.dump(&v[0], stderr);
     fprintf(stderr, "\nl = %lu", l);
     fputs("\nseed_out = ", stderr); type_hex.dump(&v[2], stderr);
-    fprintf(stderr, "\ncount = %lu", n);    
-    fputs("\n   q = ", stderr); mp_writefile(q, stderr, 16);
-    fputs("\n   p = ", stderr); mp_writefile(p, stderr, 16);
-    fputs("\n   g = ", stderr); mp_writefile(g, stderr, 16);
+    fprintf(stderr, "\ncount = %lu", n);
+    fputs("\n  q = ", stderr); mp_writefile(q, stderr, 16);
+    fputs("\n  p = ", stderr); mp_writefile(p, stderr, 16);
+    fputs("\n  g = ", stderr); mp_writefile(g, stderr, 16);
     if (!rc) {
       dstr d;
       d.buf = ds.p; d.len = ds.sz;
       fputs("\nds.seed = ", stderr); type_hex.dump(&d, stderr);
-      fprintf(stderr, "\nds.count = %u", ds.count);    
+      fprintf(stderr, "\nds.count = %u", ds.count);
       fputs("\ndp.q = ", stderr); mp_writefile(dp.q, stderr, 16);
       fputs("\ndp.p = ", stderr); mp_writefile(dp.p, stderr, 16);
       fputs("\ndp.g = ", stderr); mp_writefile(dp.g, stderr, 16);
@@ -266,10 +266,10 @@ static int verify(dstr *v)
     fputs("\nseed_in = ", stderr); type_hex.dump(&v[0], stderr);
     fprintf(stderr, "\nl = %lu", l);
     fputs("\nseed_out = ", stderr); type_hex.dump(&v[2], stderr);
-    fprintf(stderr, "\ncount = %lu", n);    
-    fputs("\n   q = ", stderr); mp_writefile(q, stderr, 16);
-    fputs("\n   p = ", stderr); mp_writefile(p, stderr, 16);
-    fputs("\n   g = ", stderr); mp_writefile(g, stderr, 16);
+    fprintf(stderr, "\ncount = %lu", n);
+    fputs("\n  q = ", stderr); mp_writefile(q, stderr, 16);
+    fputs("\n  p = ", stderr); mp_writefile(p, stderr, 16);
+    fputs("\n  g = ", stderr); mp_writefile(g, stderr, 16);
     fputc('\n', stderr);
     ok = 0;
   }
@@ -285,7 +285,7 @@ static int verify(dstr *v)
 static test_chunk tests[] = {
   { "gen", verify,
     { &type_hex, &type_ulong, &type_hex, &type_ulong,
-      &type_mp, &type_mp, &type_mp, 0 }  },
+      &type_mp, &type_mp, &type_mp, 0 }         },
   { 0, 0, { 0 } }
 };
 
index 9bb4a5b62af0ed4c64bbda69e6cf93bb1e25951a..c4117bcebf42c91ccfce625087d56438c338f268 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -168,7 +168,7 @@ static int verify(dstr *v)
       fputs("\ns = ", stderr); mp_writefile(m, stderr, 16);
       mp_drop(m);
     }
-      
+
     fputc('\n', stderr);
     ok = 0;
   }
index dbab2dfcc4bdf64cc94a70fe29de1c0517bfbe04..ec40b27053fcad5e7e4547d3c47866451da29b17 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/dsa.h b/dsa.h
index 48ed07d91a6bd51123dad12d46dacf54cb5e85aa..3cd65f5e628fccbe8fad7fcb53ca1cba89a75dcb 100644 (file)
--- a/dsa.h
+++ b/dsa.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -60,7 +60,7 @@
 #ifndef CATACOMB_MP_H
 #  include "mp.h"
 #endif
-    
+
 #ifndef CATACOMB_PGEN_H
 #  include "pgen.h"
 #endif
index ccb2c464fb1af1507ce79de9f6dbfe6d2e90c9f8..5372b3f8ee5bd5176fe24264f6d1e378c4d85587 100644 (file)
--- a/dsarand.c
+++ b/dsarand.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 2d4ea09dd628ae028fb7b7d4ec3821a5287b42a4..bc5e700680cdbbd8ac0104fea331bc0847a0e71a 100644 (file)
--- a/dsarand.h
+++ b/dsarand.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/dsig.1 b/dsig.1
index 10fe6c6bd531d9ed74df42b20ef0809785f86a37..edd10365f80f948490342fb594685aee966abf0f 100644 (file)
--- a/dsig.1
+++ b/dsig.1
@@ -123,7 +123,7 @@ for a list of supported signature algorithms.
 .B rsapkcs1
 This is almost the same as the RSASSA-PKCS1-v1_5 algorithm described in
 RFC3447; the difference is that the hash is left bare rather than being
-wrapped in a DER-encoded 
+wrapped in a DER-encoded
 .B DigestInfo
 structure.  This doesn't affect security since the key can only be used
 with the one hash function anyway, and dropping the DER wrapping permits
@@ -148,7 +148,7 @@ command (see
 to generate the key.
 .TP
 .B dsa
-This is the DSA algorithm described in FIPS180-1 and FIPS180-2.    Use the
+This is the DSA algorithm described in FIPS180-1 and FIPS180-2.  Use the
 .B dsa
 algorithm of the
 .B key add
@@ -210,7 +210,7 @@ the default hash function is
 .BR sha .
 .hP \*o
 For
-.BR kcdsa 
+.BR kcdsa
 and
 .BR eckcdsa ,
 the default hash function is
@@ -380,7 +380,7 @@ An error prevented verification.
 .TP
 .BI "BAD " reason
 The signature is bad: some file had the wrong hash or the signature is
-invalid. 
+invalid.
 .TP
 .BI "WARN " reason
 .B dsig
@@ -390,7 +390,7 @@ encountered a situation which may or may not invalidate the signature.
 The signature verified correctly.
 .TP
 .BI "INFO " note
-Any other information. 
+Any other information.
 .PP
 The information written at the various verbosity levels is as follows.
 .hP 0.
@@ -482,7 +482,7 @@ command.  This block need not appear.
 .TP
 .BR "date: " (3)
 The date the signature was made.  In a text file, this has the form
-.IB yyyy-mm-dd 
+.IB yyyy-mm-dd
 .IB hh:mm:ss
 .IR timezone ;
 in a binary file, it's a 64-bit integer representing the POSIX time.
diff --git a/dsig.c b/dsig.c
index bcfe51db5eff302e3aa6ed20515ff2aaa66ea442..c379e942d3b920aa54bbc5b755f240f3a6518cea 100644 (file)
--- a/dsig.c
+++ b/dsig.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -585,7 +585,7 @@ static void bemit(block *b, FILE *fp, ghash *h, unsigned bin)
   if (fp && !bin)
     bwrite(b, fp);
 }
-    
+
 /*----- Static variables --------------------------------------------------*/
 
 static const char *keyring = "keyring";
@@ -645,7 +645,7 @@ static void fhex(FILE *fp, const void *p, size_t sz)
     if (!sz)
       break;
   }
-}    
+}
 
 /*----- Signature generation ----------------------------------------------*/
 
@@ -771,7 +771,7 @@ static int sign(int argc, char *argv[])
   binit(&b); b.tag = T_IDENT;
   dstr_putf(&b.d, "%s, Catacomb version " VERSION, QUIS);
   bemit(&b, ofp, 0, f & f_bin);
-  
+
   breset(&b); b.tag = T_KEYID; b.k = k->id;
   bemit(&b, ofp, 0, f & f_bin);
 
index e84252c4d95114c7d30e636f6b89aa26c3045270..8ba7354cc8a5a44d994667ae1e5426942c0ec11d 100644 (file)
--- a/ec-bin.c
+++ b/ec-bin.c
@@ -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,
@@ -61,7 +61,7 @@ static ec *ecfind(ec_curve *c, ec *d, mp *x)
 {
   field *f = c->f;
   mp *y, *u, *v;
-  
+
   if (F_ZEROP(f, x))
     y = F_SQRT(f, MP_NEW, c->b);
   else {
@@ -180,7 +180,7 @@ static ec *ecadd(ec_curve *c, ec *d, const ec *a, const ec *b)
       dx = F_ADD(f, dx, dx, c->a);     /* %$a + \lambda^2 + \lambda$% */
       dx = F_ADD(f, dx, dx, a->x);    /* %$a + \lambda^2 + \lambda + x_0$% */
       dx = F_ADD(f, dx, dx, b->x);
-                           /* %$x' = a + \lambda^2 + \lambda + x_0 + x_1$% */
+                          /* %$x' = a + \lambda^2 + \lambda + x_0 + x_1$% */
     } else if (!MP_EQ(a->y, b->y) || F_ZEROP(f, a->x)) {
       EC_SETINF(d);
       return (d);
@@ -194,7 +194,7 @@ static ec *ecadd(ec_curve *c, ec *d, const ec *a, const ec *b)
       dx = F_ADD(f, dx, dx, c->a);    /* %$x' = a + \lambda^2 + \lambda$% */
       dy = MP_NEW;
     }
-      
+
     dy = F_ADD(f, dy, a->x, dx);       /* %$ x + x' $% */
     dy = F_MUL(f, dy, dy, lambda);     /* %$ (x + x') \lambda$% */
     dy = F_ADD(f, dy, dy, a->y);       /* %$ (x + x') \lambda + y$% */
@@ -311,7 +311,7 @@ static int ecprojcheck(ec_curve *c, const ec *p)
 {
   ec t = EC_INIT;
   int rc;
-  
+
   c->ops->fix(c, &t, p);
   rc = eccheck(c, &t);
   EC_DESTROY(&t);
@@ -417,7 +417,7 @@ int main(int argc, char *argv[])
   g.x = MP(0x0311103c17167564ace77ccb09c681f886ba54ee8);
   g.y = MP(0x333ac13c6447f2e67613bf7009daf98c87bb50c7f);
 
-  for (i = 0; i < n; i++) { 
+  for (i = 0; i < n; i++) {
     ec_mul(c, &d, &g, r);
     if (EC_ATINF(&d)) {
       fprintf(stderr, "zero too early\n");
index c367bda1e8c7fbdc7faa1db6a556f92dcb52b7c0..2c9a80023db085d9e45326ea8e55c1bd366c441f 100644 (file)
--- a/ec-exp.c
+++ b/ec-exp.c
@@ -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,
index fc08fe41d351f1fea7f20dbb665a2864b7f660f9..8ee3154330ee39d2659361aa214e1a5bc410b468 100644 (file)
--- a/ec-exp.h
+++ b/ec-exp.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -42,7 +42,7 @@
   (d).x = MP_COPY((p).x);                                              \
   (d).y = MP_COPY((p).y);                                              \
   (d).z = (p).z ? MP_COPY((p).z) : MP_NEW;                             \
-} while (0)  
+} while (0)
 #define EXP_DROP(x) EC_DESTROY(&(x))
 
 #define EXP_MUL(a, x) EC_ADD(c, &(a), &(a), &(x))
index cce9d005b81be8c39177466382991aa9782d7771..81bfb6c10cafe74400116efe01acca6832590792 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,
@@ -54,7 +54,7 @@ const key_fetchdef ec_privfetch[] = {
   { "curve",   offsetof(ec_pub, cstr),         KENC_STRING,    0 },
   { "p",       offsetof(ec_pub, p),            KENC_EC,        0 },
   { "private", 0,                              KENC_STRUCT,    priv },
-  { 0,         0,                              0,              0 }  
+  { 0,         0,                              0,              0 }
 };
 
 /* --- @ec_paramfree@, @ec_pubfree@, @ec_privfree@ --- *
index 2bb0427dffc03dddf4b02748f6e640d439f99e2e..fb2b3063924abb737534848a0ea5c7ea08319852 100644 (file)
--- a/ec-guts.h
+++ b/ec-guts.h
@@ -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,
index 2228381324608a5cc6059ca7919eee770dcf86f3..474691b39437b24b881a5858f4b124ef6e85af0b 100644 (file)
--- a/ec-info.c
+++ b/ec-info.c
@@ -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,
@@ -239,7 +239,7 @@ int ec_infoparse(qd_parse *qd, ec_info *ei)
       ec_infofromdata(ei, ee->data);
       goto found;
     }
-  }  
+  }
 
   if ((c = ec_curveparse(qd)) == 0) goto fail;
   qd_delim(qd, ';'); if (!ec_ptparse(qd, &g)) goto fail;
index 7e25319b9e0b74097618b229a3025077eec7efdf..60db9ff15ee3dbe2e3cb1716b89d5c7395809111 100644 (file)
--- a/ec-keys.h
+++ b/ec-keys.h
@@ -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,
index dc299fb056e6bbd659180d1bd08366dc77246a4e..52815e4d38f622327867dc78a03fb921379df301 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -278,7 +278,7 @@ static ec *ecprojadd(ec_curve *c, ec *d, const ec *a, const ec *b)
     q = F_MUL(f, MP_NEW, p, u);                /* %$t w^2$% */
     u = F_MUL(f, u, p, w);             /* %$w^3$% */
     p = F_MUL(f, p, u, s);             /* %$m w^3$% */
-    
+
     dx = F_SQR(f, u, r);               /* %$r^2$% */
     dx = F_SUB(f, dx, dx, q);          /* %$x' = r^2 - t w^2$% */
 
@@ -323,7 +323,7 @@ static int ecprojcheck(ec_curve *c, const ec *p)
 {
   ec t = EC_INIT;
   int rc;
-  
+
   c->ops->fix(c, &t, p);
   rc = eccheck(c, &t);
   EC_DESTROY(&t);
@@ -418,11 +418,11 @@ int main(int argc, char *argv[])
 
   f = field_niceprime(p);
   c = ec_primeproj(f, a, b);
-  
+
   g.x = MP(0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7);
   g.y = MP(0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f);
 
-  for (i = 0; i < n; i++) { 
+  for (i = 0; i < n; i++) {
     ec_mul(c, &d, &g, r);
     if (EC_ATINF(&d)) {
       fprintf(stderr, "zero too early\n");
index 4ec9f282f790774e64a194f2a560ed63bff777f9..738827fdbed89ebea08311b9fa2f19a7df374607 100644 (file)
--- a/ec-raw.c
+++ b/ec-raw.c
@@ -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,
index 822ab5386ee7bcca62f93c6a4828773538fe4033..083ca932b2a1119d95d0f1fe1fa3ec7740bd5bce 100644 (file)
--- a/ec-raw.h
+++ b/ec-raw.h
@@ -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,
index 6b24357a4e67ddbba8458054083526b8d416a4cd..ad2af9087e04588c9350a1bb6c22c87bd1eaad1b 100644 (file)
--- a/ec-test.c
+++ b/ec-test.c
@@ -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,
@@ -177,7 +177,7 @@ static void ecdodump(ec *a, FILE *fp)
   if (EC_ATINF(a))
     fputs("inf", fp);
   else {
-    fputs("0x", fp); 
+    fputs("0x", fp);
     mp_writefile(a->x, fp, 16);
     fputs(", 0x", fp);
     mp_writefile(a->y, fp, 16);
@@ -267,9 +267,9 @@ static int vcheck(dstr v[])
   if (r != c) {
     fprintf(stderr, "check failed");
     fprintf(stderr, "\ncurve = "); type_ecurve.dump(v, stderr);
-    fprintf(stderr, "\n    a = "); ecdodump(a, stderr);
-    fprintf(stderr, "\n    r = %d", r);
-    fprintf(stderr, "\n    c = %d", c); 
+    fprintf(stderr, "\n           a = "); ecdodump(a, stderr);
+    fprintf(stderr, "\n           r = %d", r);
+    fprintf(stderr, "\n           c = %d", c);
     fprintf(stderr, "\n");
     ok = 0;
   }
@@ -290,10 +290,10 @@ static int vmul(dstr v[])
   if (!EC_EQ(r, &c)) {
     fprintf(stderr, "mul failed");
     fprintf(stderr, "\ncurve = "); type_ecurve.dump(v, stderr);
-    fprintf(stderr, "\n    a = "); ecdodump(a, stderr);
-    fprintf(stderr, "\n    n = "); mp_writefile(n, stderr, 10);
-    fprintf(stderr, "\n    r = "); ecdodump(r, stderr);
-    fprintf(stderr, "\n    c = "); ecdodump(&c, stderr);
+    fprintf(stderr, "\n           a = "); ecdodump(a, stderr);
+    fprintf(stderr, "\n           n = "); mp_writefile(n, stderr, 10);
+    fprintf(stderr, "\n           r = "); ecdodump(r, stderr);
+    fprintf(stderr, "\n           c = "); ecdodump(&c, stderr);
     fprintf(stderr, "\n");
     ok = 0;
   }
@@ -313,9 +313,9 @@ static int vfind(dstr v[])
   if (!EC_EQ(r, &c)) {
     fprintf(stderr, "find failed");
     fprintf(stderr, "\ncurve = "); type_ecurve.dump(v, stderr);
-    fprintf(stderr, "\n    x = "); mp_writefile(x, stderr, 16);
-    fprintf(stderr, "\n    r = "); ecdodump(r, stderr);
-    fprintf(stderr, "\n    c = "); ecdodump(&c, stderr);
+    fprintf(stderr, "\n           x = "); mp_writefile(x, stderr, 16);
+    fprintf(stderr, "\n           r = "); ecdodump(r, stderr);
+    fprintf(stderr, "\n           c = "); ecdodump(&c, stderr);
     fprintf(stderr, "\n");
     ok = 0;
   }
index dfc8a05f86aadfa854a6cb79c6ee05e91c9309b2..18e4b253284da11158c69868615f96de0c4f8f7a 100644 (file)
--- a/ec-test.h
+++ b/ec-test.h
@@ -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,
diff --git a/ec.c b/ec.c
index e5e1c875bca64d96b09acd804d3d44ca02ae8e21..cad7a56464dba60db701929453d75d4170e041da 100644 (file)
--- a/ec.c
+++ b/ec.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -418,7 +418,7 @@ ec *ec_rand(ec_curve *c, ec *d, grand *r)
   do x = F_RAND(c->f, x, r); while (!EC_FIND(c, d, x));
   mp_drop(x);
   if (grand_range(r, 2)) EC_NEG(c, d, d);
-  return (EC_OUT(c, d, d));    
+  return (EC_OUT(c, d, d));
 }
 
 /*----- That's all, folks -------------------------------------------------*/
diff --git a/ec.h b/ec.h
index beb412a2fcb3153e9abaae2e1f344e195b2ec911..ac0b8fc10dcc5004e4d1bb362ed261815bb58d6c 100644 (file)
--- a/ec.h
+++ b/ec.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 733331013b2b4ad74acca81e3668a31e5d3a24e7..08a25f6dc8afaedb7015419c0c5b00145a00d613 100644 (file)
--- a/ecb-def.h
+++ b/ecb-def.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -431,22 +431,22 @@ int main(void)                                                            \
     if (memcmp(pt, text, sizeof(text)) == 0) {                         \
       done++;                                                          \
       if (sizeof(text) < 40 || done % 8 == 0)                          \
-        fputc('.', stdout);                                            \
+       fputc('.', stdout);                                             \
       if (done % 480 == 0)                                             \
-        fputs("\n\t", stdout);                                         \
+       fputs("\n\t", stdout);                                          \
       fflush(stdout);                                                  \
     } else {                                                           \
       printf("\nError (sz = %lu)\n", (unsigned long)sz);               \
       status = 1;                                                      \
       printf("\tplaintext      = "); hexdump(text, sz);                        \
-        printf(", "); hexdump(text + sz, rest);                                \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(text + sz, rest);                         \
+       fputc('\n', stdout);                                            \
       printf("\tciphertext     = "); hexdump(ct, sz);                  \
-        printf(", "); hexdump(ct + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(ct + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       printf("\trecovered text = "); hexdump(pt, sz);                  \
-        printf(", "); hexdump(pt + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(pt + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       fputc('\n', stdout);                                             \
     }                                                                  \
   next:                                                                        \
diff --git a/ecb.h b/ecb.h
index a434f7dd5ea4bd9e27484135efdece5a0eeaef84..ed39310f7bef38d312197108d998a9fa5e8dc3ea 100644 (file)
--- a/ecb.h
+++ b/ecb.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/ectab.h b/ectab.h
index 734bc071a16a0118500c6a0bef65f49b49ab3b7f..7e6161c7e1358e1100f8c9e887276fec1a6be1a7 100644 (file)
--- a/ectab.h
+++ b/ectab.h
@@ -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,
@@ -35,7 +35,7 @@
 #endif
 
 /*----- Header files ------------------------------------------------------*/
-    
+
 #include "ec.h"
 
 /*----- Data structures ---------------------------------------------------*/
index 7520b032a206cf56ef1e6213bde9e7f3c93796e9..0a8899e1da070a63c0efd11baaaef8188fc25def 100644 (file)
--- a/ectab.in
+++ b/ectab.in
@@ -341,7 +341,7 @@ curve ansi-c2onb191v1 binnorm
   b 0x54678621b190cfce282ade219d5b3a065e3f4b3ffdebb29b
   r 0x4000000000000000000000009cf2d6e3901dac4c32eec65d
   h 2
-  gx 0x5a2c69a32e8638e51ccefaad05350a978457cb5fb6df994a 
+  gx 0x5a2c69a32e8638e51ccefaad05350a978457cb5fb6df994a
   gy 0x0f32fe0fa0e902f19b17d363c269f4f5cfe8087618569954
 
 # ansi-c2pnb208v1 has an unacceptable cofactor; and 208 isn't prime anyway
@@ -518,7 +518,7 @@ curve nist-b233n binnorm
   r 0x01000000000000000000000000000013e974e72f8a6922031d2603cfe0d7
   h 2
   gx 0x18b863524b3cdfefb94f2784e0b116faac54404bc9162a363bab84a14c5
-  gy 0x04925df77bd8b8ff1a5ff519417822bfedf2bbd752644292c98c7af6e02 
+  gy 0x04925df77bd8b8ff1a5ff519417822bfedf2bbd752644292c98c7af6e02
 
 curve nist-k283n binnorm
   p 0x800000000000000000000000000000000000000000000000000000000000000000010a1
@@ -530,7 +530,7 @@ curve nist-k283n binnorm
   gx 0x3ab9593f8db09fc188f1d7c4ac9fcc3e57fcd3bdb15024b212c70229de5fcd92eb0ea60
   gy 0x2118c4755e7345cd8f603ef93b98b106fe8854ffeb9a3b304634cc83a0e759f0c2686b1
 curve nist-b283n binnorm
-  p 0x800000000000000000000000000000000000000000000000000000000000000000010a1 
+  p 0x800000000000000000000000000000000000000000000000000000000000000000010a1
   beta 0x31e0ed791c3282dc5624a720818049d053e8c7ab8663792bc1d792eba9867fc7b317a99
   a 0x7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
   b 0x157261b894739fb5a13503f55f0b3f10c5601166633102201138cc180c0206bdafbc951
diff --git a/exp.c b/exp.c
index 64f0e9e1b822f8c18e8a9d3a8f88abfb0f1f6c21..4327129a053c6e8bf4c16003386e1fd496003617 100644 (file)
--- a/exp.c
+++ b/exp.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -63,7 +63,7 @@ size_t exp_simulnext(exp_simul *e, size_t x)
   for (i = 0; i < e->n; i++) {
     x = (x << 1) | ((e->s[i].w >> (MPW_BITS - 1)) & 1u);
     e->s[i].w <<= 1;
-  }      
+  }
   e->b--;
   return (x);
 }
diff --git a/exp.h b/exp.h
index e729e8c6523f7d1c73a9555eafbf24d2aed69500..9ff6a240dd6063c5792907d48ce33051d53d4d7d 100644 (file)
--- a/exp.h
+++ b/exp.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -53,7 +53,7 @@ typedef struct exp_simulscan {
   mpw w;
   size_t len;
   const mpw *v;
-} exp_simulscan;  
+} exp_simulscan;
 
 typedef struct exp_simul {
   unsigned b;
index 2d2221c65567cf8cdda5d6884a9cef83a1990e3a..5f6a5276248def5bc1f0f1f7deccdd0b16c90eeb 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,
index 4c9deea92abb5c2cf8741993f6e9961e270edd02..83b9ca5fcbd59508f0275ac00d6905b9e74791b1 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,
index 422c386ba033c0070a21a5f23491b9df04feb48e..31638f56caebe0c595e0cea507a0622746fe01a2 100644 (file)
--- a/f-prime.c
+++ b/f-prime.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 396e6e19f60cd722dfef4d37c7c9dbbda81eb6ac..31316a785ea31f38ff2472f065c8e2be0c7338fb 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 4196e98b98ada535ebc41359942a2c96a37fd789..c926a1a526518e97339b02ee6e24001fe515faa2 100644 (file)
--- a/fibrand.c
+++ b/fibrand.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 5a75542c2d9b445483cd8ef4c82191f0ea89e036..14d2aec43fc4b92ae64558e1cb9709e83393adc6 100644 (file)
--- a/fibrand.h
+++ b/fibrand.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index fe3e8ce08583fa47e149ac324dc0c3f89aae0d8e..628fa49ba20958c93b5705d4d9856a75c9b09096 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,
index 5a32356f262efcb49000ab30cdbe592268de56cf..928a893f0f934bc1e88d855ae713431e83802642 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,
index ded616c9e1cf55f4898acb76be4b2308dd619b97..fc7ce50bdef0adef8d16096d9e68fbaf94d5d85b 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,
@@ -78,7 +78,7 @@ typedef struct fctx_prime {
 typedef struct fctx_niceprime {
   field f;
   mpreduce r;
-} fctx_niceprime;  
+} fctx_niceprime;
 
 typedef struct fctx_binpoly {
   field f;
index 5f9092a9ca3121ccf4c171866530f6299b251232..cbbd24600440b4a8890131ba79559ed819320d5c 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,
@@ -72,7 +72,7 @@ field *field_parse(qd_parse *qd)
       if ((m = qd_getmp(qd)) == 0) goto done;
       qd_delim(qd, ',');
       if ((b = qd_getmp(qd)) == 0) goto done;
-      f = field_binnorm(m, b);      
+      f = field_binnorm(m, b);
       break;
     default:
       goto done;
diff --git a/field.c b/field.c
index c7bbf484b9386f0e7b701962c74db6b5f18cd526..8fb1ad6ff1f4e3bece640c0381ecaff2f27b7284 100644 (file)
--- a/field.c
+++ b/field.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/field.h b/field.h
index c2ad26e1b37a8800c56937d4afa00513dae4d08c..6085716f29df0fe38b67abd4037863eca43f93c4 100644 (file)
--- a/field.h
+++ b/field.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -253,7 +253,7 @@ extern field *field_binnorm(mp */*p*/, mp */*beta*/);
  *               * `prime', `niceprime', `binpoly', or `binnorm'
  *               * an optional `:'
  *               * the field modulus
- *               * for `binnorm', an optional `,' and the beta value
+ *               * for `binnorm', an optional `,' and the beta value
  */
 
 extern field *field_parse(qd_parse */*qd*/);
index c780a33c086b752d10b69d1312bedeb29bef5b73..45638829a9f64530cee4dfb2a6f5c7b9dc8c25a1 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -149,7 +149,7 @@ static unsigned runs(const octet *p)
       }
     }
   }
-  
+
   if (r >= 26)
     rc |= FIPSTEST_LONGRUNS;
   if (r > 6)
@@ -166,7 +166,7 @@ static unsigned runs(const octet *p)
        111 > f[0][5] || f[0][5] >  201 ||  111 > f[1][5] || f[1][5] >  201)
     rc |= FIPSTEST_RUNS;
 
-  return (rc);      
+  return (rc);
 }
 
 /* --- @fipstest@ --- *
index 5bdd8dc040482b3966c995ab71c04342cdfe5bd1..1db305c919d0bd4cfde1b1a9ac2f872afc473526 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/g-bin.c b/g-bin.c
index 4718178695d1eae3d8c84a71ff223b58d84b58c3..bdae80a253a142b609f62fb4c6add47822d8aca6 100644 (file)
--- a/g-bin.c
+++ b/g-bin.c
@@ -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,
diff --git a/g-ec.c b/g-ec.c
index 0b5502044db6a50c38aa639f7ab58dec05a0b90b..4679742627b530347e4fb1da3538705ad0283625 100644 (file)
--- a/g-ec.c
+++ b/g-ec.c
@@ -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,
@@ -90,7 +90,7 @@ static void gexp(group *gg, ec *d, ec *x, mp *n)
 
 static void gmexp(group *gg, ec *d, const group_expfactor *f, size_t n) {
   gctx_ec *g = (gctx_ec *)gg; size_t i;
-  ec_mulfactor *ff = xmalloc(n * sizeof(ec_mulfactor)); 
+  ec_mulfactor *ff = xmalloc(n * sizeof(ec_mulfactor));
   for (i = 0; i < n; i++) { ff[i].base = *f[i].base; ff[i].exp = f[i].exp; }
   ec_immul(g->ei.c, d, ff, n); xfree(ff);
 }
@@ -148,7 +148,7 @@ static int gfromec(group *gg, ec *d, const ec *x) {
   rc = EC_CHECK(g->ei.c, &t); if (!rc) EC_COPY(d, &t); EC_DESTROY(&t);
   return (rc);
 }
-  
+
 static int gtobuf(group *gg, buf *b, ec *x) {
   gctx_ec *g = (gctx_ec *)gg; ec t = EC_INIT; int rc;
   EC_OUT(g->ei.c, &t, x); rc = buf_putec(b, &t); EC_DESTROY(&t); return (rc);
index a33634d40069a4b5cd012ed3c28fce8583936f5b..52301110dd19b850702b16f380c144e9b6989279 100644 (file)
--- a/g-prime.c
+++ b/g-prime.c
@@ -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,
index 17df4c4a39f0089753064bf54413ec177711c433..42faad4b14ca6a398da05a30e30760198e03a182 100644 (file)
--- a/gcipher.h
+++ b/gcipher.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/gdsa.c b/gdsa.c
index f60fb2d7f576bab1abfe786e6b7399f5d78fb4a3..10f6b6d5826c15e67bd0ad29e9f2ac84364b2e24 100644 (file)
--- a/gdsa.c
+++ b/gdsa.c
@@ -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,
@@ -57,7 +57,7 @@ ghash *gdsa_beginhash(const gdsa *c) { return (GH_INIT(c->h)); }
  * Returns:    ---
  *
  * Use:                Does any final thing that DSA wants to do when hashing a
- *             message.  (Actually, there's nothing.)  The hashing context
+ *             message.  (Actually, there's nothing.)  The hashing context
  *             isn't finalized.
  */
 
@@ -167,7 +167,7 @@ static void showge(group *g, const char *p, ge *x) {
 }
 
 static void showmp(const char *p, mp *x, int r) {
-  fprintf(stderr, "*** %s = ", p); mp_writefile(x, stderr, r); 
+  fprintf(stderr, "*** %s = ", p); mp_writefile(x, stderr, r);
   putc('\n', stderr);
 }
 
diff --git a/gdsa.h b/gdsa.h
index 660a465589a0563ce3f126c5dd6ce9bd4eea2871..f673b700f6424d33f3a0096820f1b4874b1ff1b3 100644 (file)
--- a/gdsa.h
+++ b/gdsa.h
@@ -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,
@@ -87,7 +87,7 @@ extern ghash *gdsa_beginhash(const gdsa */*c*/);
  * Returns:    ---
  *
  * Use:                Does any final thing that DSA wants to do when hashing a
- *             message.  (Actually, there's nothing.)  The hashing context
+ *             message.  (Actually, there's nothing.)  The hashing context
  *             isn't finalized.
  */
 
index fc2d319f18ffdfcd292324395c832c24c1057fbb..6bd0e986fa27d1cec3c61343c5d97ddaba8714af 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2006 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,
@@ -249,7 +249,7 @@ extern mp mp_limits[];\n\
 \n",
        stdout);
   dogen();
-  
+
   for (i = 0; tab[i].name; i++) {
     if (tab[i].min) {
       printf("#define MP_%s_MIN (&mp_limits[%d])\n",
index 93e041b7b72a4aea20863f607751c74775ecc2bc..2d80d07bb46e280d46fe4af683ed9d0c91c48830 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index eabbff8372dcdf05ebf2a12d9b58f98930325e02..5a7b3f2960d0165fb5f23016035ca7d69fef6e84 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,
@@ -211,8 +211,8 @@ static int verify(const char *op, mp *expect, mp *result, mp *a, mp *b)
 {
   if (!MP_EQ(expect, result)) {
     fprintf(stderr, "\n*** %s failed", op);
-    fputs("\n*** a      = ", stderr); mp_writefile(a, stderr, 16);
-    fputs("\n*** b      = ", stderr); mp_writefile(b, stderr, 16);
+    fputs("\n*** a     = ", stderr); mp_writefile(a, stderr, 16);
+    fputs("\n*** b     = ", stderr); mp_writefile(b, stderr, 16);
     fputs("\n*** result = ", stderr); mp_writefile(result, stderr, 16);
     fputs("\n*** expect = ", stderr); mp_writefile(expect, stderr, 16);
     fputc('\n', stderr);
@@ -278,9 +278,9 @@ static int tirred(dstr *v)
   if (r != c) {
     ok = 0;
     fprintf(stderr, "\n*** irred failed");
-    fputs("\n*** a      = ", stderr); mp_writefile(a, stderr, 16);
-    fprintf(stderr, "\n*** r      = %d\n", r);
-    fprintf(stderr, "*** c      = %d\n", c);
+    fputs("\n*** a     = ", stderr); mp_writefile(a, stderr, 16);
+    fprintf(stderr, "\n*** r     = %d\n", r);
+    fprintf(stderr, "*** c     = %d\n", c);
   }
   mp_drop(a);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
index 61e2836a04bbd001d463d925f18795a91d3253dd..92c151fca93f1794e34fcba6ea975c1d8ed32ff5 100644 (file)
--- a/gf-exp.c
+++ b/gf-exp.c
@@ -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,
index 5130bd532717768b7f5bfbcecae7d817ccd9ba32..85090c728b28b066afd04218c892a7a5a21e95f1 100644 (file)
--- a/gf-exp.h
+++ b/gf-exp.h
@@ -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,
index 048d29d1a7b352c975fab82ba926f40d809d6b9c..9b5402b4368848856adbf3bb65a1d1487761fdee 100644 (file)
--- a/gf-gcd.c
+++ b/gf-gcd.c
@@ -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,
@@ -205,8 +205,8 @@ static int gcd(dstr *v)
   gf_gcd(&gg, &xx, &yy, a, b);
   if (!MP_EQ(x, xx)) {
     fputs("\n*** gf_gcd(x) failed", stderr);
-    fputs("\na      = ", stderr); mp_writefile(a, stderr, 16);
-    fputs("\nb      = ", stderr); mp_writefile(b, stderr, 16);
+    fputs("\na     = ", stderr); mp_writefile(a, stderr, 16);
+    fputs("\nb     = ", stderr); mp_writefile(b, stderr, 16);
     fputs("\nexpect = ", stderr); mp_writefile(x, stderr, 16);
     fputs("\nresult = ", stderr); mp_writefile(xx, stderr, 16);
     fputc('\n', stderr);
@@ -214,8 +214,8 @@ static int gcd(dstr *v)
   }
   if (!MP_EQ(y, yy)) {
     fputs("\n*** gf_gcd(y) failed", stderr);
-    fputs("\na      = ", stderr); mp_writefile(a, stderr, 16);
-    fputs("\nb      = ", stderr); mp_writefile(b, stderr, 16);
+    fputs("\na     = ", stderr); mp_writefile(a, stderr, 16);
+    fputs("\nb     = ", stderr); mp_writefile(b, stderr, 16);
     fputs("\nexpect = ", stderr); mp_writefile(y, stderr, 16);
     fputs("\nresult = ", stderr); mp_writefile(yy, stderr, 16);
     fputc('\n', stderr);
@@ -234,8 +234,8 @@ static int gcd(dstr *v)
 
   if (!MP_EQ(g, gg)) {
     fputs("\n*** gf_gcd(gcd) failed", stderr);
-    fputs("\na      = ", stderr); mp_writefile(a, stderr, 16);
-    fputs("\nb      = ", stderr); mp_writefile(b, stderr, 16);
+    fputs("\na     = ", stderr); mp_writefile(a, stderr, 16);
+    fputs("\nb     = ", stderr); mp_writefile(b, stderr, 16);
     fputs("\nexpect = ", stderr); mp_writefile(g, stderr, 16);
     fputs("\nresult = ", stderr); mp_writefile(gg, stderr, 16);
     fputc('\n', stderr);
diff --git a/gf.h b/gf.h
index eea204fd2c2d831e8e1081182c42e49eddbd355f..8de8231998551945975200dc7642d31c487d2f2f 100644 (file)
--- a/gf.h
+++ b/gf.h
@@ -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,
diff --git a/gfn.c b/gfn.c
index b03df25a1da46939999d660675e086f6b714d885..8bfc44176e8314ddbad8a67881a38633ee71d137 100644 (file)
--- a/gfn.c
+++ b/gfn.c
@@ -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,
diff --git a/gfn.h b/gfn.h
index 94a74c5609806537df8e87a8f1d42d3d73cc40a3..dcb0db0517faf41904c8e95d5b0724fc82ea1cc1 100644 (file)
--- a/gfn.h
+++ b/gfn.h
@@ -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,
index ae13dcf33507e5f189f1982cdd19d57b0e1be899..d4aaf0a2088cdad2185fcb7af1c25f8de2fea93c 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,
index 01ca678e01cd025d457b11b96518b8146ef3bc8c..f9b92c8f006616ae67452563339e8169d525a3bb 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,
@@ -61,10 +61,10 @@ DA_DECL(instr_v, gfreduce_instr);
  * words to demonstrate what I'm talking about.
  *
  *  xxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx
- *                  001ppppp pppppppp pppppppp pppppppp
- *                    |<rp>|
- *                    |<------------ bp ------------->|
- *                  |<------------ nw --------------->|
+ *                 001ppppp pppppppp pppppppp pppppppp
+ *                   |<rp>|
+ *                   |<------------ bp ------------->|
+ *                 |<------------ nw --------------->|
  *
  * The trick of taking whole words off of @X@ stops working when there are
  * only @nw@ words left.  Then we have to mask off the bottom bits of @w@
@@ -438,11 +438,11 @@ mp *gfreduce_quadsolve(gfreduce *r, mp *d, mp *x)
 /* --- @gfreduce_exp@ --- *
  *
  * Arguments:  @gfreduce *gr@ = pointer to reduction context
- *              @mp *d@ = fake destination
- *              @mp *a@ = base
- *              @mp *e@ = exponent
+ *             @mp *d@ = fake destination
+ *             @mp *a@ = base
+ *             @mp *e@ = exponent
  *
- * Returns:     Result, %$a^e \bmod m$%.
+ * Returns:    Result, %$a^e \bmod m$%.
  */
 
 mp *gfreduce_exp(gfreduce *gr, mp *d, mp *a, mp *e)
@@ -574,7 +574,7 @@ static int vtr(dstr *v)
     ok = 0;
   }
   gfreduce_destroy(&rr);
-  mp_drop(p); mp_drop(x); 
+  mp_drop(p); mp_drop(x);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
   return (ok);
 }
index ec343b45e14a4a6f74ad5cf8f123767e7e487fd7..1a5685ccc51387c365bbf1f35502aeaf9a790efe 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,
@@ -160,11 +160,11 @@ extern mp *gfreduce_quadsolve(gfreduce */*r*/, mp */*d*/, mp */*x*/);
 /* --- @gfreduce_exp@ --- *
  *
  * Arguments:  @gfreduce *gr@ = pointer to reduction context
- *              @mp *d@ = fake destination
- *              @mp *a@ = base
- *              @mp *e@ = exponent
+ *             @mp *d@ = fake destination
+ *             @mp *a@ = base
+ *             @mp *e@ = exponent
  *
- * Returns:     Result, %$a^e \bmod m$%.
+ * Returns:    Result, %$a^e \bmod m$%.
  */
 
 extern mp *gfreduce_exp(gfreduce */*gr*/, mp */*d*/, mp */*a*/, mp */*e*/);
index 7ce7244219830147214c4186eec9082c0f2b7e62..4cf57275da160420458e3f1e55590180a98c6dfe 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
     exit(EXIT_FAILURE);
   }
 
-  return (0);  
+  return (0);
 }
 
 /*----- That's all, folks -------------------------------------------------*/
index a7d7fb2d62f2013e34713176bcfabcd613f5c161..99b1223b28632e6a08fbd896cde62bc7a1953001 100644 (file)
--- a/gfshare.c
+++ b/gfshare.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 87c71a6591c0c0cf56f070b9d913d79d8568fc34..982675849d16a803c65115dc321ed889080df202 100644 (file)
--- a/gfshare.h
+++ b/gfshare.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 940243d38c9c1331a42ec03d8a673550f8895570..ec2bd6d0515684495aaaf22cd806570a07f0a248 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -174,21 +174,21 @@ void gfx_kmul(mpw *dv, mpw *dvl,
 #include <mLib/alloc.h>
 #include <mLib/testrig.h>
 
-#define ALLOC(v, vl, sz) do {                                           \
-  size_t _sz = (sz);                                                    \
-  mpw *_vv = xmalloc(MPWS(_sz));                                        \
-  mpw *_vvl = _vv + _sz;                                                \
-  (v) = _vv;                                                            \
-  (vl) = _vvl;                                                          \
+#define ALLOC(v, vl, sz) do {                                          \
+  size_t _sz = (sz);                                                   \
+  mpw *_vv = xmalloc(MPWS(_sz));                                       \
+  mpw *_vvl = _vv + _sz;                                               \
+  (v) = _vv;                                                           \
+  (vl) = _vvl;                                                         \
 } while (0)
 
-#define LOAD(v, vl, d) do {                                             \
-  const dstr *_d = (d);                                                 \
-  mpw *_v, *_vl;                                                        \
-  ALLOC(_v, _vl, MPW_RQ(_d->len));                                      \
-  mpx_loadb(_v, _vl, _d->buf, _d->len);                                 \
-  (v) = _v;                                                             \
-  (vl) = _vl;                                                           \
+#define LOAD(v, vl, d) do {                                            \
+  const dstr *_d = (d);                                                        \
+  mpw *_v, *_vl;                                                       \
+  ALLOC(_v, _vl, MPW_RQ(_d->len));                                     \
+  mpx_loadb(_v, _vl, _d->buf, _d->len);                                        \
+  (v) = _v;                                                            \
+  (vl) = _vl;                                                          \
 } while (0)
 
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
@@ -222,8 +222,8 @@ static int mul(dstr *v)
   gfx_kmul(d, dl, a, al, b, bl, s, sl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** mul failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
index 64f7a870c4abd40590b4eea020c7672e14646316..c0a0b369a403f3200a1bd4b6778e3083fd712ca4 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index c0396a04d5af4028a171e1272068308d85686b97..ef54cf1317a824251b7d1023e3869f30e593d8b6 100644 (file)
--- a/gfx-sqr.c
+++ b/gfx-sqr.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -111,7 +111,7 @@ void gfx_sqr(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl)
        return;
       aa >>= MPW_BITS;
       bb -= MPW_BITS;
-    }      
+    }
     a >>= 8;
     if (b <= 8)
       break;
@@ -164,7 +164,7 @@ void gfx_sqr(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl)
 } while (0)
 
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
-  
+
 static void dumpmp(const char *msg, const mpw *v, const mpw *vl)
 {
   fputs(msg, stderr);
@@ -188,7 +188,7 @@ static int vsqr(dstr *v)
   gfx_sqr(d, dl, a, al);
   if (!mpx_ueq(d, dl, b, bl)) {
     fprintf(stderr, "\n*** vsqr failed\n");
-    dumpmp("       a", a, al);
+    dumpmp("      a", a, al);
     dumpmp("expected", b, bl);
     dumpmp("  result", d, dl);
     ok = 0;
diff --git a/gfx.c b/gfx.c
index 40f639d406b0a80dae8ed4fb7cebc534c4bd2391..b1bdd51279855741a39ced9b371e5a943b5d69b8 100644 (file)
--- a/gfx.c
+++ b/gfx.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -186,12 +186,12 @@ void gfx_mul(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl,
 /* --- @gfx_div@ --- *
  *
  * Arguments:  @mpw *qv, *qvl@ = quotient vector base and limit
- *              @mpw *rv, *rvl@ = dividend/remainder vector base and limit
- *              @const mpw *dv, *dvl@ = divisor vector base and limit
+ *             @mpw *rv, *rvl@ = dividend/remainder vector base and limit
+ *             @const mpw *dv, *dvl@ = divisor vector base and limit
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Performs division on polynomials over %$\gf{2}$%.
+ * Use:                Performs division on polynomials over %$\gf{2}$%.
  */
 
 void gfx_div(mpw *qv, mpw *qvl, mpw *rv, mpw *rvl,
@@ -276,7 +276,7 @@ void gfx_div(mpw *qv, mpw *qvl, mpw *rv, mpw *rvl,
 } while (0)
 
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
-  
+
 static void dumpmp(const char *msg, const mpw *v, const mpw *vl)
 {
   fputs(msg, stderr);
@@ -302,8 +302,8 @@ static int vadd(dstr *v)
   gfx_add(d, dl, a, al, b, bl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** vadd failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -329,8 +329,8 @@ static int vmul(dstr *v)
   gfx_mul(d, dl, a, al, b, bl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** vmul failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
diff --git a/gfx.h b/gfx.h
index 2a325c118f0dbd361de0b2bf417ea4680a170cbc..91ea226b0b1dc7e37e372a3ab3223474fe5ed444 100644 (file)
--- a/gfx.h
+++ b/gfx.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -120,12 +120,12 @@ extern void gfx_sqr(mpw */*dv*/, mpw */*dvl*/,
 /* --- @gfx_div@ --- *
  *
  * Arguments:  @mpw *qv, *qvl@ = quotient vector base and limit
- *              @mpw *rv, *rvl@ = dividend/remainder vector base and limit
- *              @const mpw *dv, *dvl@ = divisor vector base and limit
+ *             @mpw *rv, *rvl@ = dividend/remainder vector base and limit
+ *             @const mpw *dv, *dvl@ = divisor vector base and limit
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Performs division on polynomials over %$\gf{2}$%.
+ * Use:                Performs division on polynomials over %$\gf{2}$%.
  */
 
 extern void gfx_div(mpw */*qv*/, mpw */*qvl*/, mpw */*rv*/, mpw */*rvl*/,
index 3f0266cd5175071d982c66fc3fea7cdfcf917969..6d20e5bdaddec644b44a2557b6bad8421342659f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/ghash.h b/ghash.h
index 4b8e6a3813a7b360583d736b628fc60b8df2bf4d..83b2287dd9d3897db4ff90343b6ef85756a0e6c8 100644 (file)
--- a/ghash.h
+++ b/ghash.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -101,7 +101,7 @@ typedef struct ghash_ops {
 #  define GH_HASHBUF64_B(h, p, sz) GH_HASHBUF_((h), (p), (sz), 64_B)
 #endif
 
-#define GH_HASHSTR_(h, p, W) do {                                      \
+#define GH_HASHSTR_(h, p, W) do {                                      \
   const char *p_ = (p); GH_HASHBUF_((h), p_, strlen(p_), W);           \
 } while (0)
 #define GH_HASHSTR8(h, p) GH_HASHSTR_((h), (p), 8)
index a67ab0d492247f1f8932b66db8734b3c92e8e707..ed2b37d581bfd2c7d11093b4e824e21147ff216e 100644 (file)
--- a/gkcdsa.c
+++ b/gkcdsa.c
@@ -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,
@@ -68,7 +68,7 @@ ghash *gkcdsa_beginhash(const gkcdsa *c)
  * Returns:    ---
  *
  * Use:                Does any final thing that KCDSA wants to do when hashing a
- *             message.  (Actually, there's nothing.)  The hashing context
+ *             message.  (Actually, there's nothing.)  The hashing context
  *             isn't finalized.
  */
 
@@ -209,7 +209,7 @@ static void showge(group *g, const char *p, ge *x) {
 }
 
 static void showmp(const char *p, mp *x, int r) {
-  fprintf(stderr, "*** %s = ", p); mp_writefile(x, stderr, r); 
+  fprintf(stderr, "*** %s = ", p); mp_writefile(x, stderr, r);
   putc('\n', stderr);
 }
 
index 5392158b44089ecbac5570700548543053ae51ce..9dc893e5e472ceafa4bda32a406eafaf7e0bb36d 100644 (file)
--- a/gkcdsa.h
+++ b/gkcdsa.h
@@ -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,
@@ -87,7 +87,7 @@ extern ghash *gkcdsa_beginhash(const gkcdsa */*c*/);
  * Returns:    ---
  *
  * Use:                Does any final thing that KCDSA wants to do when hashing a
- *             message.  (Actually, there's nothing.)  The hashing context
+ *             message.  (Actually, there's nothing.)  The hashing context
  *             isn't finalized.
  */
 
diff --git a/gmac.h b/gmac.h
index 9419bbf4f09bc00de4aa1331ca515013be8fdd7a..096c36d8c2183224b02cffa652b7788f69bc7e52 100644 (file)
--- a/gmac.h
+++ b/gmac.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/grand.c b/grand.c
index ca0492b6f0fb40eccffdfccf430fcb14a604217b..0fa4e163e6a7af08287d36b74142db1ce78c2ca7 100644 (file)
--- a/grand.c
+++ b/grand.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/grand.h b/grand.h
index 0446b2b725a86000ca9866aacdff3fab11eb0d15..49ac3b43809fdd167b791371763d0f92c36738ab 100644 (file)
--- a/grand.h
+++ b/grand.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -102,7 +102,7 @@ enum {
 
   /* --- Generator-specific operations --- */
 
-#define GRAND_SPECIFIC(ch) ((unsigned)(ch) << 8) 
+#define GRAND_SPECIFIC(ch) ((unsigned)(ch) << 8)
 };
 
 #define GRAND_BADOP assert(((void)"bad grand_misc op", 0))
index 9b46b32d764f1363a4aaf4a354b38fd1c663312e..f41b978572fb5949542592100609910380c25351 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,
index ca9cfb0e0d1485a341cbf15d97b7c0dd5e4bdc45..a70612559dc3d8723de72431a4aaf7c90d5098c5 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,
index 244bebf8cfe0a1d47479c73462226f5b3951df76..6f1c1c510ad98b43a0abb9b5a8aa68e84bcb495b 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,
index e0ae8bb9cff10c26c7c4e6eccea38f1952d307f8..212e26e36836bdbadf435fed6914325b7a5c570b 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,
index 8fbebe79c785f613c6d2e28be86fda4dcef2d38d..42ab20d20c809b3e77e642388f19f8097842ead9 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,
index 1c0d614fa7fbd9696b0c5625bb499fece86aad2e..f2c47f4d9d3d0fde51fc37d2973dfc4025ae031a 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2004 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Trivial IP Encryption (TrIPE).
  *
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * TrIPE 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 General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with TrIPE; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
index 12005e7e8b42db1bb26ea6eb26d1e20799afc687..77f48f73b936b405efda66f4286c351279637734 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,
index f1e585909972a23b6485418ccea68ed790629163..7753d97146d27cfbffc4e2aaf600db2eb24845c1 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,
index 851f91206f0f3900b06a618cacb82d8f66b1b112..5608ec0699d7a183fe463045aa2de1fc610282f7 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,
@@ -70,10 +70,10 @@ static void showec(const char *p, ec *q) {
     mp_writefile(q->x, stderr, 16); fputs(", ", stderr);
     mp_writefile(q->x, stderr, 16); putchar('\n');
   }
-}  
+}
 
 static void showmp(const char *p, mp *x, int r) {
-  fprintf(stderr, "*** %s = ", p); mp_writefile(x, stderr, r); 
+  fprintf(stderr, "*** %s = ", p); mp_writefile(x, stderr, r);
   putc('\n', stderr);
 }
 
diff --git a/group.h b/group.h
index 5ea7786f5483d13c734779a339d0f17c990371af..a144706abfacac5ed7abc94a451efc7a5a43dd5e 100644 (file)
--- a/group.h
+++ b/group.h
@@ -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,
index 727c01e17b5c1a95666322318240ff9f7439b549..76c63aa26d3e7fb2699b158605ee9acb54a43464 100644 (file)
--- a/has160.c
+++ b/has160.c
@@ -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,
@@ -89,38 +89,38 @@ void has160_compress(has160_ctx *ctx, const void *sbuf)
    */
 
 #define ROUND(f, ss, k,                                                        \
-     i0,  i1,  i2,  i3,  i4,  i5,  i6,  i7,                            \
+     i0,  i1,  i2,  i3,         i4,  i5,  i6,  i7,                             \
      i8,  i9, i10, i11, i12, i13, i14, i15) do {                       \
   FF(f, a, b, c, d, e, buf[ i8]^buf[ i9]^buf[i10]^buf[i11],  5, ss, k);        \
-  FF(f, e, a, b, c, d,                            buf[ i0], 11, ss, k);        \
-  FF(f, d, e, a, b, c,                            buf[ i1],  7, ss, k);        \
-  FF(f, c, d, e, a, b,                            buf[ i2], 15, ss, k);        \
-  FF(f, b, c, d, e, a,                            buf[ i3],  6, ss, k);        \
+  FF(f, e, a, b, c, d,                           buf[ i0], 11, ss, k); \
+  FF(f, d, e, a, b, c,                           buf[ i1],  7, ss, k); \
+  FF(f, c, d, e, a, b,                           buf[ i2], 15, ss, k); \
+  FF(f, b, c, d, e, a,                           buf[ i3],  6, ss, k); \
   FF(f, a, b, c, d, e, buf[i12]^buf[i13]^buf[i14]^buf[i15], 13, ss, k);        \
-  FF(f, e, a, b, c, d,                            buf[ i4],  8, ss, k);        \
-  FF(f, d, e, a, b, c,                            buf[ i5], 14, ss, k);        \
-  FF(f, c, d, e, a, b,                            buf[ i6],  7, ss, k);        \
-  FF(f, b, c, d, e, a,                            buf[ i7], 12, ss, k);        \
+  FF(f, e, a, b, c, d,                           buf[ i4],  8, ss, k); \
+  FF(f, d, e, a, b, c,                           buf[ i5], 14, ss, k); \
+  FF(f, c, d, e, a, b,                           buf[ i6],  7, ss, k); \
+  FF(f, b, c, d, e, a,                           buf[ i7], 12, ss, k); \
   FF(f, a, b, c, d, e, buf[ i0]^buf[ i1]^buf[ i2]^buf[ i3],  9, ss, k);        \
-  FF(f, e, a, b, c, d,                            buf[ i8], 11, ss, k);        \
-  FF(f, d, e, a, b, c,                            buf[ i9],  8, ss, k);        \
-  FF(f, c, d, e, a, b,                            buf[i10], 15, ss, k);        \
-  FF(f, b, c, d, e, a,                            buf[i11],  6, ss, k);        \
+  FF(f, e, a, b, c, d,                           buf[ i8], 11, ss, k); \
+  FF(f, d, e, a, b, c,                           buf[ i9],  8, ss, k); \
+  FF(f, c, d, e, a, b,                           buf[i10], 15, ss, k); \
+  FF(f, b, c, d, e, a,                           buf[i11],  6, ss, k); \
   FF(f, a, b, c, d, e, buf[ i4]^buf[ i5]^buf[ i6]^buf[ i7], 12, ss, k);        \
-  FF(f, e, a, b, c, d,                            buf[i12],  9, ss, k);        \
-  FF(f, d, e, a, b, c,                            buf[i13], 14, ss, k);        \
-  FF(f, c, d, e, a, b,                            buf[i14],  5, ss, k);        \
-  FF(f, b, c, d, e, a,                            buf[i15], 13, ss, k); \
+  FF(f, e, a, b, c, d,                           buf[i12],  9, ss, k); \
+  FF(f, d, e, a, b, c,                           buf[i13], 14, ss, k); \
+  FF(f, c, d, e, a, b,                           buf[i14],  5, ss, k); \
+  FF(f, b, c, d, e, a,                           buf[i15], 13, ss, k); \
 } while (0)
 
   ROUND(F, 10, 0x00000000,
-        0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15);
+        0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15);
   ROUND(G, 17, 0x5a827999,
-        3,  6,  9, 12, 15,  2,  5,  8, 11, 14,  1,  4,  7, 10, 13,  0);
+        3,  6,  9, 12, 15,  2,  5,  8, 11, 14,  1,  4,  7, 10, 13,  0);
   ROUND(H, 25, 0x6ed9eba1,
-       12,  5, 14,  7,  0,  9,  2, 11,  4, 13,  6, 15,  8,  1, 10,  3);
+       12,  5, 14,  7,  0,  9,  2, 11,  4, 13,  6, 15,  8,  1, 10,  3);
   ROUND(G, 30, 0x8f1bbcdc,
-        7,  2, 13,  8,  3, 14,  9,  4, 15, 10,  5,  0, 11,  6,  1, 12);
+        7,  2, 13,  8,  3, 14,  9,  4, 15, 10,  5,  0, 11,  6,  1, 12);
 
   /* --- Update the chaining variables --- */
 
@@ -167,9 +167,9 @@ void has160_init(has160_ctx *ctx)
 void has160_set(has160_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->e = LOAD32_L(p + 16);
   ctx->off = 0;
@@ -208,9 +208,9 @@ void has160_done(has160_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(HAS160, has160, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->e);
 }
@@ -229,9 +229,9 @@ void has160_done(has160_ctx *ctx, void *hash)
 unsigned long has160_state(has160_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->e);
   return (ctx->nl | ((ctx->nh << 16) << 16));
index 4b263f93cc293e3f8d9bb44330e8d4dc946dad07..699260a1abf3de792e5549c8abc2b9eaa9d20e28 100644 (file)
--- a/has160.h
+++ b/has160.h
@@ -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,
diff --git a/hash.h b/hash.h
index 881feeb6420436cbe381828155b4520a3ff16894..c2c10d042281bdaa99f6cef2e4fbfbe03bdc9e82 100644 (file)
--- a/hash.h
+++ b/hash.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index dfbb2b141572cb0950800335aa2ed3561462faca..e6b1f39a2ed1a6193bcdcb87bdf5650524e4dae5 100644 (file)
--- a/hashsum.1
+++ b/hashsum.1
@@ -71,7 +71,7 @@ Use the given
 to represent hashes in the output.  This is not interoperable with other
 programs, but it's handy, e.g., for building sha1 URNs.  The encodings
 recognized are
-.B hex 
+.B hex
 (the default),
 .B base64
 and
index 85fc6f4e77b8ec41e57e5f2409062e841cf0d0ca..b9afe70b9f2897e84627dad501a54066f6c36021 100644 (file)
--- a/hashsum.c
+++ b/hashsum.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -94,7 +94,7 @@ static size_t gethex(const char *p, octet *q, size_t sz, char **pp)
   }
   if (pp)
     *pp = (char *)p;
-  return (i); 
+  return (i);
 }
 
 /* --- Base64 encoding --- */
index d9075a10ca1fac18d3813c5ee07ad5d18ac15b7a..8b6b4f58ea8d18d82eb4fde73450c13052407ced 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/hmac.h b/hmac.h
index e87420032a78fdf18b706384675dc3e4100986ad..fffb093b161f3ce980a3a9d91712d3208bf4d8e3 100644 (file)
--- a/hmac.h
+++ b/hmac.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -119,7 +119,7 @@ extern void pre##_nmacinit(pre##_mackey */*key*/,                   \
  *             use, as specified in RFC2104.                           \
  */                                                                    \
                                                                        \
-extern void pre##_hmacinit(pre##_mackey */*key*/,                      \
+extern void pre##_hmacinit(pre##_mackey */*key*/,                      \
                           const void */*k*/, size_t /*sz*/);           \
                                                                        \
 /* --- @pre_sslmacinit@ --- *                                          \
diff --git a/idea.c b/idea.c
index ae4aa2d83bdd0bc93cbcfea1f3a7df14813fc5e5..c0f7fe74ce3f6e8dee2002dc19e93ed2c7af4654 100644 (file)
--- a/idea.c
+++ b/idea.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/idea.h b/idea.h
index 771addae6504fccbaf50d8dc86cca21eaec6967f..b049d74059182a1a66019b9d5e799196ab359f1c 100644 (file)
--- a/idea.h
+++ b/idea.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index f1d1870bf6d6ce3d19cff5024a9b21edc02e4f7c..d0b81fce32a98c20a78b497983c80a2593c16982 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 61b12d5e05c8c59e3c6c61b0131541d090b96e92..ceec2ae5c86cd3806dbd5af73458998b3ab7ced4 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 087d992881d4712639a7bc3eb85ba521f8c4f93a..c1ef53b2397ec4d9b424a3668cb2a24c5edc974d 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -275,7 +275,7 @@ int key_encode(key_data *k, dstr *d, const key_filter *kf)
       p = d->buf + n;
       STORE16(p, k->e & KF_ENCMASK);
       d->len += 4;
-      
+
       for (nks = 0, sym_mkiter(&i, &k->u.s);
           (ks = sym_next(&i)) != 0;
           nks++);
@@ -300,7 +300,7 @@ int key_encode(key_data *k, dstr *d, const key_filter *kf)
        xfree(ksv);
       }
       if (!rc)
-        d->len = n;
+       d->len = n;
       else {
        p = d->buf + n + 2;
        n = d->len - n - 4;
index a0644a140e797dc6a02fd03b494a0ebbaefd5b93..4b43a2cc2d341dad88ac6e038383bf6a2470c4b1 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -124,7 +124,7 @@ void key_drop(key_data *k) { KEY_DROP(k); }
 void key_split(key_data **kk)
 {
   key_data *k = *kk;
-  
+
   if (k->ref == 1)
     return;
   switch (k->e & KF_ENCMASK) {
@@ -358,7 +358,7 @@ static void structset(key_data *k, int stealp,
       key_drop(ks->k);
     if (!stealp) KEY_INCREF(kd);
     ks->k = kd;
-  }  
+  }
 }
 
 void key_structset(key_data *k, const char *tag, key_data *kd)
@@ -378,7 +378,7 @@ void key_structsteal(key_data *k, const char *tag, key_data *kd)
  *
  * Returns:    Nonzero return code from function, or zero.
  *
- * Use:                Runs a function over all the leaves of a key. 
+ * Use:                Runs a function over all the leaves of a key.
  */
 
 int key_do(key_data *k, const key_filter *kf, dstr *d,
index 2a8620a840a57016c8bf3c07df8d68242e398e86..e216bc0d7994337fa23b34d05b12bd906d94b8a0 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -393,7 +393,7 @@ extern void key_destroy(key_data */*k*/);
   if (_k->ref == 0)                                                    \
     key_destroy(_k);                                                   \
 } while (0)
-  
+
 extern void key_drop(key_data */*k*/);
 
 /* --- @key_do@ --- *
@@ -406,7 +406,7 @@ extern void key_drop(key_data */*k*/);
  *
  * Returns:    Nonzero return code from function, or zero.
  *
- * Use:                Runs a function over all the leaves of a key. 
+ * Use:                Runs a function over all the leaves of a key.
  */
 
 extern int key_do(key_data */*k*/, const key_filter */*kf*/, dstr */*d*/,
index b4f8ffef97a64c2e906bc533e2aed9d34eed15c7..cd7d3864d46587e7fd0c3e59dfcf93143c249881 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -52,7 +52,7 @@ const char *key_strerror(int err)
 #undef ENTRY
     "Unknown error code"
   };
-  
+
   unsigned e = -err;
   if (e >= N(tab))
     e = N(tab) - 1;
index 0323c2f6c20d5c4d189f516ec60009867146b23d..2029a2b89777e4fd6ca590f981a0e235127d2784 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,
index e28b9b29fcba1162e77a142a3cb366f08be41803..08a800bc9e24bca86868cdafd694ef929f5494d5 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -203,6 +203,6 @@ void key_fetchdone(key_packdef *kp)
   key_unpackdone(kp);
   if (kps->name)
     xfree(kps);
-}  
+}
 
 /*----- That's all, folks -------------------------------------------------*/
index dc9efc000fa9414840347cf3fcd3002ddbcc84f8..3245b93945d91f714a085b2816a713a2be2e4e47 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -257,7 +257,7 @@ fail_shift:
   dstr_destroy(&n_old);
   dstr_destroy(&n_older);
   return (rc);
-  
+
   /* --- Failure during write of new data --- *
    *
    * Clean up the new file and return.  These errors can never cause
index 36148a4e6caf8a0df523073d02f08492bcae8e46..bf5b70f85a20c074ce5cdcc906555a18d49bedd2 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 9d9b6ee7b2b20a8b2621f2d103a3a4cbb6d5bb30..b77bab98b0c7903d3dcbc796ee1e857667394e6e 100644 (file)
--- a/key-io.c
+++ b/key-io.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -196,12 +196,12 @@ int key_merge(key_file *f, const char *file, FILE *fp,
      *
      * There are currently six fields of interest:
      *
-     *   * The key's identification (id, tag and type).
-     *   * The actual key data itself.
-     *   * The key expiry time.
-     *   * The key deletion time.
-     *   * The attributes field.
-     *   * Any further comments.
+     *  * The key's identification (id, tag and type).
+     *  * The actual key data itself.
+     *  * The key expiry time.
+     *  * The key deletion time.
+     *  * The attributes field.
+     *  * Any further comments.
      *
      * All but the last field can contain no spaces.
      */
@@ -286,7 +286,7 @@ int key_merge(key_file *f, const char *file, FILE *fp,
        goto skip_3;
       }
     }
+
     /* --- Parse up the attributes, if specified --- */
 
     sym_create(&k->a);
@@ -564,7 +564,7 @@ int key_new(key_file *f, uint32 id, const char *type, time_t exp, key **kk)
       f->f |= KF_MODIFIED;
     }
   }
-  
+
   return (e);
 }
 
index 6e3b441e41414da6c824d995ffc8efb0ef637309..5ff7078a4b67cf7c5133cbb3e35a0e5d5f6f9a07 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -398,7 +398,7 @@ int key_fingerprint(key *k, ghash *h, const key_filter *kf)
       GH_HASHSTR16(h, v[i]->p);
     }
     xfree(v);
-  }    
+  }
 done:
   dstr_destroy(&d);
   return (rc);
index b2c88b7f1311f3a653668eb2332dd07db1d5820f..ebefe02f93d18b836934e0de1ac92e820760a139 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index fed144a1e4c1d1b920845d5cb28d6721ae8fe990..8b25dac437dd0f7d03c43c5b7d4d53e94fff0317 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 4fd74b1c23df4584f89bc5dffb212596edec6932..ab8e0038a587f21af2c2c093299df9cc5e040459 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index b13f571db11350d28281cbe2b8774996c180a34e..ff9e7058dbd2f013027e05f2744ff20c0b4d3288 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -265,7 +265,7 @@ key_data *key_read(const char *p, char **pp)
  *
  * Use:                Writes a key in a textual encoding.
  */
+
 int key_write(key_data *k, dstr *d, const key_filter *kf)
 {
   int rc = 0;
diff --git a/key.1 b/key.1
index e66c4acd928df4153242c8a94274e1e2780a7d7a..3e7a601a85eeaa03d4f66ce17f3c7d8e47ae4871 100644 (file)
--- a/key.1
+++ b/key.1
@@ -579,11 +579,11 @@ option controls the size of the modulus
 .IR p ;
 the default size is 1024 bits.
 .IP
-If no 
+If no
 .I q
 size is selected using the
 .B \-B
-option and the Lim-Lee prime options are disabled, then 
+option and the Lim-Lee prime options are disabled, then
 .I p
 is chosen to be a `safe' prime (i.e.,
 .IR p \ =\ 2 q \ +\ 1,
@@ -617,12 +617,12 @@ are primes at least as large as the setting given by the
 option (or 256 bits, if no setting was given).
 .IP
 If the
-.B \-K 
+.B \-K
 option was given, KCDSA-style Lim-Lee primes are selected: the
 parameters are chosen such that
 .IR p \ =\ 2\  q\ v \ +\ 1,
 where
-.IR p, 
+.IR p,
 .I q
 and
 .I v
@@ -790,14 +790,14 @@ an optional
 the two field-element parameters
 .I a
 and
-.IR b 
+.IR b
 which define the elliptic curve
 .IR E ,
 separated by an optional
 .RB ` , ';
 an optional
 .RB ` ; ';
-the 
+the
 .IR x -
 and
 .IR y -coordinates
@@ -809,11 +809,11 @@ an optional
 .RB ` : ';
 the order
 .I r
-of the group generated by 
+of the group generated by
 .IR G ;
 an optional
 .RB ` * ';
-and the 
+and the
 .I cofactor
 .I h
 =
diff --git a/key.h b/key.h
index 1986e8caeedfa6896c52c840c67630041b45ec0d..dffd0eb9d1eaeae0d719aa76214522e04cd109b5 100644 (file)
--- a/key.h
+++ b/key.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -84,7 +84,7 @@ typedef struct key_attr {
 typedef struct key {
 
   /* --- Hashtable management --- */
-  
+
   hash_base _b;                                /* Symbol table data */
   struct key *next;                    /* Next key of the same type */
 
@@ -491,7 +491,7 @@ extern void key_fulltag(key */*k*/, dstr */*d*/);
  *             qualified by the names of subkeys, separated by dots.  Hence,
  *             a qualified tag is ID|TAG[.TAG...].  The various result
  *             pointers can be null to indicate that the result isn't
- *             interesting. 
+ *             interesting.
  */
 
 extern int key_qtag(key_file */*f*/, const char */*tag*/,
index 9f93c0eeb0e24e6c1205e5a7927f9788223c4be0..580d60890dea27ecdb83ff341bd9ddd0df789703 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 88dae63b2b691bccff4d325d7a8ad95055c53ffa..c69a6ae6466e1b25875eba8e27f217b9ce2dd54e 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 11f1171da0537753c40d0a7fd7c4526f40c799f3..0025f98cc78408a1ed18cb3b91407f10ab5b08e8 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -61,7 +61,7 @@ int keycheck_report(keycheck *kc, unsigned sev, const char *msg, ...)
   va_end(ap);
   rc = kc->func ? kc->func(sev, d.buf, kc->p) : 0;
   dstr_destroy(&d);
-  return (rc);  
+  return (rc);
 }
 
 /* --- @keycheck_init@ --- *
index 8c60ffb64fe42b4e4d9de5486ff01feaf022978b..b80ceebdb9952d065f992abb7c6e394738301da3 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 684f4080ac059d1bd71e97604b9af29fb0a86442..b3e4af3fb0e5eb1dd500ce3874dc58389749314f 100644 (file)
--- a/keyring.5
+++ b/keyring.5
@@ -133,10 +133,10 @@ passphrase be
 .I P
 and the plaintext be
 .IR m .
-A 160-bit nonce 
+A 160-bit nonce
 .I N
 is chosen at random.  Let
-.IR K \ =\  N \ ||\  K .  
+.IR K \ =\  N \ ||\  K .
 Generate 320 bits of output from RIPEMD-160 in
 MGF1 mode with seed
 .IR K ;
@@ -153,8 +153,8 @@ a zero IV and the key
 giving the ciphertext
 .IR y\*(us0\*(ue .
 Let \*(*t be the 160-bit tag obtained from RIPEMD-160 in HMAC mode on
-the message 
-.I y\*(us0\*(ue 
+the message
+.I y\*(us0\*(ue
 and with key
 .IR K\*(usT\*(ue .
 The ciphertext is then
diff --git a/keysz.c b/keysz.c
index e8da6917c6a5f369e81c3ae197785b242fd17d61..ccc07697d7e3e8c65aa04e22ea0351467e5bfb74 100644 (file)
--- a/keysz.c
+++ b/keysz.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 9bfc6bc267a0d05043391e09ea75c111145a04f4..bae57cfbdcdaff43aed2c23f94cc04fdc396033f 100644 (file)
--- a/keyutil.c
+++ b/keyutil.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -160,17 +160,17 @@ static void setattr(key_file *f, key *k, char *v[])
 
 const struct seedalg { const char *p; grand *(*gen)(const void *, size_t); }
 seedtab[] = {
-  { "dsarand",         dsarand_create },
-  { "rmd128-mgf",  rmd128_mgfrand },
-  { "rmd160-mgf",  rmd160_mgfrand },
-  { "rmd256-mgf",  rmd256_mgfrand },
-  { "rmd320-mgf",  rmd320_mgfrand },
-  { "sha-mgf",  sha_mgfrand },
-  { "sha224-mgf",  sha224_mgfrand },
-  { "sha256-mgf",  sha256_mgfrand },
-  { "sha384-mgf",  sha384_mgfrand },
-  { "sha512-mgf",  sha512_mgfrand },
-  { "tiger-mgf",  tiger_mgfrand },
+  { "dsarand", dsarand_create },
+  { "rmd128-mgf", rmd128_mgfrand },
+  { "rmd160-mgf", rmd160_mgfrand },
+  { "rmd256-mgf", rmd256_mgfrand },
+  { "rmd320-mgf", rmd320_mgfrand },
+  { "sha-mgf", sha_mgfrand },
+  { "sha224-mgf", sha224_mgfrand },
+  { "sha256-mgf", sha256_mgfrand },
+  { "sha384-mgf", sha384_mgfrand },
+  { "sha512-mgf", sha512_mgfrand },
+  { "tiger-mgf", tiger_mgfrand },
   { 0, 0 }
 };
 
@@ -565,7 +565,7 @@ static void alg_dhparam(keyopts *k)
       qd_parse qd;
       group *g;
       const char *e;
-      
+
       if (strcmp(k->curve, "list") == 0) {
        unsigned i, w;
        LIST("Built-in prime fields", stdout, ptab[i].name, ptab[i].name);
@@ -579,11 +579,11 @@ static void alg_dhparam(keyopts *k)
       if ((g = group_prime(&dp)) == 0)
        die(EXIT_FAILURE, "invalid prime field");
       if (!(k->f & f_quiet) && (e = G_CHECK(g, &rand_global)) != 0)
-       moan("WARNING!  group check failed: %s", e);
+       moan("WARNING!  group check failed: %s", e);
       G_DESTROYGROUP(g);
       goto done;
     }
-    
+
     if (!k->bits)
       k->bits = 1024;
 
@@ -1094,7 +1094,7 @@ static int cmd_add(int argc, char *argv[])
       case 's': {
        base64_ctx b;
        dstr d = DSTR_INIT;
-       if (seed) die(EXIT_FAILURE, "seed already set"); 
+       if (seed) die(EXIT_FAILURE, "seed already set");
        base64_init(&b);
        base64_decode(&b, optarg, strlen(optarg), &d);
        base64_decode(&b, 0, 0, &d);
@@ -1102,7 +1102,7 @@ static int cmd_add(int argc, char *argv[])
        seed = optarg;
        dstr_destroy(&d);
       } break;
-       
+
       case 'n': {
        base64_ctx b;
        dstr d = DSTR_INIT;
@@ -1110,7 +1110,7 @@ static int cmd_add(int argc, char *argv[])
        unsigned n = strtoul(optarg, &p, 0);
        if (n == 0 || *p != 0 || n % 8 != 0)
          die(EXIT_FAILURE, "bad seed length `%s'", optarg);
-       if (seed) die(EXIT_FAILURE, "seed already set"); 
+       if (seed) die(EXIT_FAILURE, "seed already set");
        n /= 8;
        p = xmalloc(n);
        rand_get(RAND_GLOBAL, p, n);
@@ -1133,7 +1133,7 @@ static int cmd_add(int argc, char *argv[])
          die(EXIT_FAILURE, "bad key-id `%s'", optarg);
        kid = id;
       } break;
-       
+
       /* --- Other flags --- */
 
       case 'R':
@@ -1363,7 +1363,7 @@ static void showkeydata(key_data *k, int ind, listopts *o, dstr *d)
        fputs(", 0x", stdout); mp_writefile(k->u.e.y, stdout, 16);
        putchar('\n');
       }
-      break;      
+      break;
 
     /* --- Structured keys --- *
      *
@@ -1387,7 +1387,7 @@ static void showkeydata(key_data *k, int ind, listopts *o, dstr *d)
       }
       INDENT(ind);
       fputs("}\n", stdout);
-    } break;      
+    } break;
   }
 
 #undef INDENT
@@ -1437,10 +1437,10 @@ static void showkey(key *k, listopts *o)
 
   if (!o->v) {
     if (!(o->f & f_newline)) {
-      printf("%8s  %-20s  %-20s  %-10s  %-10s\n",
+      printf("%8s  %-20s  %-20s         %-10s  %-10s\n",
             "Id", "Tag", "Type", "Expire", "Delete");
     }
-    printf("%08lx  %-20s  %-20s  %-10s  %-10s\n",
+    printf("%08lx  %-20s  %-20s         %-10s  %-10s\n",
           (unsigned long)k->id, k->tag ? k->tag : "<none>",
           k->type, ebuf, dbuf);
     o->f |= f_newline;
@@ -1485,7 +1485,7 @@ static void showkey(key *k, listopts *o)
     showkeydata(k->k, 0, o, &d);
     dstr_destroy(&d);
   }
-    
+
   o->f |= f_newline;
 }
 
@@ -1527,7 +1527,7 @@ static int cmd_list(int argc, char *argv[])
        int e = key_readflags(optarg, &p, &o.kf.f, &o.kf.m);
        if (e || *p)
          die(EXIT_FAILURE, "bad filter string `%s'", optarg);
-      } break; 
+      } break;
       default:
        o.f |= f_bogus;
        break;
@@ -1849,7 +1849,7 @@ static int cmd_verify(int argc, char *argv[])
   doclose(&f);
   return (0);
 }
-  
+
 /* --- @cmd_comment@ --- */
 
 static int cmd_comment(int argc, char *argv[])
@@ -2013,7 +2013,7 @@ static int cmd_extract(int argc, char *argv[])
     key *k;
     for (key_mkiter(&i, &f); (k = key_next(&i)) != 0; )
       key_extract(&f, k, fp, &kf);
-  } else {    
+  } else {
     for (i = 1; i < argc; i++) {
       if ((k = key_bytag(&f, argv[i])) != 0)
        key_extract(&f, k, fp, &kf);
@@ -2140,8 +2140,8 @@ Options:\n\
   { "add", cmd_add,
     "add [-OPTIONS] TYPE [ATTR...]\n\
        Options: [-lqrLKS] [-a ALG] [-bB BITS] [-p PARAM] [-R TAG]\n\
-                [-A SEEDALG] [-s SEED] [-n BITS] [-I KEYID]\n\
-                [-e EXPIRE] [-t TAG] [-c COMMENT]", "\
+                [-A SEEDALG] [-s SEED] [-n BITS] [-I KEYID]\n\
+                [-e EXPIRE] [-t TAG] [-c COMMENT]", "\
 Options:\n\
 \n\
 -a, --algorithm=ALG    Generate keys suitable for ALG.\n\
index 15e94a882d2062dec67a94232fee78926da07018..a108f13a66a0fe7c4fff453ff15e1934c5607d96 100644 (file)
--- a/lcrand.c
+++ b/lcrand.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -236,7 +236,7 @@ static octet gbyte(grand *r)
   do x = lcrand(x); while (x >= P256);
   g->x = x;
   return (x / (P256 / 256));
-}  
+}
 
 static uint32 grange(grand *r, uint32 l)
 {
index 20e254ff906826525ea01f91c01ae3ebfae8686b..080370c035aa5cfe3dde589c00ded0e29c9b76e8 100644 (file)
--- a/lcrand.h
+++ b/lcrand.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 57081567aa4d7ecb17cbb216f0262bcc57935bec..b6fc4d6419909591dd266f072973d16e170ec520 100644 (file)
--- a/limlee.c
+++ b/limlee.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -195,7 +195,7 @@ static int init(pgen_event *ev, limlee_stepctx *l)
   else {
     dstr_putf(&l->d, "%s*", ev->name);
     l->pops->pgen(&l->qq, qql, l);
-  }       
+  }
 
   return (PGEN_TRY);
 }
@@ -331,7 +331,7 @@ int limlee_step(int rq, pgen_event *ev, void *p)
       return (done(ev, l));
   }
   return (PGEN_ABORT);
-}      
+}
 
 /*----- Main code ---------------------------------------------------------*/
 
index 6ccb8a4eab0583d48043724eafe6a68b1fc95709..8b03bc33a2fde2ec6069b79ab0e0faafbef0737e 100644 (file)
--- a/limlee.h
+++ b/limlee.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/lmem.c b/lmem.c
index 5c36e98919b062b54bf8e8afd97e1b0b6118ea01..a7033d047a0b4fbc564d8ccefa39d36bd9bd3732 100644 (file)
--- a/lmem.c
+++ b/lmem.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/lmem.h b/lmem.h
index f7cb6ed4426bfb4b3d480040954bdf333928120c..65a31a88474413c3cbdc600c3f0f65fd6fff1027 100644 (file)
--- a/lmem.h
+++ b/lmem.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 5aaa73fbb96cc946a178644e88ef92f2fc062f92..f13c7c159e27d58250014767d9798b91cf343bf5 100644 (file)
 %%% 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,
 
 %%%----- That's all, folks --------------------------------------------------
 
-%%% Local Variables: 
+%%% Local Variables:
 %%% mode: latex
 %%% TeX-master: t
-%%% End: 
+%%% End:
index bb3a9c778ab068a74875c8707b6bf27a368cf71b..0904b50b98a9554be8d737963e44048b4c35699f 100644 (file)
@@ -437,7 +437,7 @@ if you ensure that $x, y < m$.
 
 An integer $d$ such that $0 \le d < m$ and $d R \equiv x y \bmod m$.
 
-%%% Local Variables: 
+%%% Local Variables:
 %%% mode: latex
 %%% TeX-master: "catacomb"
-%%% End: 
+%%% End:
index 45d829fa6a6753bb2c0773fd195b96bfde432257..7c40cd7782bdadcb4006972fee070fa0cbcbdacf 100644 (file)
@@ -98,10 +98,10 @@ are declared in \hdr{<catacomb/mp.h>}:
   \multicolumn{1}{c|}{\textbf{Value}} & \qquad &
   \multicolumn{1}{c|}{\textbf{Constant}} &
   \multicolumn{1}{c|}{\textbf{Value}}                  \\ \hlx{vc{1,2,4,5}v}
-  MP_ZERO      & 0     && MP_FOUR       & 4            \\
-  MP_ONE       & 1     && MP_FIVE       & 5            \\
-  MP_TWO       & 2     && MP_TEN        & 10           \\
-  MP_THREE     & 3     && MP_MONE       & -1           \\ \hlx{vc{1,2,4,5}}
+  MP_ZERO      & 0     && MP_FOUR       & 4            \\
+  MP_ONE       & 1     && MP_FIVE       & 5            \\
+  MP_TWO       & 2     && MP_TEN        & 10           \\
+  MP_THREE     & 3     && MP_MONE       & -1           \\ \hlx{vc{1,2,4,5}}
 \end{tabular}
 \goodbreak
 
@@ -540,7 +540,7 @@ subliminal channels in digital signature algorithms.
 The RSA public-key encryption algorithm leaks the Jacobi symbol of its
 plaintext.
 
-%%% Local Variables: 
+%%% Local Variables:
 %%% mode: latex
 %%% TeX-master: "catacomb"
-%%% End: 
+%%% End:
index 28c14243992306e449f981326e361a4956ef36b5..ce370b8f536de716341e9c9b7baf83f31858bd93 100644 (file)
@@ -91,7 +91,7 @@ the array, denoted $\mp(v .. \vl)$, is defined to be
 \[
   \mp(v .. \vl) =
     \sum_{0 \le i < \vl - v}
-        2^{\code{MPW_BITS} \cdot i} v[i]
+       2^{\code{MPW_BITS} \cdot i} v[i]
 \]
 If the array is empty (i.e., $v = \vl$) then the number is zero.  If the
 array is empty, or the final word is nonzero, then the representation is said
@@ -152,7 +152,7 @@ largest integer such that
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |MPX_OCTETS(size_t |$o$|,|
-           |const mpw *|$v$|, const mpw *|$\vl$|);|
+          |const mpw *|$v$|, const mpw *|$\vl$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -174,7 +174,7 @@ The result $o$ can be calculated from the number of bits~$b$ reported by
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |MPX_COPY(mpw *|$\dv$|, mpw *|$\dvl$|,|
-         |const mpw *|$\av$|, const mpw *|$\avl$|);|
+        |const mpw *|$\av$|, const mpw *|$\avl$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -234,7 +234,7 @@ in an octet array of a particular size.
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |void mpx_storel(const mpw *|$v$|, const mpw *|$\vl$|,|
-                |void *|$p$|, size_t |$\sz$|);|
+               |void *|$p$|, size_t |$\sz$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -251,7 +251,7 @@ byte first).
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |void mpx_loadl(mpw *|$v$|, mpw *|$\vl$|,|
-               |const void *|$p$|, size_t |$\sz$|);|
+              |const void *|$p$|, size_t |$\sz$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -268,7 +268,7 @@ significant byte first).
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |void mpx_storeb(const mpw *|$v$|, const mpw *|$\vl$|,|
-                |void *|$p$|, size_t |$\sz$|);|
+               |void *|$p$|, size_t |$\sz$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -285,7 +285,7 @@ byte last).
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |void mpx_loadb(mpw *|$v$|, mpw *|$\vl$|,|
-               |const void *|$p$|, size_t |$\sz$|);|
+              |const void *|$p$|, size_t |$\sz$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -319,7 +319,7 @@ integer.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_lsl(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,| \\
-               \>|const mpw *|$\av$|, const mpw *|$\avl$|, size_t |$n$|);|
+              \>|const mpw *|$\av$|, const mpw *|$\avl$|, size_t |$n$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -337,7 +337,7 @@ $n$~bits (i.e., multiplying it by~$2^n$).
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_lsr(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,| \\
-               \>|const mpw *|$\av$|, const mpw *|$\avl$|, size_t |$n$|);|
+              \>|const mpw *|$\av$|, const mpw *|$\avl$|, size_t |$n$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -369,7 +369,7 @@ destination partially overlap the sources.
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |void mpx_2c(mpw *|$\dv$|, mpw *|$\dvl$|,|
-            |const mpw *|$v$|, const mpw *|$\vl$|);|
+           |const mpw *|$v$|, const mpw *|$\vl$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -385,9 +385,9 @@ $\dv .. \dvl$.  The two arrays $v .. \vl$ and $\dv .. \dvl$ may be the same.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |int mpx_ucmp(|\=|const mpw *|$\av$|, const mpw *|$\avl$|,| \\
-               \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);| \\
+              \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);| \\
 |int MPX_UCMP(|\=|const mpw *|$\av$|, const mpw *|$\avl$|, |\synt{rel-op}|,|
- \\            \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
+ \\           \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -420,8 +420,8 @@ The macro \code{MPX_UCMP} returns a nonzero result if $a
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_uadd(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,|
-                  |const mpw *|$\av$|, const mpw *|$\avl$|,| \\
-                \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
+                 |const mpw *|$\av$|, const mpw *|$\avl$|,| \\
+               \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -461,8 +461,8 @@ inline code rather than calling a function.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_usub(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,|
-                  |const mpw *|$\av$|, const mpw *|$\avl$|,| \\
-                \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
+                 |const mpw *|$\av$|, const mpw *|$\avl$|,| \\
+               \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -471,7 +471,7 @@ inline code rather than calling a function.
 Subtracts one multiprecision integer from another.  The difference of the two
 arguments $\mp(\av .. \avl) - \mp(\bv .. \bvl)$ is stored in $\dv .. \dvl$.
 The destination array may be equal to either or both source
-arrays.\footnote{% 
+arrays.\footnote{%
   Subtracting a number from itself is a particularly poor way of clearing an
   integer to zero.  A call to \code{MPX_ZERO} (page~\pageref{fn:MPX-ZERO}) is
   much more efficient.} %
@@ -508,8 +508,8 @@ inline code rather than calling a function.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_umul(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,|
-                  |const mpw *|$\av$|, const mpw *|$\avl$|,| \\
-                \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
+                 |const mpw *|$\av$|, const mpw *|$\avl$|,| \\
+               \>|const mpw *|$\bv$|, const mpw *|$\bvl$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -528,9 +528,9 @@ destination array may not be equal to either source array.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_umuln(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,| \\
-                 \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);| \\
+                \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);| \\
 |void MPX_UMULN(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,| \\
-                 \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);|
+                \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -554,9 +554,9 @@ inline code rather than calling a function.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\*
 |void mpx_umlan(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,| \\*
-                 \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);| \\
+                \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);| \\
 |void MPX_UMLAN(|\=|mpw *|$\dv$|, mpw *|$\dvl$|,| \\
-                 \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);|
+                \> |const mpw *|$\av$|, const mpw *|$\avl$|, mpw |$n$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -579,7 +579,7 @@ inline code rather than calling a function.
 \begin{listinglist}
 |#include <catacomb/mpx.h>| \\
 |void mpx_usqr(mpw *|$\dv$|, mpw *|$\dvl$|,|
-              |const mpw *|$\av$|, const mpw *|$\avl$|);|
+             |const mpw *|$\av$|, const mpw *|$\avl$|);|
 \end{listinglist}
 
 \fsec{Description}
@@ -600,8 +600,8 @@ itself.
 \begin{tabbing}
 |#include <catacomb/mpx.h>| \\
 |void mpx_udiv(|\=|mpw *|$\qv$|, mpw *|$\qvl$|, mpw *|$\rv$|, mpw *|$\rvl$|,|
-\\              \>|const mpw *|$\dv$|, const mpw *|$\dvl$|,|
-                  |mpw *|$\mathit{sv}$|, mpw *|$\mathit{svl}$|);|
+\\             \>|const mpw *|$\dv$|, const mpw *|$\dvl$|,|
+                 |mpw *|$\mathit{sv}$|, mpw *|$\mathit{svl}$|);|
 \end{tabbing}
 \end{listinglist}
 
@@ -628,7 +628,7 @@ In particular, this definition implies that $r$ has the same sign as $y$,
 which is a useful property when performing modular reductions.
 \shortverb\|
 
-%%% Local Variables: 
+%%% Local Variables:
 %%% mode: latex
 %%% TeX-master: "catacomb"
-%%% End: 
+%%% End:
index ced4dca50ffee2e4dba118638e5d1ac649a598be..afc5257774cf75e613cc833d1d1c5e67db6ca796 100644 (file)
@@ -28,7 +28,7 @@ logically separate units:
 \input{mp-mp}
 \input{mp-mod}
 
-%%% Local Variables: 
+%%% Local Variables:
 %%% mode: latex
 %%% TeX-master: "catacomb"
-%%% End: 
+%%% End:
index ad1a3ef4e428dc90e987a9fc3830a8c9f1811614..9726ed9d50c2de34b72938b10f1b382527c0d09d 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -311,7 +311,7 @@ int main(void)
     exit(EXIT_FAILURE);
   }
 
-  return (0);  
+  return (0);
 }
 
 /*----- That's all, folks -------------------------------------------------*/
diff --git a/mars.c b/mars.c
index 2c0fcd08ab9331c8fc0d113f68f237beefc9f833..9240083a0805453191732cedc240680a8eef8050 100644 (file)
--- a/mars.c
+++ b/mars.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -47,7 +47,7 @@ const octet mars_keysz[] = { KSZ_RANGE, MARS_KEYSZ, 0, 56, 4 };
 /*----- Useful tables -----------------------------------------------------*/
 
 static const uint32 s[512] = MARS_S;
-#define s0 (s +   0)
+#define s0 (s +          0)
 #define s1 (s + 256)
 #define bb (s + 265)
 
@@ -154,8 +154,8 @@ void mars_init(mars_ctx *k, const void *buf, size_t sz)
 #define IKSUB(k, a, b, c, d) d -= *--k, c -= *--k, b -= *--k, a -= *--k
 
 #define MIX(a, b, c, d) do {                                           \
-  b ^= s0[(a >>  0) & 0xff];                                           \
-  b += s1[(a >>  8) & 0xff];                                           \
+  b ^= s0[(a >>         0) & 0xff];                                            \
+  b += s1[(a >>         8) & 0xff];                                            \
   c += s0[(a >> 16) & 0xff];                                           \
   d ^= s1[(a >> 24) & 0xff];                                           \
   a = ROL32(a, 8);                                                     \
@@ -165,8 +165,8 @@ void mars_init(mars_ctx *k, const void *buf, size_t sz)
   a = ROR32(a, 8);                                                     \
   d ^= s1[(a >> 24) & 0xff];                                           \
   c -= s0[(a >> 16) & 0xff];                                           \
-  b -= s1[(a >>  8) & 0xff];                                           \
-  b ^= s0[(a >>  0) & 0xff];                                           \
+  b -= s1[(a >>         8) & 0xff];                                            \
+  b ^= s0[(a >>         0) & 0xff];                                            \
 } while (0)
 
 #define E(x, y, z, k, a) do {                                          \
@@ -190,7 +190,7 @@ void mars_init(mars_ctx *k, const void *buf, size_t sz)
   E(x, y, z, k, a);                                                    \
   b += x; c += y; d ^= z;                                              \
 } while (0)
-  
+
 #define IROUND(k, a, b, c, d) do {                                     \
   uint32 x, y, z;                                                      \
   IE(x, y, z, k, a);                                                   \
diff --git a/mars.h b/mars.h
index e1244728e02305bfb1d5ca1b72e402d7b86c65aa..f32f9f4c464782d0650549d6e9bc817fcc266848 100644 (file)
--- a/mars.h
+++ b/mars.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index e65796962f891525189e5ef571b608466c675eef..a6dd31a2089c4def2272a8ea5cc612bd760bbc19 100644 (file)
--- a/maurer.c
+++ b/maurer.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 6dbaa671bdf80b7c739a348aa41d8aab3d6c7870..737366051cc31cb4c378353c7077aad3f2047ef9 100644 (file)
--- a/maurer.h
+++ b/maurer.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 7cf0d9575e1d1dfd611d0176b4e1bb12b1cf5ab4..4217e771b095cb5ca78beebb7dee1f2ed392800f 100644 (file)
--- a/md2-tab.h
+++ b/md2-tab.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/md2.c b/md2.c
index 08e033f481f1522466f1a0d15c1cf15ae21bfe59..987eb399aadac433b72a9c527c02dcb3586b0807 100644 (file)
--- a/md2.c
+++ b/md2.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -63,9 +63,9 @@ void md2_compress(md2_ctx *ctx, const void *sbuf)
   /* --- Handy macro for doing something lots of times --- */
 
 #define DO(what, where) do {                                           \
-  what(where,  0); what(where,  1); what(where,  2); what(where,  3);  \
-  what(where,  4); what(where,  5); what(where,  6); what(where,  7);  \
-  what(where,  8); what(where,  9); what(where, 10); what(where, 11);  \
+  what(where,  0); what(where, 1); what(where,  2); what(where,  3);   \
+  what(where,  4); what(where, 5); what(where,  6); what(where,  7);   \
+  what(where,  8); what(where, 9); what(where, 10); what(where, 11);   \
   what(where, 12); what(where, 13); what(where, 14); what(where, 15);  \
 } while (0)
 
diff --git a/md2.h b/md2.h
index 135c95a718a41c8803c347b2b841461aa33c86e8..4d2b884c147292d8a431d6c53676b454e98b65e0 100644 (file)
--- a/md2.h
+++ b/md2.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/md4.c b/md4.c
index 5c162030faf180f6480f029e388b0fd45e432528..5d438179ec40c16afdfd07307b5da5d672a3af90 100644 (file)
--- a/md4.c
+++ b/md4.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -181,9 +181,9 @@ void md4_init(md4_ctx *ctx)
 void md4_set(md4_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->off = 0;
   ctx->nl = U32(count);
@@ -221,9 +221,9 @@ void md4_done(md4_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(MD4, md4, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
 }
 
@@ -241,9 +241,9 @@ void md4_done(md4_ctx *ctx, void *hash)
 unsigned long md4_state(md4_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   return (ctx->nl | ((ctx->nh >> 16) >> 16));
 }
diff --git a/md4.h b/md4.h
index 411bb595ea5b18df1ee5a47278d7e059d8a85c68..d33d8cea4a5783b2564375ed5a63fcd286161079 100644 (file)
--- a/md4.h
+++ b/md4.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
diff --git a/md5.c b/md5.c
index b3eb3c64ee2300b6abd43fec53efb97e814341a4..a062c7238c719d5335cc7c85d2b2e78c90884273 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -200,9 +200,9 @@ void md5_init(md5_ctx *ctx)
 void md5_set(md5_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->off = 0;
   ctx->nl = U32(count);
@@ -240,9 +240,9 @@ void md5_done(md5_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(MD5, md5, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
 }
 
@@ -260,9 +260,9 @@ void md5_done(md5_ctx *ctx, void *hash)
 unsigned long md5_state(md5_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   return (ctx->nl | ((ctx->nh << 16) << 16));
 }
diff --git a/md5.h b/md5.h
index e09dfa33f41ebed9617a1e7378cdfd0c7c96a452..291cecaff93b780d64a6e6dc548e4a41bd3ffb62 100644 (file)
--- a/md5.h
+++ b/md5.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index 6d7048ef0eb0ab51b53764c4bb8828ac69630891..6d9f4e513ce851d8344982a20c314b248a0d2746 100644 (file)
--- a/mgf-def.h
+++ b/mgf-def.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -87,7 +87,7 @@ void pre##_mgfkeybegin(pre##_mgfctx *k)                                       \
   k->bsz = 0;                                                          \
   pre##_init(&k->k);                                                   \
 }                                                                      \
-                                                                       \
+                                                                       \
 void pre##_mgfkeyadd(pre##_mgfctx *k, const void *p, size_t sz)                \
 {                                                                      \
   pre##_hash(&k->k, p, sz);                                            \
@@ -145,8 +145,8 @@ void pre##_mgfencrypt(pre##_mgfctx *k, const void *s,                       \
     k->bsz -= n;                                                       \
     if (dd) {                                                          \
       if (!ss) {                                                       \
-        memcpy(dd, p, n);                                              \
-        dd += n;                                                       \
+       memcpy(dd, p, n);                                               \
+       dd += n;                                                        \
       } else {                                                         \
        while (n) {                                                     \
          *dd++ = *ss++ ^ *p++;                                         \
@@ -172,8 +172,8 @@ void pre##_mgfencrypt(pre##_mgfctx *k, const void *s,                       \
     if (dd) {                                                          \
       const octet *p = k->buf;                                         \
       if (!ss) {                                                       \
-        memcpy(dd, p, n);                                              \
-        dd += n;                                                       \
+       memcpy(dd, p, n);                                               \
+       dd += n;                                                        \
       } else {                                                         \
        while (n) {                                                     \
          *dd++ = *ss++ ^ *p++;                                         \
@@ -419,22 +419,22 @@ int main(void)                                                            \
     if (memcmp(pt, text, sizeof(text)) == 0) {                         \
       done++;                                                          \
       if (sizeof(text) < 40 || done % 8 == 0)                          \
-        fputc('.', stdout);                                            \
+       fputc('.', stdout);                                             \
       if (done % 480 == 0)                                             \
-        fputs("\n\t", stdout);                                         \
+       fputs("\n\t", stdout);                                          \
       fflush(stdout);                                                  \
     } else {                                                           \
       printf("\nError (sz = %lu)\n", (unsigned long)sz);               \
       status = 1;                                                      \
       printf("\tplaintext      = "); hexdump(text, sz);                        \
-        printf(", "); hexdump(text + sz, rest);                                \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(text + sz, rest);                         \
+       fputc('\n', stdout);                                            \
       printf("\tciphertext     = "); hexdump(ct, sz);                  \
-        printf(", "); hexdump(ct + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(ct + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       printf("\trecovered text = "); hexdump(pt, sz);                  \
-        printf(", "); hexdump(pt + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(pt + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       fputc('\n', stdout);                                             \
     }                                                                  \
     if (sz < 63)                                                       \
diff --git a/mgf.h b/mgf.h
index 617ede1aa4b9860bebfd1f2a8f1de84ef8ab9f05..273d5b0b359a2a084231b5c3e73567155e7e2a19 100644 (file)
--- a/mgf.h
+++ b/mgf.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 3b3874fd1260e923643815d0de935c2312d56e7d..b40c23b3084eebab6d4de96e3c43f5585d084105 100755 (executable)
--- a/mkpgroups
+++ b/mkpgroups
@@ -26,7 +26,7 @@ for line in stdin:
     while True:
       F = stdin.next().split()
       if not F or F[0] != '#:factor':
-        break
+       break
       ff.append(C.MP(F[1]))
     seed = C.rmd160().hash(name).done()
     k = kf.newkey(C.ReadBuffer(seed).getu32(), 'dh-param')
index 3f93ff28fe1f1415fe77d350d51c5a1679ce110f..dd4fd56e9149b6b0fb326f89a611ead695adaf86 100644 (file)
@@ -39,7 +39,7 @@ mkphrase \- generate passphrases with guaranteed minimum entropy
 .RB [ \-g
 .IR generator ]
 .br
-       
+
 .RB [ \-n
 .IR count ]
 .RB [ \-r
@@ -66,7 +66,7 @@ Write a help summary for
 to standard output and exit.
 .TP
 .B "\-v, \-\-version"
-Write 
+Write
 .BR mkphrase 's
 version information to standard output and exit.
 .TP
@@ -86,7 +86,7 @@ to construct passphrases.  See below.  The default generator is
 .BR markov .
 .TP
 .BI "\-n, \-\-count=" count
-Produce 
+Produce
 .I count
 phrases.  The default is to produce only one.
 .TP
index 3a26ed9bbe32652425bd5bb2c14a7b334fd0a4d4..0a73e36fed283e4025cb12d4f6df2873c8f9b6b6 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -179,7 +179,7 @@ static void *markov_init(void)
 {
   node (*model)[VECSZ][VECSZ][VECSZ] = xmalloc(sizeof(*model));
   unsigned i, j, k, l;
-  
+
   for (i = 0; i < VECSZ; i++) {
     for (j = 0; j < VECSZ; j++) {
       for (k = 0; k < VECSZ; k++) {
index 9cb51782dbea0daf996d76851ad1b60ba1fcacf3..f00af543903f69a792c98e34b460121411005745 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -299,7 +299,7 @@ MPX_DOBIN(MP_BITBINOP)
  *             @mp *a@ = source
  *
  * Returns:    The bitwise complement of the source.
- */ 
+ */
 
 mp *mp_not(mp *d, mp *a)
 {
@@ -333,10 +333,10 @@ mp *mp_not(mp *d, mp *a)
  * negative at the end, we preinvert the output and then invert again with a
  * sign-swap.
  *
- * Start with:                 wxyz      WXYZ
+ * Start with:                 wxyz      WXYZ
  * If @a@ negative:            yzwx  or  YZWX
- * If @b@ negative:            xwzy      XWZY
- * If both negative:           zyxw      ZYXW
+ * If @b@ negative:            xwzy      XWZY
+ * If both negative:           zyxw      ZYXW
  */
 
 #define MP_BIT2CBINOP(n, base, an, bn, abn, p_base, p_an, p_bn, p_abn) \
@@ -677,8 +677,8 @@ static int verify(const char *op, mp *expect, mp *result, mp *a, mp *b)
 {
   if (!MP_EQ(expect, result)) {
     fprintf(stderr, "\n*** %s failed", op);
-    fputs("\n*** a      = ", stderr); mp_writefile(a, stderr, 10);
-    fputs("\n*** b      = ", stderr); mp_writefile(b, stderr, 10);
+    fputs("\n*** a     = ", stderr); mp_writefile(a, stderr, 10);
+    fputs("\n*** b     = ", stderr); mp_writefile(b, stderr, 10);
     fputs("\n*** result = ", stderr); mp_writefile(result, stderr, 10);
     fputs("\n*** expect = ", stderr); mp_writefile(expect, stderr, 10);
     fputc('\n', stderr);
@@ -749,7 +749,7 @@ static int tdiv(dstr *v)
 static int tbin(dstr *v)
 {
   static mp *(*fn[])(mp *, mp *, mp *) = {
-#define DO(string) mp_bit##string##2c, 
+#define DO(string) mp_bit##string##2c,
 MPX_DOBIN(DO)
 #undef DO
   };
@@ -759,7 +759,7 @@ MPX_DOBIN(DO)
   mp *b = *(mp **)v[2].buf;
   mp *r = *(mp **)v[3].buf;
   mp *c;
-    
+
   if (strcmp(v[0].buf, "and") == 0) op = 1;
   else if (strcmp(v[0].buf, "or") == 0) op = 7;
   else if (strcmp(v[0].buf, "nand") == 0) op = 14;
@@ -872,7 +872,7 @@ static int tneg(dstr *v)
   mp_drop(a);
   mp_drop(r);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 static int todd(dstr *v)
index 3416e7abe5a8fe102743c0d79768fd47377153b3..dc310074fe59db571befd9298fe9eed01c1cb8a5 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index d4a45e21a64f6321860d6fd4d54fef6fca129e40..9cb56ee11a276c2129ec64222ccc92fdc3e3ecaf 100644 (file)
--- a/mp-exp.c
+++ b/mp-exp.c
@@ -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,
index 13f5d28134fa8641d851de84a8d2b0eacda21417..2e5dbf2fbff2569f8adec7f4939fa4b8282f7ccc 100644 (file)
--- a/mp-exp.h
+++ b/mp-exp.h
@@ -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,
index c78181f8792e75dd3be14653a4f43d15112fdfe0..2583c8e2a9d01eb52082013345d8caf2476c10ab 100644 (file)
--- a/mp-gcd.c
+++ b/mp-gcd.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -264,15 +264,15 @@ static int modinv(dstr *v)
   mp *y = mp_modinv(MP_NEW, x, m);
   if (!MP_EQ(y, r)) {
     fputs("\n*** mp_modinv failed", stderr);
-    fputs("\nx      = ", stderr); mp_writefile(x, stderr, 10);
-    fputs("\nm      = ", stderr); mp_writefile(m, stderr, 10);
+    fputs("\nx     = ", stderr); mp_writefile(x, stderr, 10);
+    fputs("\nm     = ", stderr); mp_writefile(m, stderr, 10);
     fputs("\nexpect = ", stderr); mp_writefile(r, stderr, 10);
     fputs("\nresult = ", stderr); mp_writefile(y, stderr, 10);
     ok = 0;
   }
   MP_DROP(x); MP_DROP(m); MP_DROP(r); MP_DROP(y);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 static int gcd(dstr *v)
@@ -288,8 +288,8 @@ static int gcd(dstr *v)
   mp_gcd(&gg, &xx, &yy, a, b);
   if (!MP_EQ(x, xx)) {
     fputs("\n*** mp_gcd(x) failed", stderr);
-    fputs("\na      = ", stderr); mp_writefile(a, stderr, 10);
-    fputs("\nb      = ", stderr); mp_writefile(b, stderr, 10);
+    fputs("\na     = ", stderr); mp_writefile(a, stderr, 10);
+    fputs("\nb     = ", stderr); mp_writefile(b, stderr, 10);
     fputs("\nexpect = ", stderr); mp_writefile(x, stderr, 10);
     fputs("\nresult = ", stderr); mp_writefile(xx, stderr, 10);
     fputc('\n', stderr);
@@ -297,8 +297,8 @@ static int gcd(dstr *v)
   }
   if (!MP_EQ(y, yy)) {
     fputs("\n*** mp_gcd(y) failed", stderr);
-    fputs("\na      = ", stderr); mp_writefile(a, stderr, 10);
-    fputs("\nb      = ", stderr); mp_writefile(b, stderr, 10);
+    fputs("\na     = ", stderr); mp_writefile(a, stderr, 10);
+    fputs("\nb     = ", stderr); mp_writefile(b, stderr, 10);
     fputs("\nexpect = ", stderr); mp_writefile(y, stderr, 10);
     fputs("\nresult = ", stderr); mp_writefile(yy, stderr, 10);
     fputc('\n', stderr);
@@ -317,8 +317,8 @@ static int gcd(dstr *v)
 
   if (!MP_EQ(g, gg)) {
     fputs("\n*** mp_gcd(gcd) failed", stderr);
-    fputs("\na      = ", stderr); mp_writefile(a, stderr, 10);
-    fputs("\nb      = ", stderr); mp_writefile(b, stderr, 10);
+    fputs("\na     = ", stderr); mp_writefile(a, stderr, 10);
+    fputs("\nb     = ", stderr); mp_writefile(b, stderr, 10);
     fputs("\nexpect = ", stderr); mp_writefile(g, stderr, 10);
     fputs("\nresult = ", stderr); mp_writefile(gg, stderr, 10);
     fputc('\n', stderr);
diff --git a/mp-io.c b/mp-io.c
index d2f2768351d41f80469240d1b533575d833c7370..9639a998b6f2be79adc6b48316a598b65a65440e 100644 (file)
--- a/mp-io.c
+++ b/mp-io.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 47cd2f4bf30bf6457cb8bb9f28075f2437fe9f61..d0a67b6748c96ab16ed05f85a226306532bd6acf 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 5d345a02be67e6bccb1bc50271baed5973b3bcdc..dc9804da717a6a4c53983f5ba2c7acb58eb74160 100644 (file)
--- a/mp-mem.c
+++ b/mp-mem.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -98,7 +98,7 @@ mp *mp_create(size_t sz)
 
 mp *mp_createsecure(size_t sz)
 {
-  mp *m = CREATE(mp);  
+  mp *m = CREATE(mp);
   m->v = mpalloc(MPARENA_SECURE, sz);
   m->vl = m->v + sz;
   m->sz = sz;
@@ -197,7 +197,7 @@ mp *mp_split(mp *m) { MP_SPLIT(m); return (m); }
  * Returns:    ---
  *
  * Use:                Changes an integer's size.  The length and value are not
- *             changed.  It is an error to 
+ *             changed.  It is an error to
  */
 
 void mp_resize(mp *m, size_t sz) { MP_RESIZE(m, sz); }
@@ -273,7 +273,7 @@ mp *mp_dest(mp *m, size_t sz, unsigned f)
        * buffer, or (b) the old buffer is secure and I'm not allowed to
        * discard the old contents.
        */
-      
+
       mparena *a;
       mpw *v;
 
index e615b3f32687b22ffe426c6ba4d6cf187c1aebec..90bdc37d32844d8d3cdc13cb2be958bf03762f9a 100644 (file)
--- a/mp-misc.c
+++ b/mp-misc.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index de20a4d0070bb30c82f206c1fa99174e41653223..ff2cbe0f5d683b564f07d101939a8207b3d46a39 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2006 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,
index 1cacacddde1e06f618d35868674c55bd16a174bb..3ec374c9b8854edd32a141226ce8ac3d01374c50 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -89,7 +89,7 @@ mp *mp_modsqrt(mp *d, mp *a, mp *p)
   /* --- Find the inverse of %$a$% --- */
 
   ainv = mp_modinv(MP_NEW, a, p);
-  
+
   /* --- Split %$p - 1$% into a power of two and an odd number --- */
 
   t = mp_sub(MP_NEW, p, MP_ONE);
@@ -175,11 +175,11 @@ static int verify(dstr *v)
     fputs("a  = ", stderr); mp_writefile(a, stderr, 10); fputc('\n', stderr);
     fputs("p  = ", stderr); mp_writefile(p, stderr, 10); fputc('\n', stderr);
     if (r) {
-      fputs("r  = ", stderr);
+      fputs("r = ", stderr);
       mp_writefile(r, stderr, 10);
       fputc('\n', stderr);
     } else
-      fputs("r  = <undef>\n", stderr);
+      fputs("r = <undef>\n", stderr);
     fputs("rr = ", stderr); mp_writefile(rr, stderr, 10); fputc('\n', stderr);
     ok = 0;
   }
index 2e351589e20193d9cda1d7f39eb5663600cf4f14..1491021b8926e42e44cbd6c5cc62a1454ffa0476 100644 (file)
--- a/mp-sqrt.c
+++ b/mp-sqrt.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -124,7 +124,7 @@ static int verify(dstr *v)
   if (!MP_EQ(q, qq)) {
     ok = 0;
     fputs("\n*** sqrt failed", stderr);
-    fputs("\n*** a      = ", stderr); mp_writefile(a, stderr, 10);
+    fputs("\n*** a     = ", stderr); mp_writefile(a, stderr, 10);
     fputs("\n*** result = ", stderr); mp_writefile(q, stderr, 10);
     fputs("\n*** expect = ", stderr); mp_writefile(qq, stderr, 10);
     fputc('\n', stderr);
index 0e9bc3323d75d79b6c8ff4cd58a00f11d62ff8a5..55c9ae94d29808829dfb079c0cd1c7b316520747 100644 (file)
--- a/mp-test.c
+++ b/mp-test.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/mp.h b/mp.h
index 7f967463d8e61811fd617147ce09cd80ddb9fcc3..99ed0984a66ab0edde8c6917e1877807cc8d4ebe 100644 (file)
--- a/mp.h
+++ b/mp.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -90,14 +90,14 @@ typedef struct mp_expfactor {
 extern mp mp_const[];
 
 #define MP_ZERO         (&mp_const[0])
-#define MP_ONE   (&mp_const[1])
-#define MP_TWO   (&mp_const[2])
+#define MP_ONE  (&mp_const[1])
+#define MP_TWO  (&mp_const[2])
 #define MP_THREE (&mp_const[3])
-#define MP_FOUR  (&mp_const[4])
-#define MP_FIVE  (&mp_const[5])
-#define MP_TEN   (&mp_const[6])
+#define MP_FOUR         (&mp_const[4])
+#define MP_FIVE         (&mp_const[5])
+#define MP_TEN  (&mp_const[6])
 #define MP_256  (&mp_const[7])
-#define MP_MONE  (&mp_const[8])
+#define MP_MONE         (&mp_const[8])
 
 #define MP_NEW ((mp *)0)
 #define MP_NEWSEC (&mp_const[9])
@@ -218,7 +218,7 @@ extern void mp_drop(mp */*m*/);
   if (_mm->ref == 0 && !(_mm->f & MP_CONST))                           \
     mp_destroy(_mm);                                                   \
 } while (0)
-                  
+
 /* --- @mp_split@ --- *
  *
  * Arguments:  @mp *m@ = pointer to a multiprecision integer
@@ -615,7 +615,7 @@ extern void mp_storeb2c(const mp */*m*/, void */*pv*/, size_t /*sz*/);
  *             @mp *a@ = source
  *
  * Returns:    The bitwise complement of the source.
- */ 
+ */
 
 extern mp *mp_not(mp */*d*/, mp */*a*/);
 
@@ -643,11 +643,11 @@ MPX_DOBIN(MP_BITDECL)
  * Synonyms for the commonly-used functions.
  */
 
-#define mp_and  mp_bit0001
-#define mp_or   mp_bit0111
+#define mp_and mp_bit0001
+#define mp_or  mp_bit0111
 #define mp_nand mp_bit1110
-#define mp_nor  mp_bit1000
-#define mp_xor  mp_bit0110
+#define mp_nor mp_bit1000
+#define mp_xor mp_bit0110
 
 /* --- @mp_testbit@ --- *
  *
@@ -724,7 +724,7 @@ MPX_DOBIN(MP_BIT2CDECL)
  */
 
 #define mp_and2c  mp_bit00012c
-#define mp_or2c   mp_bit01112c
+#define mp_or2c          mp_bit01112c
 #define mp_nand2c mp_bit11102c
 #define mp_nor2c  mp_bit10002c
 #define mp_xor2c  mp_bit01102c
index 1f54c29b5ec9998ec921759c05a4f1e658435c46..c726912573c0fda6ed852a92c664618a45873be7 100644 (file)
--- a/mparena.c
+++ b/mparena.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -176,7 +176,7 @@ void mparena_destroy(mparena *a)
 unsigned mparena_count(mparena *a)
 {
   return (a->n);
-} 
+}
 
 /* --- @mpalloc@ --- *
  *
@@ -213,7 +213,7 @@ mpw *mpalloc(mparena *a, size_t sz)
 
 #ifdef MPARENA_DEBUG
   MPARENA_OPENFILE;
-  fprintf(debugfp, "alloc %u\n  before: ", sz);
+  fprintf(debugfp, "alloc %u\n before: ", sz);
   tdump(a->root); putc('\n', debugfp);
 #endif
 
index 08722b314ae48ab84b6d899fff77ee5589189f15..94b69adad8bfd6d4d156da53545e7b907d05f803 100644 (file)
--- a/mparena.h
+++ b/mparena.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 9885e2fae6710cae9429e5b3a4f40fa63a288b3b..ef8fa59fbe42a22c492868fc11ecf4cbe0796181 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,
 /* --- @mpbarrett_exp@ --- *
  *
  * Arguments:  @mpbarrett *mb@ = pointer to Barrett reduction context
- *              @mp *d@ = fake destination
- *              @mp *a@ = base
- *              @mp *e@ = exponent
+ *             @mp *d@ = fake destination
+ *             @mp *a@ = base
+ *             @mp *e@ = exponent
  *
- * Returns:     Result, %$a^e \bmod m$%.
+ * Returns:    Result, %$a^e \bmod m$%.
  */
 
 mp *mpbarrett_exp(mpbarrett *mb, mp *d, mp *a, mp *e)
index 46ffa12bd8639ef3ab18751e1b403c49b3e80f6b..ee5043d2702dbcead9166cf5da5be4813ce5bde5 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 033852702b2102042824bbcd91c6243e6277a5b9..2cfda96ee6f4dd00c0efda743215d9dcbeb7b613 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
   sub_init();
   test_run(argc, argv, tests, SRCDIR "/tests/mpbarrett");
   return (0);
-}   
+}
 
 #endif
 
index b5e604e1583ded6865bea39b9c34c050adab843e..8b0ee88a3a0ac205481efe1c4b59d6f26220e605 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index bb8b36a645c3df39f8105883ec4bd055cccfcb8a..71d9ba7d0d3b1c30e7dfc3394189b1f8fb9b4a82 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -108,11 +108,11 @@ extern mp *mpbarrett_reduce(mpbarrett */*mb*/, mp */*d*/, mp */*m*/);
 /* --- @mpbarrett_exp@ --- *
  *
  * Arguments:  @mpbarrett *mb@ = pointer to Barrett reduction context
- *              @mp *d@ = fake destination
- *              @mp *a@ = base
- *              @mp *e@ = exponent
+ *             @mp *d@ = fake destination
+ *             @mp *a@ = base
+ *             @mp *e@ = exponent
  *
- * Returns:     Result, %$a^e \bmod m$%.
+ * Returns:    Result, %$a^e \bmod m$%.
  */
 
 extern mp *mpbarrett_exp(mpbarrett */*mb*/, mp */*d*/, mp */*a*/, mp */*e*/);
diff --git a/mpcrt.c b/mpcrt.c
index 8c5efbd28fa25c2d892798038f4fc67298eb2046..bf6459f2663d58c1f1e5e833f39837c880371b39 100644 (file)
--- a/mpcrt.c
+++ b/mpcrt.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -106,7 +106,7 @@ void mpcrt_create(mpcrt *c, mpcrt_mod *v, size_t k, mp *n)
        i = 0, j = 1;
       else
        i = 1, j = 0;
-      
+
       x = mp_mul(MP_NEW, v[j].n, v[j].ni);
       x = mp_sub(x, x, MP_ONE);
       mp_div(&x, 0, x, v[i].n);
diff --git a/mpcrt.h b/mpcrt.h
index d2e43a820614c76404cd3b348ad3987def28fcf6..c108916d7c039639cf4f729bd12857271fc812c0 100644 (file)
--- a/mpcrt.h
+++ b/mpcrt.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 3396f0cf540374afd7cb62c787f0085e426f4ad3..1d80f40f73ff3f27396f2db8723eb432b0904142 100644 (file)
--- a/mpdump.c
+++ b/mpdump.c
@@ -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,
diff --git a/mpint.c b/mpint.c
index 627c1fc00152c51a3edb76b7b89b569844ed8826..244ff9a933cbb839079526d650c7c4eac6640fe5 100644 (file)
--- a/mpint.c
+++ b/mpint.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/mpint.h b/mpint.h
index 3bfe36a046e96325bf1d486786354422b143c235..dbf9065c49d26a44fb8128a6eacc9ebc5b6bd55a 100644 (file)
--- a/mpint.h
+++ b/mpint.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 301a0d8e9d36cdc0c6ba8fac38537b1e141e3177..6959baf1aba1fcc849564eabd73eb4b5a023a3df 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,
index 335bde0b0a82c4a8eddabcf2da488922634dd8c3..7730524778732b79ee9baab99b12b92a52b9726d 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index ce46fefb0e034561b780dcb2b71b2367b033db7b..92f40c39d6e3f8e70a05210e5b50a79c9b8c358f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -206,7 +206,7 @@ int main(int argc, char *argv[])
   sub_init();
   test_run(argc, argv, tests, SRCDIR "/tests/mpmont");
   return (0);
-}   
+}
 
 #endif
 
index e62678dac8c98b655d0a275e98b86755f68b53c6..65b3fcc8b85ba3f5df8cb61d77adf396aabf553e 100644 (file)
--- a/mpmont.c
+++ b/mpmont.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -330,7 +330,7 @@ static int tcreate(dstr *v)
     fputs("\n*** bad r", stderr);
     fputs("\nm = ", stderr); mp_writefile(m, stderr, 10);
     fputs("\nexpected ", stderr); mp_writefile(r, stderr, 10);
-    fputs("\n   found ", stderr); mp_writefile(mm.r, stderr, 10);
+    fputs("\n  found ", stderr); mp_writefile(mm.r, stderr, 10);
     fputc('\n', stderr);
     ok = 0;
   }
@@ -339,7 +339,7 @@ static int tcreate(dstr *v)
     fputs("\n*** bad r2", stderr);
     fputs("\nm = ", stderr); mp_writefile(m, stderr, 10);
     fputs("\nexpected ", stderr); mp_writefile(r2, stderr, 10);
-    fputs("\n   found ", stderr); mp_writefile(mm.r2, stderr, 10);
+    fputs("\n  found ", stderr); mp_writefile(mm.r2, stderr, 10);
     fputc('\n', stderr);
     ok = 0;
   }
index 44be36790bc927e3bec3cfe09402691b45a196c8..745cf5a698e02f05af61a760bedc5fcbfe9ac4bd 100644 (file)
--- a/mpmont.h
+++ b/mpmont.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/mpmul.c b/mpmul.c
index 29f499ac52efe0844dcf4fffc81f61eff07c3c9e..0b597f45a8d3a9dc5ba47c54a4c6e7fafed11236 100644 (file)
--- a/mpmul.c
+++ b/mpmul.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/mpmul.h b/mpmul.h
index 8b6fd03138c1c55e7025d84da8c111a9ee9200fa..ecd7b3a627256cfe8df5d59ef841e0d741c20745 100644 (file)
--- a/mpmul.h
+++ b/mpmul.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 0baae4fe9b27b9578db76c3bc03b0d7579c296be..c0f9675f7069208086b69020092deb0710a5dd2a 100644 (file)
--- a/mprand.c
+++ b/mprand.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -89,7 +89,7 @@ mp *mprand(mp *d, unsigned b, grand *r, mpw or)
  *             @grand *r@ = random number source
  *             @mpw or@ = mask for low-order bits
  *
- * Returns:    A pseudorandom integer, unformly distributed over the
+ * Returns:    A pseudorandom integer, unformly distributed over the
  *             interval %$[0, l)$%.
  *
  * Use:                Generates a uniformly-distributed pseudorandom number in the
index ea5d52111b81ae2fb319e10012643cc145eb9f60..cb51e1caf2a2d4b53c099cfb8ea95507f1fea514 100644 (file)
--- a/mprand.h
+++ b/mprand.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -71,7 +71,7 @@ extern mp *mprand(mp */*d*/, unsigned /*b*/, grand */*r*/, mpw /*or*/);
  *             @grand *r@ = random number source
  *             @mpw or@ = mask for low-order bits
  *
- * Returns:    A pseudorandom integer, unformly distributed over the
+ * Returns:    A pseudorandom integer, unformly distributed over the
  *             interval %$[0, l)$%.
  *
  * Use:                Generates a uniformly-distributed pseudorandom number in the
index 67ec50d8194714e0d089f148e03fa6b94f2bf557..c22fd47ccc1a755e23ce135224f7b8c901698a3e 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,
index bc41f60cff431fef757f722da0ecd13e385b96ff..5016f29ea34d56a37a7e53ed5987072df09433c3 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,
@@ -94,11 +94,11 @@ int mpreduce_create(mpreduce *r, mp *p)
   for (i = 0, mp_scan(&sc, p); mp_step(&sc); i++) {
     switch (st | mp_bit(&sc)) {
       case  Z | 1: st = Z1; break;
-      case Z1 | 0: st =  Z; printf("+ %lu\n", i - 1); break;
-      case Z1 | 1: st =  X; printf("- %lu\n", i - 1); break;
+      case Z1 | 0: st =         Z; printf("+ %lu\n", i - 1); break;
+      case Z1 | 1: st =         X; printf("- %lu\n", i - 1); break;
       case  X | 0: st = X0; break;
-      case X0 | 1: st =  X; printf("- %lu\n", i - 1); break;
-      case X0 | 0: st =  Z; printf("+ %lu\n", i - 1); break;
+      case X0 | 1: st =         X; printf("- %lu\n", i - 1); break;
+      case X0 | 0: st =         Z; printf("+ %lu\n", i - 1); break;
     }
   }
   if (st >= X) printf("+ %lu\n", i - 1);
@@ -109,11 +109,11 @@ int mpreduce_create(mpreduce *r, mp *p)
   for (i = 0, mp_scan(&sc, p); i < d && mp_step(&sc); i++) {
     switch (st | mp_bit(&sc)) {
       case  Z | 1: st = Z1; break;
-      case Z1 | 0: st =  Z; op = MPRI_SUB; goto instr;
-      case Z1 | 1: st =  X; op = MPRI_ADD; goto instr;
+      case Z1 | 0: st =         Z; op = MPRI_SUB; goto instr;
+      case Z1 | 1: st =         X; op = MPRI_ADD; goto instr;
       case  X | 0: st = X0; break;
-      case X0 | 1: st =  X; op = MPRI_ADD; goto instr;
-      case X0 | 0: st =  Z; op = MPRI_SUB; goto instr;
+      case X0 | 1: st =         X; op = MPRI_ADD; goto instr;
+      case X0 | 0: st =         Z; op = MPRI_SUB; goto instr;
       instr:
        w = (d - i)/MPW_BITS + 1;
        b = (bb + i)%MPW_BITS;
@@ -332,11 +332,11 @@ mp *mpreduce_do(mpreduce *r, mp *d, mp *x)
 /* --- @mpreduce_exp@ --- *
  *
  * Arguments:  @mpreduce *mr@ = pointer to reduction context
- *              @mp *d@ = fake destination
- *              @mp *a@ = base
- *              @mp *e@ = exponent
+ *             @mp *d@ = fake destination
+ *             @mp *a@ = base
+ *             @mp *e@ = exponent
  *
- * Returns:     Result, %$a^e \bmod m$%.
+ * Returns:    Result, %$a^e \bmod m$%.
  */
 
 mp *mpreduce_exp(mpreduce *mr, mp *d, mp *a, mp *e)
index 48c9e1d8a1755ccd3b2dd1f2475aecd5c203bf51..80037d17ee89c37faae88d081f8593fc5f840e29 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,
@@ -110,11 +110,11 @@ extern mp *mpreduce_do(mpreduce */*r*/, mp */*d*/, mp */*x*/);
 /* --- @mpreduce_exp@ --- *
  *
  * Arguments:  @mpreduce *mr@ = pointer to reduction context
- *              @mp *d@ = fake destination
- *              @mp *a@ = base
- *              @mp *e@ = exponent
+ *             @mp *d@ = fake destination
+ *             @mp *a@ = base
+ *             @mp *e@ = exponent
  *
- * Returns:     Result, %$a^e \bmod m$%.
+ * Returns:    Result, %$a^e \bmod m$%.
  */
 
 extern mp *mpreduce_exp(mpreduce */*mr*/, mp */*d*/, mp */*a*/, mp */*e*/);
index 480f5aa531596c19d473a7804bf8a71fa4df8629..a939333a3bb7969dd4991fa6a39d13c0b562c69e 100644 (file)
--- a/mpscan.c
+++ b/mpscan.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index aaee04908401defec33a4b04ca8484c11de90c51..0d02519e17a5ea60f201257a6f86d61e980b8f66 100644 (file)
--- a/mpscan.h
+++ b/mpscan.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 2928eb63bca9d7d9b941ed8ed7e76cb4faf1f6c9..6a9ad687a0781d28ae83dabfc7f0200c7f24f7ad 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index fbb1ef20a50dff6e9b0c4f0dbe9850692fce9dac..1eb273aa653105c5296fec4c0de68877f0f88240 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index ffb2df92b5e78cc5da38fdd2609c5334fd01e307..e8142fbd8ab327750e7210b1bd671fe88d33900e 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2002 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,
index ac6e94aad508b8df981c84ead095d7b840814944..ecb8f182285b36a5a60dd7dc24bc9822134a179d 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 9cca8a83dacc451caf0c9195423a61ba08ca23ac..ee73fed9510f6e65985ea2542ea916dfd507cc57 100644 (file)
--- a/mptext.c
+++ b/mptext.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -41,7 +41,7 @@
 
 /* --- Maximum recursion depth --- *
  *
- * This is the number of bits in a @size_t@ object.  Why? 
+ * This is the number of bits in a @size_t@ object.  Why?
  *
  * To see this, let %$b = \textit{MPW\_MAX} + 1$% and let %$Z$% be the
  * largest @size_t@ value.  Then the largest possible @mp@ is %$M - 1$% where
@@ -123,7 +123,7 @@ mp *mp_read(mp *m, int radix, const mptext_ops *ops, void *p)
   /* --- Initialize the stacks --- */
 
   mp_build(&rr, &rd, &rd + 1);
-  pow[0] = &rr;  
+  pow[0] = &rr;
   pows = 1;
 
   sp = 0;
@@ -262,7 +262,7 @@ restart:
        a |= MPW(x) << b;
       } else {
        a |= MPW(x) >> (bit - b);
-       b += MPW_BITS - bit;
+       b += MPW_BITS - bit;
        *--v = MPW(a);
        n--;
        if (!n) {
@@ -337,7 +337,7 @@ restart:
        x = ch - '0';
       else {
        if (rd <= 36)
-         ch = tolower(ch);       
+         ch = tolower(ch);
        if (ch >= 'a' && ch <= 'z')     /* ASCII dependent! */
          x = ch - 'a' + 10;
        else if (ch >= 'A' && ch <= 'Z')
@@ -441,7 +441,7 @@ restart:
   /* --- Bail out if the number was bad --- */
 
 done:
-  if (!(f & f_ok))    
+  if (!(f & f_ok))
     return (0);
 
   /* --- Set the sign and return --- */
@@ -689,8 +689,8 @@ int mp_write(mp *m, int radix, const mptext_ops *ops, void *p)
     case   8: case   -8: return (binary(m, 3, radix, ops, p));
     case  16: case  -16: return (binary(m, 4, radix, ops, p));
     case  32: case  -32: return (binary(m, 5, radix, ops, p));
-              case  -64: return (binary(m, 6, radix, ops, p));
-              case -128: return (binary(m, 7, radix, ops, p));
+             case  -64: return (binary(m, 6, radix, ops, p));
+             case -128: return (binary(m, 7, radix, ops, p));
   }
 
   /* --- If the number is small, do it the easy way --- */
@@ -757,7 +757,7 @@ static int verify(dstr *v)
   if (m) {
     if (!ob) {
       fprintf(stderr, "*** unexpected successful parse\n"
-                     "*** input [%2i] =     ", ib);
+                     "*** input [%2i] =     ", ib);
       if (ib < 0)
        type_hex.dump(&v[1], stderr);
       else
@@ -769,17 +769,17 @@ static int verify(dstr *v)
       mp_writedstr(m, &d, ob);
       if (d.len != v[3].len || memcmp(d.buf, v[3].buf, d.len) != 0) {
        fprintf(stderr, "*** failed read or write\n"
-                       "*** input [%2i]      = ", ib);
+                       "*** input [%2i]      = ", ib);
        if (ib < 0)
          type_hex.dump(&v[1], stderr);
        else
          fputs(v[1].buf, stderr);
-       fprintf(stderr, "\n*** output [%2i]     = ", ob);
+       fprintf(stderr, "\n*** output [%2i]     = ", ob);
        if (ob < 0)
          type_hex.dump(&d, stderr);
        else
          fputs(d.buf, stderr);
-       fprintf(stderr, "\n*** expected [%2i]   = ", ob);
+       fprintf(stderr, "\n*** expected [%2i]   = ", ob);
        if (ob < 0)
          type_hex.dump(&v[3], stderr);
        else
@@ -792,7 +792,7 @@ static int verify(dstr *v)
   } else {
     if (ob) {
       fprintf(stderr, "*** unexpected parse failure\n"
-                     "*** input [%2i]    = ", ib);
+                     "*** input [%2i]    = ", ib);
       if (ib < 0)
        type_hex.dump(&v[1], stderr);
       else
@@ -810,17 +810,17 @@ static int verify(dstr *v)
   if (v[1].len - off != v[4].len ||
       memcmp(v[1].buf + off, v[4].buf, v[4].len) != 0) {
     fprintf(stderr, "*** leftovers incorrect\n"
-                   "*** input [%2i]    = ", ib);
+                   "*** input [%2i]    = ", ib);
     if (ib < 0)
       type_hex.dump(&v[1], stderr);
     else
       fputs(v[1].buf, stderr);
     fprintf(stderr, "\n*** expected `%s'\n"
-                   "*** found `%s'\n",
+                   "*** found `%s'\n",
            v[4].buf, v[1].buf + off);
     ok = 0;
   }
-           
+
   dstr_destroy(&d);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
   return (ok);
index fe899461791de73b971833229b2e9e5e546074ad..dade3cf0ee4153561054812f32b93948e57bd18a 100644 (file)
--- a/mptext.h
+++ b/mptext.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -125,7 +125,7 @@ extern int mp_writefile(mp */*m*/, FILE */*fp*/, int /*radix*/);
   fputc('\n', fp);                                                     \
 } while (0)
 
-#define MP_DOFPRINTR(fp, name, m, r)                                   \
+#define MP_DOFPRINTR(fp, name, m, r)                                   \
   MP_DOFPRINTFR(fp, (fp, "%s = ", name), m, r)
 
 #define MP_PRINT(name, m) MP_DOFPRINTR(stdout, name, m, 10)
index 381f3dc7de7c752a81d1b1f97a5adfb80387bf99..eb8b975c4337d4856301087e8f9e72486375eafa 100644 (file)
--- a/mptypes.c
+++ b/mptypes.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -158,7 +158,7 @@ int main(int argc, char *argv[])
     w.bits /= 2; w.max = ~(~((umax)0) << w.bits);
     d.bits = w.bits * 2; d.max = ~(~((umax)0) << d.bits);
     mpw = &w; mpd = &d;
-  }    
+  }
 #endif
   for (p2 = 1; (p2 << 1) < mpw->bits; p2 <<= 1);
 
diff --git a/mpw.h b/mpw.h
index b5269dca36f00c11d30df68f8552a3bd7d53d696..e37ea1600208486e8527be233e524b67a8a82faf 100644 (file)
--- a/mpw.h
+++ b/mpw.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
 
 /* --- @MPW@ --- *
  *
- * Arguments:   @x@ = an unsigned value
+ * Arguments:  @x@ = an unsigned value
  *
- * Use:         Expands to the value of @x@ masked and typecast to a
- *              multiprecision integer word.
+ * Use:                Expands to the value of @x@ masked and typecast to a
+ *             multiprecision integer word.
  */
 
 #define MPW(x) ((mpw)((x) & MPW_MAX))
 
 /* --- @MPWS@ --- *
  *
- * Arguments:   @n@ = number of words
+ * Arguments:  @n@ = number of words
  *
- * Use:         Expands to the number of bytes occupied by a given number of
- *              words.
+ * Use:                Expands to the number of bytes occupied by a given number of
+ *             words.
  */
 
 #define MPWS(n) ((n) * sizeof(mpw))
index 94a2cda2f8a07e35ba7d93e66d0406a3d5f09a3a..081de885c7915fac1e3e575c299364777f191187 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -174,21 +174,21 @@ void mpx_kmul(mpw *dv, mpw *dvl,
 #include <mLib/alloc.h>
 #include <mLib/testrig.h>
 
-#define ALLOC(v, vl, sz) do {                                           \
-  size_t _sz = (sz);                                                    \
-  mpw *_vv = xmalloc(MPWS(_sz));                                        \
-  mpw *_vvl = _vv + _sz;                                                \
-  (v) = _vv;                                                            \
-  (vl) = _vvl;                                                          \
+#define ALLOC(v, vl, sz) do {                                          \
+  size_t _sz = (sz);                                                   \
+  mpw *_vv = xmalloc(MPWS(_sz));                                       \
+  mpw *_vvl = _vv + _sz;                                               \
+  (v) = _vv;                                                           \
+  (vl) = _vvl;                                                         \
 } while (0)
 
-#define LOAD(v, vl, d) do {                                             \
-  const dstr *_d = (d);                                                 \
-  mpw *_v, *_vl;                                                        \
-  ALLOC(_v, _vl, MPW_RQ(_d->len));                                      \
-  mpx_loadb(_v, _vl, _d->buf, _d->len);                                 \
-  (v) = _v;                                                             \
-  (vl) = _vl;                                                           \
+#define LOAD(v, vl, d) do {                                            \
+  const dstr *_d = (d);                                                        \
+  mpw *_v, *_vl;                                                       \
+  ALLOC(_v, _vl, MPW_RQ(_d->len));                                     \
+  mpx_loadb(_v, _vl, _d->buf, _d->len);                                        \
+  (v) = _v;                                                            \
+  (vl) = _vl;                                                          \
 } while (0)
 
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
@@ -222,8 +222,8 @@ static int umul(dstr *v)
   mpx_kmul(d, dl, a, al, b, bl, s, sl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** umul failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
index 92fd0ccca01c0a2ba069b0679f7b28d9b2d703b1..ba7aa18bcd9607e686160b5c6cb321e9e009b315 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -123,7 +123,7 @@ void mpx_ksqr(mpw *dv, mpw *dvl,
     MPX_COPY(rdv + m + 1, dvl, svm + 1, svn);
     UADD(rdv, sv, svm + 1);
     USUB(tdv, sv, svn);
-    
+
     if (m > MPK_THRESH)
       mpx_ksqr(sv, ssv, av, avm, ssv, svl);
     else
@@ -141,21 +141,21 @@ void mpx_ksqr(mpw *dv, mpw *dvl,
 #include <mLib/alloc.h>
 #include <mLib/testrig.h>
 
-#define ALLOC(v, vl, sz) do {                                           \
-  size_t _sz = (sz);                                                    \
-  mpw *_vv = xmalloc(MPWS(_sz));                                        \
-  mpw *_vvl = _vv + _sz;                                                \
-  (v) = _vv;                                                            \
-  (vl) = _vvl;                                                          \
+#define ALLOC(v, vl, sz) do {                                          \
+  size_t _sz = (sz);                                                   \
+  mpw *_vv = xmalloc(MPWS(_sz));                                       \
+  mpw *_vvl = _vv + _sz;                                               \
+  (v) = _vv;                                                           \
+  (vl) = _vvl;                                                         \
 } while (0)
 
-#define LOAD(v, vl, d) do {                                             \
-  const dstr *_d = (d);                                                 \
-  mpw *_v, *_vl;                                                        \
-  ALLOC(_v, _vl, MPW_RQ(_d->len));                                      \
-  mpx_loadb(_v, _vl, _d->buf, _d->len);                                 \
-  (v) = _v;                                                             \
-  (vl) = _vl;                                                           \
+#define LOAD(v, vl, d) do {                                            \
+  const dstr *_d = (d);                                                        \
+  mpw *_v, *_vl;                                                       \
+  ALLOC(_v, _vl, MPW_RQ(_d->len));                                     \
+  mpx_loadb(_v, _vl, _d->buf, _d->len);                                        \
+  (v) = _v;                                                            \
+  (vl) = _vl;                                                          \
 } while (0)
 
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
@@ -187,7 +187,7 @@ static int usqr(dstr *v)
   mpx_ksqr(d, dl, a, al, s, sl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** usqr failed\n");
-    dumpmp("       a", a, al);
+    dumpmp("      a", a, al);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
diff --git a/mpx.c b/mpx.c
index 01264b1e117e2b0989123dd3b805bf818b4b2729..29e1dedbb1656c8fce39a0f0e7d46b77cdceeb64 100644 (file)
--- a/mpx.c
+++ b/mpx.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -417,7 +417,7 @@ void mpx_lsl(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, size_t n)
   }
 
   /* --- Break out word and bit shifts for more sophisticated work --- */
-       
+
   nw = n / MPW_BITS;
   nb = n % MPW_BITS;
 
@@ -515,7 +515,7 @@ void mpx_lslc(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, size_t n)
   }
 
   /* --- Break out word and bit shifts for more sophisticated work --- */
-       
+
   nw = n / MPW_BITS;
   nb = n % MPW_BITS;
 
@@ -950,7 +950,7 @@ void mpx_umul(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl,
   MPX_SHRINK(bv, bvl);
 
   /* --- Deal with a multiply by zero --- */
-  
+
   if (bv == bvl) {
     MPX_ZERO(dv, dvl);
     return;
@@ -1330,7 +1330,7 @@ mpw mpx_udivn(mpw *qv, mpw *qvl, const mpw *rv, const mpw *rvl, mpw d)
 } while (0)
 
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
-  
+
 static void dumpbits(const char *msg, const void *pp, size_t sz)
 {
   const octet *p = pp;
@@ -1515,7 +1515,7 @@ static int lsl(dstr *v)
   mpx_lsl(d, dl, a, al, n);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** lsl(%i) failed\n", n);
-    dumpmp("       a", a, al);
+    dumpmp("      a", a, al);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -1540,7 +1540,7 @@ static int lslc(dstr *v)
   mpx_lslc(d, dl, a, al, n);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** lslc(%i) failed\n", n);
-    dumpmp("       a", a, al);
+    dumpmp("      a", a, al);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -1565,7 +1565,7 @@ static int lsr(dstr *v)
   mpx_lsr(d, dl, a, al, n);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** lsr(%i) failed\n", n);
-    dumpmp("       a", a, al);
+    dumpmp("      a", a, al);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -1591,8 +1591,8 @@ static int uadd(dstr *v)
   mpx_uadd(d, dl, a, al, b, bl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** uadd failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -1618,8 +1618,8 @@ static int usub(dstr *v)
   mpx_usub(d, dl, a, al, b, bl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** usub failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -1645,8 +1645,8 @@ static int umul(dstr *v)
   mpx_umul(d, dl, a, al, b, bl);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** umul failed\n");
-    dumpmp("       a", a, al);
-    dumpmp("       b", b, bl);
+    dumpmp("      a", a, al);
+    dumpmp("      b", b, bl);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
@@ -1670,7 +1670,7 @@ static int usqr(dstr *v)
   mpx_usqr(d, dl, a, al);
   if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** usqr failed\n");
-    dumpmp("       a", a, al);
+    dumpmp("      a", a, al);
     dumpmp("expected", c, cl);
     dumpmp("  result", d, dl);
     ok = 0;
diff --git a/mpx.h b/mpx.h
index 15253edad604317ab2dcfb3ddff1e21d8039cc90..19f5cc7f6308640e8867f95ce4c484b7653d87d4 100644 (file)
--- a/mpx.h
+++ b/mpx.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -87,7 +87,7 @@
   if (_v == _vl)                                                       \
     (b) = 0;                                                           \
   else {                                                               \
-    unsigned long _b = MPW_BITS * (_vl - _v - 1) + 1;                  \
+    unsigned long _b = MPW_BITS * (_vl - _v - 1) + 1;                  \
     mpw _w = _vl[-1];                                                  \
     unsigned _k = MPW_P2;                                              \
     while (_k) {                                                       \
@@ -399,11 +399,11 @@ MPX_DOBIN(MPX_BITDECL)
  * Synonyms for the commonly-used functions above.
  */
 
-#define mpx_and  mpx_bit0001
-#define mpx_or   mpx_bit0111
+#define mpx_and         mpx_bit0001
+#define mpx_or  mpx_bit0111
 #define mpx_nand mpx_bit1110
-#define mpx_nor  mpx_bit1000
-#define mpx_xor  mpx_bit0110
+#define mpx_nor         mpx_bit1000
+#define mpx_xor         mpx_bit0110
 
 /* --- @mpx_not@ --- *
  *
@@ -690,7 +690,7 @@ extern void mpx_usqr(mpw */*dv*/, mpw */*dvl*/,
  * Arguments:  @mpw *qv, *qvl@ = quotient vector base and limit
  *             @mpw *rv, *rvl@ = dividend/remainder vector base and limit
  *             @const mpw *dv, *dvl@ = divisor vector base and limit
- *             @mpw *sv, *svl@ = scratch workspace 
+ *             @mpw *sv, *svl@ = scratch workspace
  *
  * Returns:    ---
  *
index 6020e0c580ab6c8e98bd81c485dc9b6b3c1ce492..9e0f295c7c4ae7612dba375a7a2a4570dfa0f0ee 100644 (file)
--- a/noekeon.c
+++ b/noekeon.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -76,9 +76,9 @@ void noekeon_init(noekeon_ctx *k, const void *buf, size_t sz)
   static const noekeon_ctx nullkey = { { 0, 0, 0, 0 } };
 
   KSZ_ASSERT(noekeon, sz);
-  k->k[0] = LOAD32(p +  0);
-  k->k[1] = LOAD32(p +  4);
-  k->k[2] = LOAD32(p +  8);
+  k->k[0] = LOAD32(p + 0);
+  k->k[1] = LOAD32(p + 4);
+  k->k[2] = LOAD32(p + 8);
   k->k[3] = LOAD32(p + 12);
   noekeon_eblk(&nullkey, k->k, k->k);
 }
@@ -108,7 +108,7 @@ void noekeon_init(noekeon_ctx *k, const void *buf, size_t sz)
   a ^= ka; b ^= kb; c ^= kc; d ^= kd;                                  \
   _x = b ^ d; _x ^= ROR32(_x, 8) ^ ROL32(_x, 8); a ^= _x; c ^= _x;     \
 } while (0)
-  
+
 #define ITHETA(ka, kb, kc, kd, a, b, c, d) do {                                \
   uint32 _x;                                                           \
   _x = b ^ d; _x ^= ROR32(_x, 8) ^ ROL32(_x, 8); a ^= _x; c ^= _x;     \
index 16ec01a210a89d32e893e95011b589abdfb2f8e5..e8497083dd4f10097a5244502efb1b5a09be85e1 100644 (file)
--- a/noekeon.h
+++ b/noekeon.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/noise.c b/noise.c
index c122506f2271cb91d56be0a67540b68bfd51c1d5..e3393172fcdee00a42491dc617566e9e13975379 100644 (file)
--- a/noise.c
+++ b/noise.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -111,7 +111,7 @@ static int timer(rand_pool *r, struct timeval *tv)
   unsigned long x, d, dd;
   int de, dde;
   int ret;
-  
+
   x = tv->tv_usec + MILLION * tv->tv_sec;
   d = x ^ noise_last;
   dd = d ^ noise_diff;
diff --git a/noise.h b/noise.h
index 0147c95eba9463619dcdcb9b4c052354e6c94bc0..48fe6bd0bdf33b25619366c44ff84867c0c848e4 100644 (file)
--- a/noise.h
+++ b/noise.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
diff --git a/oaep.c b/oaep.c
index 2b9d779092f923003fc0db219df733a651e440b6..ab60b5e7b15072c3d249f80991cd4f2d5b526757 100644 (file)
--- a/oaep.c
+++ b/oaep.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 8f21a872efb60ff0eb452fc836cc775b2aa4db24..82503959b4e70ae2cf460b7a0a70f646c4a6a3cc 100644 (file)
--- a/ofb-def.h
+++ b/ofb-def.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -506,22 +506,22 @@ int main(void)                                                            \
     if (memcmp(pt, text, sizeof(text)) == 0) {                         \
       done++;                                                          \
       if (sizeof(text) < 40 || done % 8 == 0)                          \
-        fputc('.', stdout);                                            \
+       fputc('.', stdout);                                             \
       if (done % 480 == 0)                                             \
-        fputs("\n\t", stdout);                                         \
+       fputs("\n\t", stdout);                                          \
       fflush(stdout);                                                  \
     } else {                                                           \
       printf("\nError (sz = %lu)\n", (unsigned long)sz);               \
       status = 1;                                                      \
       printf("\tplaintext      = "); hexdump(text, sz);                        \
-        printf(", "); hexdump(text + sz, rest);                                \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(text + sz, rest);                         \
+       fputc('\n', stdout);                                            \
       printf("\tciphertext     = "); hexdump(ct, sz);                  \
-        printf(", "); hexdump(ct + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(ct + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       printf("\trecovered text = "); hexdump(pt, sz);                  \
-        printf(", "); hexdump(pt + sz, rest);                          \
-        fputc('\n', stdout);                                           \
+       printf(", "); hexdump(pt + sz, rest);                           \
+       fputc('\n', stdout);                                            \
       fputc('\n', stdout);                                             \
     }                                                                  \
     if (sz < 63)                                                       \
diff --git a/ofb.h b/ofb.h
index e38dae2a6987417d612769d89faab01bcf074888..970acf75d87ff13dcd0bcd4dd0a545cf7f040561 100644 (file)
--- a/ofb.h
+++ b/ofb.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index d4ae0c163db3fdea71100b559d06871874af8a5e..5a2014d6543bab2df1a3420672f46c148f30c43d 100644 (file)
 %%% 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,
@@ -62,7 +62,7 @@
   superficially similar to (for example) the Linux and OpenBSD random number
   generators, it introduces a number of its own innovations which improve
   both security and performance.
-  
+
   The Catacomb generator uses an optional secret key, which can provide
   additional security against forward state compromise extension.  It uses a
   catastrophic reseeding operation to prevent a compromise yielding
@@ -131,8 +131,8 @@ follows:
     I'[8j + b] =
     \begin{cases}
       x\bigl[(r + b) \bmod 8\bigr] \xor
-        \bigxor_{0 \le k < N_I}
-          a_k I\bigl[8\bigl((j + k) \bmod N_I\bigr) + b\bigr] & if $i = j$ \\
+       \bigxor_{0 \le k < N_I}
+         a_k I\bigl[8\bigl((j + k) \bmod N_I\bigr) + b\bigr] & if $i = j$ \\
       I[j + b] & otherwise
     \end{cases} \\
     \textrm{for all integers $j$ and $b$ where $0 \le j < N_I$ and
@@ -210,7 +210,7 @@ performance improvement stops being linear with the buffer size on my
 machine.
 
 \begin{thebibliography}{99}
-  
+
 \bibitem{cp:rand}
   J.~Kelsey, B.~Schneier, D.~Wagner, and C.~Hall, ``Cryptographic Attacks on
   Pseudorandom Number Generators'', \emph{Fast Software Encryption, Fifth
@@ -229,4 +229,4 @@ machine.
 
 %%%----- That's all, folks --------------------------------------------------
 
-\end{document}
\ No newline at end of file
+\end{document}
index 5a65ed584c5907f07a5847027354137456dba7fc..e1ad2f524bf467fcccc02608d0772b8ee857697e 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index 410b7af65262f9f73238a0d598355354e17d36fb..8bbbb9d48f587f967cbdc0f7ababe0467180152f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -142,7 +142,7 @@ int passphrase_read(const char *tag, unsigned mode, char *buf, size_t sz)
 fail:
   dstr_destroy(&d);
   memset(buf, 0, sz);
-  return (-1);      
+  return (-1);
 }
 
 /* --- @passphrase_cancel@ --- *
index 611b7e1be9b266bf3e123dc1c2518054e7a1e345..89836c32a23d765a3de94a0bb68477c49da07d9e 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 354b0f6ed4c4501e278fe3da969b8f82ffe56913..3b1447a81bbe1f9be1ec8175911908d29c450fc3 100644 (file)
--- a/pcheck.pl
+++ b/pcheck.pl
@@ -28,15 +28,15 @@ EOF
     for (;;) {
       $_ = <>; @F = split; $F[0] eq "#:factor" or last; $f = $F[1];
       print <<EOF;
-        f = $f;
-        if (!ptest(f)) print "  factor not prime", f;
-        ff *= f;
+       f = $f;
+       if (!ptest(f)) print "  factor not prime", f;
+       ff *= f;
 EOF
       $ll = 1;
     }
     if ($ll) {
       print <<EOF;
-        if (ff != p - 1) print "  missing factors";
+       if (ff != p - 1) print "  missing factors";
 EOF
     }
   }
index ad1f18290f624828447334cd4b21647e85ceb9c7..d356ce99cbfa6e87157ae5ba8f7c92815a269b6b 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,
@@ -436,7 +436,7 @@ typedef struct jobops {
 } jobops;
 
 static const jobops jobtab[] = {
-  { "g-prime-exp",             grp_init,               gr_run },
+  { "g-prime-exp",             grp_init,               gr_run },
   { "g-ec-mul",                        grec_init,              gr_run },
   { "g-prime-exp-sim",         grp_init,               grsim_run },
   { "g-ec-mul-sim",            grec_init,              grsim_run },
@@ -582,7 +582,7 @@ int main(int argc, char *argv[])
   p = j->init(&o);
 
   n = 0;
-  ttot = itot =  0;
+  ttot = itot =         0;
   gettimeofday(&tv_now, 0);
   do {
     tv_addl(&tv_next, &tv_now, o.t, fmod(o.t * MILLION, MILLION));
diff --git a/pfilt.c b/pfilt.c
index e502404485281d6334e9d1f746839a060a7b6a8c..ae99a9b6c384d3b909e6c776ad889c1c84eace11 100644 (file)
--- a/pfilt.c
+++ b/pfilt.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -254,7 +254,7 @@ int pfilt_muladd(pfilt *p, const pfilt *q, mpw m, mpw a)
   }
 
   /* --- Gallivant through the residue table --- */
-      
+
   for (i = 0; i < NPRIME; i++) {
     p->r[i] = (q->r[i] * m + a) % primetab[i];
     if (!p->r[i] && rc == PGEN_TRY) {
diff --git a/pfilt.h b/pfilt.h
index 652d2eb321bfc565114c35585670741d38d91d45..24f94c73fe9bedeb2fd6eb86b653723c9ef51569 100644 (file)
--- a/pfilt.h
+++ b/pfilt.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 71a1c49d005c5044dfc99660d60376457c3f42d9..863b15109a8559074009e08a2c4957490d448c9e 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index e27f7daffc7cb1473fa1b3230984034cb429ba47..b7e85989ff16d634c444ad3e24550cd88746453d 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2006 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,
index 9ecb3b4ad34d8ef926fbf649db094423884c355a..c917998ec85ca8a9cb593cc59bedb3b1134e5b77 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/pgen.c b/pgen.c
index d989a4c9fa2285ab2b22a437e13c3a786f32c443..1a2a8ac6fb422e80dc9431595c79aa0f05fe8fa6 100644 (file)
--- a/pgen.c
+++ b/pgen.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -66,7 +66,7 @@ int pgen_filter(int rq, pgen_event *ev, void *p)
       rc = PGEN_ABORT;
       break;
   }
-       
+
   if (rc == PGEN_FAIL && !((f->step | f->f.m->v[0]) & 1))
     rc = pfilt_step(&f->f, 1);
   while (rc == PGEN_FAIL)
@@ -106,7 +106,7 @@ int pgen_jump(int rq, pgen_event *ev, void *p)
       pfilt_destroy(&f->f);
       return (PGEN_DONE);
   }
-       
+
   while (rc == PGEN_FAIL)
     rc = pfilt_jump(&f->f, f->j);
   ev->m = MP_COPY(f->f.m);
@@ -288,7 +288,7 @@ mp *pgen(const char *name, mp *d, mp *m, pgen_proc *event, void *ectx,
        if (p == P_TEST)
          act |= A_ENDTEST;
       }
-    }  
+    }
 
     /* --- Close down tester and stepper functions --- */
 
@@ -373,7 +373,7 @@ static int t_primep(dstr *v)
 
   mp_drop(m);
   assert(mparena_count(MPARENA_GLOBAL) == 0);
-  return (ok);  
+  return (ok);
 }
 
 static int verify(dstr *v)
diff --git a/pgen.h b/pgen.h
index a80fefaebf202e347f2100a5d40b0843a4f64562..a066e2848982d3360a9eca862be8b26c53a75ab5 100644 (file)
--- a/pgen.h
+++ b/pgen.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -189,7 +189,7 @@ typedef struct pgen_simulctx {
   unsigned n;                          /* Size of the vector */
   mp *step;                            /* Basic stepping value */
 } pgen_simulctx;
-  
+
 /* --- @pgen_simulstep@ --- *
  *
  * Step a collection of numbers simultaneously.
index 2395f52752978ec4904443df3f9bbdcf3fee64c7..fbb7f11e0dc6e9458d2178f4e85e30225f0927ec 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -373,4 +373,4 @@ again:
 }
 
 /*----- That's all, folks -------------------------------------------------*/
+
diff --git a/pixie.1 b/pixie.1
index 75bf0b7d1f2f7a0829e3ec5b390758706cab7f05..c83b013c264384be02f288c80e299da55fa8d934 100644 (file)
--- a/pixie.1
+++ b/pixie.1
@@ -78,7 +78,7 @@ Print the result on standard output, followed by a newline.
 .TP
 .B "\-PP, \-\-verify-passphrase"
 Connect to a running pixie and request verification of the passphrase
-with tag 
+with tag
 .IR tag .
 If no pixie is running, request the passphrase from the terminal.  Print
 the result on standard output, followed by a newline.
diff --git a/pixie.c b/pixie.c
index 95c6252104caf729f0213b2c12f7f0e13a3290d5..af6483a6ea8c946b264811fe4f57db780d9ed007 100644 (file)
--- a/pixie.c
+++ b/pixie.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -197,7 +197,7 @@ static void *p_alloc(size_t sz)
       return (p);
     if (P_ROOT->next == P_ROOT)
       return (0);
-    if (verbose) { 
+    if (verbose) {
       log("flushing passphrase `%s' to free up needed space",
          P_ROOT->next->tag);
     }
@@ -625,7 +625,7 @@ static unsigned long pixserv_timeout(const char *p)
     case 'h': t *= 60;
     case 'm': t *= 60;
     case 's': if (q[1] != 0)
-      default:    t = 0;
+      default:   t = 0;
     case 0:   break;
   }
   return (t);
@@ -1111,7 +1111,7 @@ static void pix_client(struct sockaddr_un *sun, size_t sz, char *argv[])
     shutdown(fd, 1);
     c_flags |= cf_uclose | cf_cooked;
     dstr_destroy(&d);
-  } 
+  }
 
   /* --- And repeat --- */
 
@@ -1253,7 +1253,7 @@ int main(int argc, char *argv[])
 
       /* --- Magic terminator --- */
 
-      { 0,             0,              0,      0 }      
+      { 0,             0,              0,      0 }
     };
 
     int i = mdwopt(argc, argv, "hVuqvCPs:c:ft:idl", opts, 0, 0, 0);
@@ -1410,7 +1410,7 @@ int main(int argc, char *argv[])
 
   /* --- Fork into the background if requested --- */
 
-  if (f & f_daemon) {    
+  if (f & f_daemon) {
     pid_t kid;
 
     if (((f & f_stdin) &&
diff --git a/pixie.h b/pixie.h
index 25cd86fb0aaf72d01a780c85074dbb0542eaf4d6..a5bc1718eb1998f1cad2c3eacb825c13b1076cf3 100644 (file)
--- a/pixie.h
+++ b/pixie.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -97,7 +97,7 @@
  *
  * INFO message
  *     Reports a human-readable informational message.  Further responses
- *     follow.  
+ *     follow.
  *
  * ITEM tag expires
  *     Reports a passphrase in response to a LIST request.  One ITEM
diff --git a/pkcs1.c b/pkcs1.c
index 34604676a974c26b4728bdcc74200a18a499c1af..9241c45eb0c1c73d932698a61215296adbb827a4 100644 (file)
--- a/pkcs1.c
+++ b/pkcs1.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -90,7 +90,7 @@ mp *pkcs1_cryptencode(mp *d, const void *m, size_t msz, octet *b, size_t sz,
   assert(q == b + sz);
 
   /* --- Collect the result --- */
-  
+
   return (mp_loadb(d, b, sz));
 }
 
diff --git a/prim.c b/prim.c
index 79ab7313bf9da0952e67a092a6b08a8b6b3257fb..476791207ed08febbbd21c78f24207a47edfcad8 100644 (file)
--- a/prim.c
+++ b/prim.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -53,14 +53,14 @@ int prim_test(int rq, pgen_event *ev, void *p)
       rc = PGEN_FAIL;
 
       if (!c->exp)
-        x = mp_copy(ev->m);
+       x = mp_copy(ev->m);
       else {
        x = mpmont_exp(&c->mm, MP_NEW, ev->m, c->exp);
        if (MP_EQ(x, MP_ONE))
          goto done;
       }
       if (c->n == 0)
-        goto ok;
+       goto ok;
       else {
        size_t n = c->n;
        mp **f = c->f;
diff --git a/prim.h b/prim.h
index e0788c05695403e050fc639ef676c0b24ca8d234..1df2ed638f901c095dd463109327de75df6cb39b 100644 (file)
--- a/prim.h
+++ b/prim.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/pss.c b/pss.c
index 7379b11794ffdca8500e199e98711707097c97d9..b4771db2f6f8b2c6aa2d3a6e09b4e6b931d54cfd 100644 (file)
--- a/pss.c
+++ b/pss.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/ptab.h b/ptab.h
index 05e1a5b17fa07d2f89bf3f703ede92c21c99fa02..1e9af6e29a7aeb8c149d6df8adb45fd4d320e29d 100644 (file)
--- a/ptab.h
+++ b/ptab.h
@@ -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,
index 4b38b02d6e0f19d557b8aa35aa617d28545a6d4e..9615bb56fba3082eae3f338f8cfa1dfc1ae601f2 100644 (file)
--- a/qdparse.c
+++ b/qdparse.c
@@ -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,
index bbc900a1f1b34de4d13aca341fe5ab204fe2ba8f..f6696e4c70b76bb6fb19584eec5e166a58ec0cbb 100644 (file)
--- a/qdparse.h
+++ b/qdparse.h
@@ -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,
diff --git a/rabin.c b/rabin.c
index 4c08f8732a6e2227f4094e6eea6f388dfe2b5cfd..1b1130b885a974c3f812ede123d901025e4be1f2 100644 (file)
--- a/rabin.c
+++ b/rabin.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/rabin.h b/rabin.h
index 9bc0eb6b47ff411fb63aefb08a7bfe3cb3533405..a49162589d2d5e134bd6bc250beacea8e7af08d7 100644 (file)
--- a/rabin.h
+++ b/rabin.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/rand.c b/rand.c
index b0622c2c894b5ec9fb0017b39bda3a8d66b6f3c1..b004b3f9962cd95a5c6510bb7c867408e2640d40 100644 (file)
--- a/rand.c
+++ b/rand.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -213,9 +213,9 @@ void rand_add(rand_pool *r, const void *p, size_t sz, unsigned goodbits)
 
 /* --- @rand_goodbits@ --- *
  *
- * Arguments:   @rand_pool *r@ = pointer to a randomness pool
+ * Arguments:  @rand_pool *r@ = pointer to a randomness pool
  *
- * Returns:     Estimate of the number of good bits remaining in the pool.
+ * Returns:    Estimate of the number of good bits remaining in the pool.
  */
 
 unsigned rand_goodbits(rand_pool *r)
diff --git a/rand.h b/rand.h
index 25f806b12cd1fea39567d9233c6aab884f4b036e..5d542b82c7ef262a5b273f7bd98c9b68a040af86 100644 (file)
--- a/rand.h
+++ b/rand.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -204,9 +204,9 @@ extern void rand_add(rand_pool */*r*/,
 
 /* --- @rand_goodbits@ --- *
  *
- * Arguments:   @rand_pool *r@ = pointer to a randomness pool
+ * Arguments:  @rand_pool *r@ = pointer to a randomness pool
  *
- * Returns:     Estimate of the number of good bits remaining in the pool.
+ * Returns:    Estimate of the number of good bits remaining in the pool.
  */
 
 extern unsigned rand_goodbits(rand_pool */*r*/);
index 795afb65a24afde09248194b0bd044de86ef19a3..4a0a29a649834a942d1ecf12e679d7a01d14c97c 100644 (file)
--- a/rc2-tab.h
+++ b/rc2-tab.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/rc2.c b/rc2.c
index 3fbeadc8d76453e98d6e295f72ae2fdcd553ecff..8241c06d38daee62d23a41cf18e359696900c41a 100644 (file)
--- a/rc2.c
+++ b/rc2.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -282,7 +282,7 @@ static int verify(dstr *v)
   if (memcmp(b.buf, v[3].buf, RC2_BLKSZ)) {
     ok = 0;
     printf("\nfail encryption:"
-           "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
     printf("\n\tbraindamage= %u", bd);
     printf("\n\tplaintext  = "); type_hex.dump(&v[2], stdout);
@@ -299,7 +299,7 @@ static int verify(dstr *v)
   if (memcmp(b.buf, v[2].buf, RC2_BLKSZ)) {
     ok = 0;
     printf("\nfail decryption:"
-           "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
     printf("\n\tbraindamage= %u", bd);
     printf("\n\tciphertext = "); type_hex.dump(&v[3], stdout);
diff --git a/rc2.h b/rc2.h
index 99965fbc330476d0b941892d007b731c3e5e49ac..5d35b14b42198a787fdb71b6135656d5cc410b14 100644 (file)
--- a/rc2.h
+++ b/rc2.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/rc4.c b/rc4.c
index ac011b10917a89d4086479f0f86301c75ee02ea7..83b510425ef1093a5fe7e0c4e1b7e9be976e60c1 100644 (file)
--- a/rc4.c
+++ b/rc4.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -75,7 +75,7 @@ void rc4_addkey(rc4_ctx *ctx, const void *k, size_t sz)
     ctx->s[j] = si;
     if (p == q)
       p = k;
-  }  
+  }
 
   ctx->i = ctx->j = 0;
 }
@@ -315,7 +315,7 @@ static int v_encrypt(dstr *v)
   if (memcmp(v[2].buf, d.buf, d.len) != 0) {
     ok = 0;
     printf("\nfail encryption:"
-          "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
     printf("\n\tplaintext  = "); type_hex.dump(&v[1], stdout);
     printf("\n\texpected   = "); type_hex.dump(&v[2], stdout);
@@ -341,7 +341,7 @@ static int v_generate(dstr *v)
   if (memcmp(v[2].buf, d.buf, d.len) != 0) {
     ok = 0;
     printf("\nfail generation:"
-          "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
     printf("\n\tskip len   = %i", *(int *)v[1].buf);
     printf("\n\texpected   = "); type_hex.dump(&v[2], stdout);
diff --git a/rc4.h b/rc4.h
index ae22b4ad7595da5f771c37e6863c058ae0aef3a6..7df1348be381b764a2b2fa21a78b685f630f7a2e 100644 (file)
--- a/rc4.h
+++ b/rc4.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/rc5.c b/rc5.c
index 1636532edd4543a4d761ad9172d31ccd6128a7bf..306b5ecaa37de47bfe0e25ca56825dafd6d257b8 100644 (file)
--- a/rc5.c
+++ b/rc5.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/rc5.h b/rc5.h
index 93a0a9e58397962640d8761d46f1a52badfb4efd..c029832a71ef6262744cb2d0eb9c133473dedff1 100644 (file)
--- a/rc5.h
+++ b/rc5.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/rho.c b/rho.c
index d762460239bdebb10ae493db830a01e461759bb1..a02eeba752cb5683f7890585778cfdfc4ac6f94b 100644 (file)
--- a/rho.c
+++ b/rho.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/rho.h b/rho.h
index c4eb12a5e41548f6310894de2b4fe6c8237895e3..75bf7fa2932462e0c8900f4109ad229287e1da0d 100644 (file)
--- a/rho.h
+++ b/rho.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 34881e3ecf84e46bd5d4dfb61f5e92ea1cf7d71b..5230cbc62be5ef2979b5dfa665e71f030bdcd941 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index f88b2f781d2721455a1b41d1bd2eadc4c972e908..e3f168d8677e0abf14359dfe99ffc0930f3eeb7c 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -58,7 +58,7 @@ extern const octet rijndael_rcon[];
 
 #define SUB(s, a, b, c, d)                                             \
   (s[U8((a) >> 24)] << 24 | s[U8((b) >> 16)] << 16 |                   \
-   s[U8((c) >>  8)] <<  8 | s[U8((d) >>  0)] <<  0)
+   s[U8((c) >> 8)] <<  8 | s[U8((d) >>  0)] <<  0)
 
 #define MIX(t, a, b, c, d)                                             \
    (t[0][U8((a) >> 24)] ^ t[1][U8((b) >> 16)] ^                                \
index 1779709ab2d308a82a816929c4eb84f52da7e77c..0ecdfcdaec0940044c75e153a54928e91c9e02a3 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -84,7 +84,7 @@ static unsigned mul(unsigned x, unsigned y, unsigned m)
  * tables.  Let %$a$% be an element of the finite field.  If the inverse of
  * %$a$% is %$a^{-1}$%, then %$\log a a^{-1} = 0$%.  Hence
  * %$\log a = -\log a^{-1}$%.  This saves fiddling about with Euclidean
- * algorithm. 
+ * algorithm.
  */
 
 #define S_MOD 0x11b
@@ -286,11 +286,11 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
-  }  
+  }
 
   fputs("\
 #define RIJNDAEL_TI {                                                  \\\n\
@@ -306,7 +306,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
@@ -331,11 +331,11 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
-  }  
+  }
 
   /* --- Round constants --- */
 
@@ -353,7 +353,7 @@ int main(void)
       fputs(",                 \\\n  ", stdout);
     else
       fputs(", ", stdout);
-  }  
+  }
 
   /* --- Done --- */
 
index dc86274a2e9f77e4f6cfd4f700b31aee75a63ef1..261823cf84bb6df703f9d6fcb26842dae131c93f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 8883be51308526eb887bf00afc9fc71a6fdd8ab8..b1ba75f1ac11d42318a39eb81903752037ab5161 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index d6af09b23532faa0269ad396fe60d947783eb7fe..4b4c034b93ab7f6a743aa2049b59a85b9b3ac8d5 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -117,7 +117,7 @@ void rijndael192_eblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst)
       DO(MIX, T, aa, bb, cc, dd, ee, ff, a, b, c, d, e, f, w);
       DO(MIX, T, a, b, c, d, e, f, aa, bb, cc, dd, ee, ff, w);
       DO(MIX, T, aa, bb, cc, dd, ee, ff, a, b, c, d, e, f, w);
-  }      
+  }
   DO(SUB, S, a, b, c, d, e, f, aa, bb, cc, dd, ee, ff, w);
 
   dst[0] = a; dst[1] = b; dst[2] = c; dst[3] = d; dst[4] = e; dst[5] = f;
@@ -150,7 +150,7 @@ void rijndael192_dblk(const rijndael_ctx *k, const uint32 *s, uint32 *dst)
       UNDO(MIX, TI, aa, bb, cc, dd, ee, ff, a, b, c, d, e, f, w);
       UNDO(MIX, TI, a, b, c, d, e, f, aa, bb, cc, dd, ee, ff, w);
       UNDO(MIX, TI, aa, bb, cc, dd, ee, ff, a, b, c, d, e, f, w);
-  }      
+  }
   UNDO(SUB, SI, a, b, c, d, e, f, aa, bb, cc, dd, ee, ff, w);
 
   dst[0] = a; dst[1] = b; dst[2] = c; dst[3] = d; dst[4] = e; dst[5] = f;
index 785aadeef42a9e02d545ed8d8cc6f0432db1d3a9..fb3d01337fb523defe0ff455c356a7e08f3979ef 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 957e54465d52a7be6b4990923ad378c03515b799..337700951bc03685b6c48dd140a7d1f91f1847e8 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index ecc61238514e275a4593cf21b7428fe38aa0030e..79ab09e13a1ce9b4e83d95ec0c0a340cfd3549ac 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 781258f463d1db30c6b796b82306a860f8b5dea3..10f56c4ebf5e63c13ac3f5cd51c899815d6aba6e 100644 (file)
--- a/rmd128.c
+++ b/rmd128.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -87,7 +87,7 @@ void rmd128_compress(rmd128_ctx *ctx, const void *sbuf)
 #define G1(w, x, y, z, i, r) T(w, x, y, z, i, r, G, 0x5a827999)
 #define H1(w, x, y, z, i, r) T(w, x, y, z, i, r, H, 0x6ed9eba1)
 #define I1(w, x, y, z, i, r) T(w, x, y, z, i, r, I, 0x8f1bbcdc)
-                              
+
 #define F2(w, x, y, z, i, r) T(w, x, y, z, i, r, I, 0x50a28be6)
 #define G2(w, x, y, z, i, r) T(w, x, y, z, i, r, H, 0x5c4dd124)
 #define H2(w, x, y, z, i, r) T(w, x, y, z, i, r, G, 0x6d703ef3)
@@ -162,7 +162,7 @@ void rmd128_compress(rmd128_ctx *ctx, const void *sbuf)
   I1(d, a, b, c,  5,  6);
   I1(c, d, a, b,  6,  5);
   I1(b, c, d, a,  2, 12);
-                  
+
   /* --- And then the right hand side --- */
 
   F2(A, B, C, D,  5,  8);
@@ -232,7 +232,7 @@ void rmd128_compress(rmd128_ctx *ctx, const void *sbuf)
   I2(D, A, B, C,  7,  5);
   I2(C, D, A, B, 10, 15);
   I2(B, C, D, A, 14,  8);
-                  
+
   /* --- Recombine the two halves --- */
 
   {
@@ -280,9 +280,9 @@ void rmd128_init(rmd128_ctx *ctx)
 void rmd128_set(rmd128_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->off = 0;
   ctx->nl = U32(count);
@@ -320,9 +320,9 @@ void rmd128_done(rmd128_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(RMD128, rmd128, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
 }
 
@@ -340,9 +340,9 @@ void rmd128_done(rmd128_ctx *ctx, void *hash)
 unsigned long rmd128_state(rmd128_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   return (ctx->nl | ((ctx->nh << 16) << 16));
 }
index 854969717571305a2d4f02f859368acced43e699..b121e3cfc32f4dc875129801fb4ea1adc697db93 100644 (file)
--- a/rmd128.h
+++ b/rmd128.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index 05a2c5df91e45858af48bb8222413acc739c00cc..f4812092ab3032778e8c79d0d9bc414513e4137e 100644 (file)
--- a/rmd160.c
+++ b/rmd160.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -103,19 +103,19 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   F1(e, a, b, c, d,  1, 14);
   F1(d, e, a, b, c,  2, 15);
   F1(c, d, e, a, b,  3, 12);
-  F1(b, c, d, e, a,  4,  5);
-  F1(a, b, c, d, e,  5,  8);
-  F1(e, a, b, c, d,  6,  7);
-  F1(d, e, a, b, c,  7,  9);
+  F1(b, c, d, e, a,  4,         5);
+  F1(a, b, c, d, e,  5,         8);
+  F1(e, a, b, c, d,  6,         7);
+  F1(d, e, a, b, c,  7,         9);
   F1(c, d, e, a, b,  8, 11);
   F1(b, c, d, e, a,  9, 13);
   F1(a, b, c, d, e, 10, 14);
   F1(e, a, b, c, d, 11, 15);
-  F1(d, e, a, b, c, 12,  6);
-  F1(c, d, e, a, b, 13,  7);
-  F1(b, c, d, e, a, 14,  9);
-  F1(a, b, c, d, e, 15,  8);
-                  
+  F1(d, e, a, b, c, 12,         6);
+  F1(c, d, e, a, b, 13,         7);
+  F1(b, c, d, e, a, 14,         9);
+  F1(a, b, c, d, e, 15,         8);
+
   G1(e, a, b, c, d,  7,         7);
   G1(d, e, a, b, c,  4,         6);
   G1(c, d, e, a, b, 13,         8);
@@ -132,7 +132,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   G1(b, c, d, e, a, 14,         7);
   G1(a, b, c, d, e, 11,        13);
   G1(e, a, b, c, d,  8,        12);
-                  
+
   H1(d, e, a, b, c,  3,        11);
   H1(c, d, e, a, b, 10,        13);
   H1(b, c, d, e, a, 14,         6);
@@ -149,7 +149,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   H1(a, b, c, d, e, 11,        12);
   H1(e, a, b, c, d,  5,         7);
   H1(d, e, a, b, c, 12,         5);
-                  
+
   I1(c, d, e, a, b,  1,        11);
   I1(b, c, d, e, a,  9,        12);
   I1(a, b, c, d, e, 11,        14);
@@ -166,7 +166,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   I1(e, a, b, c, d,  5,         6);
   I1(d, e, a, b, c,  6,         5);
   I1(c, d, e, a, b,  2,        12);
-                  
+
   J1(b, c, d, e, a,  4,         9);
   J1(a, b, c, d, e,  0,        15);
   J1(e, a, b, c, d,  5,         5);
@@ -202,7 +202,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   F2(C, D, E, A, B, 10,        14);
   F2(B, C, D, E, A,  3,        12);
   F2(A, B, C, D, E, 12,         6);
-                  
+
   G2(E, A, B, C, D,  6,         9);
   G2(D, E, A, B, C, 11,        13);
   G2(C, D, E, A, B,  3,        15);
@@ -219,7 +219,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   G2(B, C, D, E, A,  9,        15);
   G2(A, B, C, D, E,  1,        13);
   G2(E, A, B, C, D,  2,        11);
-                  
+
   H2(D, E, A, B, C, 15,         9);
   H2(C, D, E, A, B,  5,         7);
   H2(B, C, D, E, A,  1,        15);
@@ -236,7 +236,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   H2(A, B, C, D, E,  0,        13);
   H2(E, A, B, C, D,  4,         7);
   H2(D, E, A, B, C, 13,         5);
-                  
+
   I2(C, D, E, A, B,  8,        15);
   I2(B, C, D, E, A,  6,         5);
   I2(A, B, C, D, E,  4,         8);
@@ -253,7 +253,7 @@ void rmd160_compress(rmd160_ctx *ctx, const void *sbuf)
   I2(E, A, B, C, D,  7,         5);
   I2(D, E, A, B, C, 10,        15);
   I2(C, D, E, A, B, 14,         8);
-                  
+
   J2(B, C, D, E, A, 12,         8);
   J2(A, B, C, D, E, 15,         5);
   J2(E, A, B, C, D, 10,        12);
@@ -320,9 +320,9 @@ void rmd160_init(rmd160_ctx *ctx)
 void rmd160_set(rmd160_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->e = LOAD32_L(p + 16);
   ctx->off = 0;
@@ -361,9 +361,9 @@ void rmd160_done(rmd160_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(RMD160, rmd160, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->e);
 }
@@ -382,9 +382,9 @@ void rmd160_done(rmd160_ctx *ctx, void *hash)
 unsigned long rmd160_state(rmd160_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->e);
   return (ctx->nl | ((ctx->nh << 16) << 16));
index 13c77017cb4989bfbfeb88bd9bc0b0b5b8a823f7..f97a462bc36956c097a914857e78726cada85388 100644 (file)
--- a/rmd160.h
+++ b/rmd160.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index e545436ed66aa8a96a69a388830e31bb3724fd13..e2fc70a374174280ac18bfc94ba7ac9146f5739e 100644 (file)
--- a/rmd256.c
+++ b/rmd256.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -91,7 +91,7 @@ void rmd256_compress(rmd256_ctx *ctx, const void *sbuf)
 #define G1(w, x, y, z, i, r) T(w, x, y, z, i, r, G, 0x5a827999)
 #define H1(w, x, y, z, i, r) T(w, x, y, z, i, r, H, 0x6ed9eba1)
 #define I1(w, x, y, z, i, r) T(w, x, y, z, i, r, I, 0x8f1bbcdc)
-                              
+
 #define F2(w, x, y, z, i, r) T(w, x, y, z, i, r, I, 0x50a28be6)
 #define G2(w, x, y, z, i, r) T(w, x, y, z, i, r, H, 0x5c4dd124)
 #define H2(w, x, y, z, i, r) T(w, x, y, z, i, r, G, 0x6d703ef3)
@@ -217,7 +217,7 @@ void rmd256_compress(rmd256_ctx *ctx, const void *sbuf)
   I1(d, A, B, C,  5,  6);
   I1(C, d, A, B,  6,  5);
   I1(B, C, d, A,  2, 12);
-                  
+
   I2(a, b, c, D,  8, 15);
   I2(D, a, b, c,  6,  5);
   I2(c, D, a, b,  4,  8);
@@ -234,7 +234,7 @@ void rmd256_compress(rmd256_ctx *ctx, const void *sbuf)
   I2(D, a, b, c,  7,  5);
   I2(c, D, a, b, 10, 15);
   I2(b, c, D, a, 14,  8);
-              
+
   /* --- Recombine the two halves --- */
 
   ctx->a += A;
@@ -286,9 +286,9 @@ void rmd256_init(rmd256_ctx *ctx)
 void rmd256_set(rmd256_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->A = LOAD32_L(p + 16);
   ctx->B = LOAD32_L(p + 20);
@@ -330,9 +330,9 @@ void rmd256_done(rmd256_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(RMD256, rmd256, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->A);
   STORE32_L(p + 20, ctx->B);
@@ -354,9 +354,9 @@ void rmd256_done(rmd256_ctx *ctx, void *hash)
 unsigned long rmd256_state(rmd256_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->A);
   STORE32_L(p + 20, ctx->B);
index d9d6d40e3ceff7b129b9e6f64f44e52bdad68f48..aa1e883c7a41103798470034ea19a72452be92e5 100644 (file)
--- a/rmd256.h
+++ b/rmd256.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index ed38f159c9c36ba316a5644e07396b269c8a1843..a91f874a982ca6477c55734f3251b00de1e151f5 100644 (file)
--- a/rmd320.c
+++ b/rmd320.c
@@ -7,7 +7,7 @@
  * (c) 1998 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,
@@ -109,19 +109,19 @@ void rmd320_compress(rmd320_ctx *ctx, const void *sbuf)
   F1(e, a, b, c, d,  1, 14);
   F1(d, e, a, b, c,  2, 15);
   F1(c, d, e, a, b,  3, 12);
-  F1(b, c, d, e, a,  4,  5);
-  F1(a, b, c, d, e,  5,  8);
-  F1(e, a, b, c, d,  6,  7);
-  F1(d, e, a, b, c,  7,  9);
+  F1(b, c, d, e, a,  4,         5);
+  F1(a, b, c, d, e,  5,         8);
+  F1(e, a, b, c, d,  6,         7);
+  F1(d, e, a, b, c,  7,         9);
   F1(c, d, e, a, b,  8, 11);
   F1(b, c, d, e, a,  9, 13);
   F1(a, b, c, d, e, 10, 14);
   F1(e, a, b, c, d, 11, 15);
-  F1(d, e, a, b, c, 12,  6);
-  F1(c, d, e, a, b, 13,  7);
-  F1(b, c, d, e, a, 14,  9);
-  F1(a, b, c, d, e, 15,  8);
-                  
+  F1(d, e, a, b, c, 12,         6);
+  F1(c, d, e, a, b, 13,         7);
+  F1(b, c, d, e, a, 14,         9);
+  F1(a, b, c, d, e, 15,         8);
+
   F2(A, B, C, D, E,  5,         8);
   F2(E, A, B, C, D, 14,         9);
   F2(D, E, A, B, C,  7,         9);
@@ -155,7 +155,7 @@ void rmd320_compress(rmd320_ctx *ctx, const void *sbuf)
   G1(b, c, d, e, A, 14,         7);
   G1(A, b, c, d, e, 11,        13);
   G1(e, A, b, c, d,  8,        12);
-                  
+
   G2(E, a, B, C, D,  6,         9);
   G2(D, E, a, B, C, 11,        13);
   G2(C, D, E, a, B,  3,        15);
@@ -172,7 +172,7 @@ void rmd320_compress(rmd320_ctx *ctx, const void *sbuf)
   G2(B, C, D, E, a,  9,        15);
   G2(a, B, C, D, E,  1,        13);
   G2(E, a, B, C, D,  2,        11);
-                  
+
   H1(d, e, A, B, c,  3,        11);
   H1(c, d, e, A, B, 10,        13);
   H1(B, c, d, e, A, 14,         6);
@@ -189,7 +189,7 @@ void rmd320_compress(rmd320_ctx *ctx, const void *sbuf)
   H1(A, B, c, d, e, 11,        12);
   H1(e, A, B, c, d,  5,         7);
   H1(d, e, A, B, c, 12,         5);
-                  
+
   H2(D, E, a, b, C, 15,         9);
   H2(C, D, E, a, b,  5,         7);
   H2(b, C, D, E, a,  1,        15);
@@ -206,7 +206,7 @@ void rmd320_compress(rmd320_ctx *ctx, const void *sbuf)
   H2(a, b, C, D, E,  0,        13);
   H2(E, a, b, C, D,  4,         7);
   H2(D, E, a, b, C, 13,         5);
-                  
+
   I1(C, d, e, A, B,  1,        11);
   I1(B, C, d, e, A,  9,        12);
   I1(A, B, C, d, e, 11,        14);
@@ -223,7 +223,7 @@ void rmd320_compress(rmd320_ctx *ctx, const void *sbuf)
   I1(e, A, B, C, d,  5,         6);
   I1(d, e, A, B, C,  6,         5);
   I1(C, d, e, A, B,  2,        12);
-                  
+
   I2(c, D, E, a, b,  8,        15);
   I2(b, c, D, E, a,  6,         5);
   I2(a, b, c, D, E,  4,         8);
@@ -330,9 +330,9 @@ void rmd320_init(rmd320_ctx *ctx)
 void rmd320_set(rmd320_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  ctx->a = LOAD32_L(p +  0);
-  ctx->b = LOAD32_L(p +  4);
-  ctx->c = LOAD32_L(p +  8);
+  ctx->a = LOAD32_L(p +         0);
+  ctx->b = LOAD32_L(p +         4);
+  ctx->c = LOAD32_L(p +         8);
   ctx->d = LOAD32_L(p + 12);
   ctx->e = LOAD32_L(p + 16);
   ctx->A = LOAD32_L(p + 20);
@@ -376,9 +376,9 @@ void rmd320_done(rmd320_ctx *ctx, void *hash)
 {
   octet *p = hash;
   HASH_MD5STRENGTH(RMD320, rmd320, ctx);
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->e);
   STORE32_L(p + 20, ctx->A);
@@ -402,9 +402,9 @@ void rmd320_done(rmd320_ctx *ctx, void *hash)
 unsigned long rmd320_state(rmd320_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE32_L(p +  0, ctx->a);
-  STORE32_L(p +  4, ctx->b);
-  STORE32_L(p +  8, ctx->c);
+  STORE32_L(p +         0, ctx->a);
+  STORE32_L(p +         4, ctx->b);
+  STORE32_L(p +         8, ctx->c);
   STORE32_L(p + 12, ctx->d);
   STORE32_L(p + 16, ctx->e);
   STORE32_L(p + 20, ctx->A);
index ae774d9d4094fc117fe93a5f83228b4986bcf0c8..592e96fb5a75ca2f54ce3c8acaba60dd63f20329 100644 (file)
--- a/rmd320.h
+++ b/rmd320.h
@@ -7,7 +7,7 @@
  * (c) 1998 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,
index 4436946323f683a866150f296dc725ee7d17515b..0236b67a5457ee6fbe122fd69906b893eae79391 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -54,7 +54,7 @@ const key_fetchdef rsa_privfetch[] = {
   { "n",       offsetof(rsa_priv, n),          KENC_MP,        0 },
   { "e",       offsetof(rsa_priv, e),          KENC_MP,        0 },
   { "private", 0,                              KENC_STRUCT,    priv },
-  { 0,         0,                              0,              0 }  
+  { 0,         0,                              0,              0 }
 };
 
 /* --- @rsa_pubfree@, @rsa_privfree@ --- *
index d284715c20ae1aebe3d87d46b548af7b17e008b2..6005f6193a907015c093498bc0492ee1582eb59e 100644 (file)
--- a/rsa-gen.c
+++ b/rsa-gen.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 8869ca45e39c0aba43ed6c9df5397c3efa5365b4..fe427bb610e94a852453a02fc4a8af81516df081 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index df3fed18ac10e7146e51569bb91a8e5e3f693504..e89d6ff9ec490208d3ebf31acd7d595ac33df552 100644 (file)
--- a/rsa-pub.c
+++ b/rsa-pub.c
@@ -6,7 +6,7 @@
  * (c) 2000 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,
index 5cf1f0653c4f68357b30c07138c3868b3a92c20b..4546cc3adbd153f83935a6914f06793c1dafd3fa 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index ad788d8dc2fa5630701ae5c2e123a8adcd95da9b..e4c330ff10b8a9bc96f97728f70a045618e42636 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)
diff --git a/rsa.h b/rsa.h
index cf8848c1a34984369f55882a5597ba1d5498582c..f4b1c14482c8df441fb951941474c7e4ecc272fc 100644 (file)
--- a/rsa.h
+++ b/rsa.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/rspit.c b/rspit.c
index 148a3d047e80866af195d212c2e7d29854d51c05..e4715087cd9bd391cc672f3e39a5ef6ce98244b4 100644 (file)
--- a/rspit.c
+++ b/rspit.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -495,7 +495,7 @@ static grand *gen_bbs(unsigned i)
    * The factors of this number are
    *
    *  @p = 1229936431484295969649886203367009966370895964206162032259292413@
-   *      @7754313537966036459299022912838407755462506416274551744201653277@
+   *     @7754313537966036459299022912838407755462506416274551744201653277@
    *     @313130311731673973886822067@
    *
    *  @q = 9798171783943489959487301695884963889684294764514008432498259742@
index bfcaed623bcebb5c78758a8a6423c9505ac910ce..869d66f5fdfc64a6b6b6d987535f094fcebb9932 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -98,7 +98,7 @@ int main(void)
     exit(EXIT_FAILURE);
   }
 
-  return (0);  
+  return (0);
 }
 
 /*----- That's all, folks -------------------------------------------------*/
diff --git a/safer.c b/safer.c
index 4eaf34be056dd6d591dc1dff454061969e69a1c5..6a63565d85fea77b3ba6721ee5c0d79a3b3f521d 100644 (file)
--- a/safer.c
+++ b/safer.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
diff --git a/safer.h b/safer.h
index 95b5b9ec80e9490e957e908ac7f621bacf1aece3..198bc8eb4d5a584883683eb88e90cee9d4935023 100644 (file)
--- a/safer.h
+++ b/safer.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 9305cdd116a84faaf6cd4dc3bca2d1a7ed476262..6ea27c97e8c0e8b79309a31ccc2af319826bb88c 100644 (file)
--- a/safersk.c
+++ b/safersk.c
@@ -13,4 +13,4 @@
 const char *safersk_magic = "Compile this useless file";
 
 BLKC_TEST(SAFERSK, safersk)
-  
+
diff --git a/seal.c b/seal.c
index b3e96a11923a9fbd84d3fe6d480fdd073dd2af97..444a11cd40c977b4f212125d29ba73c47123820b 100644 (file)
--- a/seal.c
+++ b/seal.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -139,7 +139,7 @@ static void gamma(uint32 *p, size_t sz, const void *k, unsigned i)
        if (sz) { *p++ = e; sz--; }
        skip = 0;
     }
-  }  
+  }
 }
 
 /* --- @seal_initkey@ --- *
@@ -202,7 +202,7 @@ static void seal_reset(seal_ctx *c)
   }
 
   A = n ^ c->r[0];
-  B = ROR32(n,  8) ^ c->r[1];
+  B = ROR32(n, 8) ^ c->r[1];
   C = ROR32(n, 16) ^ c->r[2];
   D = ROR32(n, 24) ^ c->r[3];
   c->l += 4;
@@ -309,7 +309,7 @@ void seal_encrypt(seal_ctx *c, const void *src, void *dest, size_t sz)
 
       if (j == 256) {
        seal_reset(c);
-        A = c->a, B = c->b, C = c->c, D = c->d;
+       A = c->a, B = c->b, C = c->c, D = c->d;
        n1 = c->n1, n2 = c->n2, n3 = c->n3, n4 = c->n4;
        j = 0;
       }
@@ -324,7 +324,7 @@ void seal_encrypt(seal_ctx *c, const void *src, void *dest, size_t sz)
       Q = (Q + B) & 0x7fc; C += k->t[Q >> 2]; B = ROR32(B, 9);
       P = (P + C) & 0x7fc; D ^= k->t[P >> 2]; C = ROR32(C, 9);
       Q = (Q + D) & 0x7fc; A += k->t[Q >> 2]; D = ROR32(D, 9);
-      
+
       /* --- Remember the output and set up the next round --- */
 
       aa = B + k->s[j + 0];
diff --git a/seal.h b/seal.h
index ed5d9f31f0e96498201eb1045ab2dc480d1beff2..bee3b309cff1016133eaf659ff48bad82ae77ec8 100644 (file)
--- a/seal.h
+++ b/seal.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 9aac0f2199335b29a0f719c613ef4fc284cea8ea..340af4fd7d3ba606719b0246dfe322d94ffe7374 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
 /*----- S-box tables ------------------------------------------------------*/
 
 static const octet s[8][16] = {
-  {  3,  8, 15,  1, 10,  6,  5, 11, 14, 13,  4,  2,  7,  0,  9, 12 },
-  { 15, 12,  2,  7,  9,  0,  5, 10,  1, 11, 14,  8,  6, 13,  3,  4 },
-  {  8,  6,  7,  9,  3, 12, 10, 15, 13,  1, 14,  4,  0, 11,  5,  2 },
-  {  0, 15, 11,  8, 12,  9,  6,  3, 13,  1,  2,  4, 10,  7,  5, 14 },
-  {  1, 15,  8,  3, 12,  0, 11,  6,  2,  5,  4, 10,  9, 14,  7, 13 },
-  { 15,  5,  2, 11,  4, 10,  9, 12,  0,  3, 14,  8, 13,  6,  7,  1 },
-  {  7,  2, 12,  5,  8,  4,  6, 11, 14,  9,  1, 15, 13,  3, 10,  0 },
-  {  1, 13, 15,  0, 14,  8,  2, 11,  7,  4, 12, 10,  9,  3,  5,  6 }
+  {  3,         8, 15,  1, 10,  6,  5, 11, 14, 13,  4,  2,  7,  0,  9, 12 },
+  { 15, 12,  2,         7,  9,  0,  5, 10,  1, 11, 14,  8,  6, 13,  3,  4 },
+  {  8,         6,  7,  9,  3, 12, 10, 15, 13,  1, 14,  4,  0, 11,  5,  2 },
+  {  0, 15, 11,         8, 12,  9,  6,  3, 13,  1,  2,  4, 10,  7,  5, 14 },
+  {  1, 15,  8,         3, 12,  0, 11,  6,  2,  5,  4, 10,  9, 14,  7, 13 },
+  { 15,         5,  2, 11,  4, 10,  9, 12,  0,  3, 14,  8, 13,  6,  7,  1 },
+  {  7,         2, 12,  5,  8,  4,  6, 11, 14,  9,  1, 15, 13,  3, 10,  0 },
+  {  1, 13, 15,         0, 14,  8,  2, 11,  7,  4, 12, 10,  9,  3,  5,  6 }
 };
 
 /*----- Main code ---------------------------------------------------------*/
index 27b6f9348ffc56c1ab1f1f7e42c55722bb2ab621..161233080e0d1a9ec922624b04820879ee38c6f0 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -50,7 +50,7 @@
 
 #define S0(r0, r1, r2, r3) do {                                                \
   uint32 r4;                                                           \
-  r3 ^= r0; r4  = r1; r1 &= r3; r4 ^= r2;                              \
+  r3 ^= r0; r4 = r1; r1 &= r3; r4 ^= r2;                               \
   r1 ^= r0; r0 |= r3; r0 ^= r4; r4 ^= r3;                              \
   r3 ^= r2; r2 |= r1; r2 ^= r4; r4 = ~r4;                              \
   r4 |= r1; r1 ^= r3; r1 ^= r4; r3 |= r0;                              \
@@ -60,7 +60,7 @@
 
 #define IS0(r0, r1, r2, r3) do {                                       \
   uint32 r4;                                                           \
-  r2 = ~r2; r4  = r1; r1 |= r0; r4 = ~r4;                              \
+  r2 = ~r2; r4 = r1; r1 |= r0; r4 = ~r4;                               \
   r1 ^= r2; r2 |= r4; r1 ^= r3; r0 ^= r4;                              \
   r2 ^= r0; r0 &= r3; r4 ^= r0; r0 |= r1;                              \
   r0 ^= r2; r3 ^= r4; r2 ^= r1; r3 ^= r0;                              \
 
 #define IS5(r0, r1, r2, r3) do {                                       \
   uint32 r4;                                                           \
-  r1 = ~r1; r4  = r3; r2 ^= r1; r3 |= r0;                              \
+  r1 = ~r1; r4 = r3; r2 ^= r1; r3 |= r0;                               \
   r3 ^= r2; r2 |= r1; r2 &= r0; r4 ^= r3;                              \
   r2 ^= r4; r4 |= r0; r4 ^= r1; r1 &= r2;                              \
   r1 ^= r3; r4 ^= r2; r3 &= r4; r4 ^= r1;                              \
 
 #define S6(r0, r1, r2, r3) do {                                                \
   uint32 r4;                                                           \
-  r2 = ~r2; r4  = r3; r3 &= r0; r0 ^= r4;                              \
+  r2 = ~r2; r4 = r3; r3 &= r0; r0 ^= r4;                               \
   r3 ^= r2; r2 |= r4; r1 ^= r3; r2 ^= r0;                              \
   r0 |= r1; r2 ^= r1; r4 ^= r0; r0 |= r3;                              \
   r0 ^= r2; r4 ^= r3; r4 ^= r0; r3 = ~r3;                              \
 
 #define IS6(r0, r1, r2, r3) do {                                       \
   uint32 r4;                                                           \
-  r0 ^= r2; r4  = r2; r2 &= r0; r4 ^= r3;                              \
+  r0 ^= r2; r4 = r2; r2 &= r0; r4 ^= r3;                               \
   r2 = ~r2; r3 ^= r1; r2 ^= r3; r4 |= r0;                              \
   r0 ^= r2; r3 ^= r4; r4 ^= r1; r1 &= r3;                              \
   r1 ^= r0; r0 ^= r3; r0 |= r2; r3 ^= r1;                              \
index 75ceec8bbb64c93707a90bf8d273efc4fd7248f8..9c03764b045b6545ddabd28e9995c29a46b3c8ba 100644 (file)
--- a/serpent.c
+++ b/serpent.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -135,15 +135,15 @@ void serpent_init(serpent_ctx *k, const void *buf, size_t sz)
   a ^= *k++; b ^= *k++; c ^= *k++; d ^= *k++;                          \
   S##r(a, b, c, d);                                                    \
   a = ROL32(a, 13); c = ROL32(c,  3); b ^= a ^ c; d ^= c ^ (a << 3);   \
-  b = ROL32(b,  1); d = ROL32(d,  7); a ^= b ^ d; c ^= d ^ (b << 7);   \
-  a = ROL32(a,  5); c = ROL32(c, 22);                                  \
+  b = ROL32(b, 1); d = ROL32(d,  7); a ^= b ^ d; c ^= d ^ (b << 7);    \
+  a = ROL32(a, 5); c = ROL32(c, 22);                                   \
 } while (0)
 
 #define DROUND(a, b, c, d, r, k) do {                                  \
   IS##r(a, b, c, d);                                                   \
   d ^= *--k; c ^= *--k; b ^= *--k; a ^= *--k;                          \
-  a = ROR32(a,  5); c = ROR32(c, 22); a ^= b ^ d; c ^= d ^ (b << 7);   \
-  b = ROR32(b,  1); d = ROR32(d,  7); b ^= a ^ c; d ^= c ^ (a << 3);   \
+  a = ROR32(a, 5); c = ROR32(c, 22); a ^= b ^ d; c ^= d ^ (b << 7);    \
+  b = ROR32(b, 1); d = ROR32(d,  7); b ^= a ^ c; d ^= c ^ (a << 3);    \
   a = ROR32(a, 13); c = ROR32(c,  3);                                  \
 } while (0)
 
index 02ea4de546f557c7c86fd067d85ea4b861e9861f..bbab71205bbf39367efdd88696bcf17176c75114 100644 (file)
--- a/serpent.h
+++ b/serpent.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/sha.c b/sha.c
index 02f51bcf6471ac83844ac786929b192b46050e00..157b81b45bdb28fbba50b24a82e7172d3945ece5 100644 (file)
--- a/sha.c
+++ b/sha.c
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/sha.h b/sha.h
index fe924c74a2c935987d2fb8b3d9d6abe8047798a6..0ce367a9093e8a703541f06f9b9aa82ba7e4e284 100644 (file)
--- a/sha.h
+++ b/sha.h
@@ -7,7 +7,7 @@
  * (c) 1999 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,
index 74148b17cdb55008001746f5394be1cd423a1b86..683ba136ffbf43fd88cf63ba618680b35d8b10ec 100644 (file)
--- a/sha256.c
+++ b/sha256.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -93,7 +93,7 @@ void sha256_compress(sha256_ctx *ctx, const void *sbuf)
   }
 
   /* --- The main compression function --- */
-  
+
   T(a, b, c, d, e, f, g, h,  0, 0x428a2f98);
   T(h, a, b, c, d, e, f, g,  1, 0x71374491);
   T(g, h, a, b, c, d, e, f,  2, 0xb5c0fbcf);
@@ -269,7 +269,7 @@ static void final(sha256_ctx *ctx)
   HASH_PAD(SHA256, sha256, ctx, 0x80, 0, 8);
   STORE32(ctx->buf + SHA256_BUFSZ - 8, (ctx->nl >> 29) | (ctx->nh << 3));
   STORE32(ctx->buf + SHA256_BUFSZ - 4, ctx->nl << 3);
-  sha256_compress(ctx, ctx->buf);  
+  sha256_compress(ctx, ctx->buf);
 }
 
 void sha256_done(sha256_ctx *ctx, void *hash)
index fa439807996a69b90d7680fa83b269d78823551d..7b21dd2967ee5fa917a68504e8e21602d808e586 100644 (file)
--- a/sha256.h
+++ b/sha256.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index e913d67a8f71d5f6c334a9595b814a5a30037659..2f39472206a41c838830f368a32959e54981e411 100644 (file)
--- a/sha512.c
+++ b/sha512.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -284,8 +284,8 @@ void sha512_done(sha512_ctx *ctx, void *hash)
 {
   octet *p = hash;
   final(ctx);
-  STORE64_(p +  0, ctx->a);
-  STORE64_(p +  8, ctx->b);
+  STORE64_(p + 0, ctx->a);
+  STORE64_(p + 8, ctx->b);
   STORE64_(p + 16, ctx->c);
   STORE64_(p + 24, ctx->d);
   STORE64_(p + 32, ctx->e);
@@ -298,8 +298,8 @@ void sha384_done(sha384_ctx *ctx, void *hash)
 {
   octet *p = hash;
   final(ctx);
-  STORE64_(p +  0, ctx->a);
-  STORE64_(p +  8, ctx->b);
+  STORE64_(p + 0, ctx->a);
+  STORE64_(p + 8, ctx->b);
   STORE64_(p + 16, ctx->c);
   STORE64_(p + 24, ctx->d);
   STORE64_(p + 32, ctx->e);
@@ -320,8 +320,8 @@ void sha384_done(sha384_ctx *ctx, void *hash)
 unsigned long sha512_state(sha512_ctx *ctx, void *state)
 {
   octet *p = state;
-  STORE64_(p +  0, ctx->a);
-  STORE64_(p +  8, ctx->b);
+  STORE64_(p + 0, ctx->a);
+  STORE64_(p + 8, ctx->b);
   STORE64_(p + 16, ctx->c);
   STORE64_(p + 24, ctx->d);
   STORE64_(p + 32, ctx->e);
index d06895a945f1980476f649b9418ed541ce5ba5ad..f727e82d875f5621b4633a50c92f1605fa314107 100644 (file)
--- a/sha512.h
+++ b/sha512.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/share.c b/share.c
index 55f3b982cf21802cc1de4b034fd92f7da6d6bc18..1afa1891a2225095ba6e289552e416a7aff4e5e9 100644 (file)
--- a/share.c
+++ b/share.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/share.h b/share.h
index d1269830411163dd088200428b421ff777f70a4d..5500a4cf6dc97ef1af6d98756ba90eb049217652 100644 (file)
--- a/share.h
+++ b/share.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 344b6f3e22c75de28ff8ff48c429b0dca7013a32..cee075e5c5689db887d0c0e7ffaf84d9c757b9f9 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index a4c65b5503901c84bfc525b06561727874a703eb..d87f22ced6711688b45628eea8f1a4db317d908c 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -48,13 +48,13 @@ static const octet f[256] = SKIPJACK_S;
 
 /* --- @skipjack_init@ --- *
  *
- * Arguments:   @skipjack_ctx *k@ = pointer to key block
- *              @const void *buf@ = pointer to key buffer
- *              @size_t sz@ = size of key material
+ * Arguments:  @skipjack_ctx *k@ = pointer to key block
+ *             @const void *buf@ = pointer to key buffer
+ *             @size_t sz@ = size of key material
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Initializes a Skipjack key buffer.  The key buffer must be
+ * Use:                Initializes a Skipjack key buffer.  The key buffer must be
  *             exactly 10 bytes long.
  */
 
@@ -74,21 +74,21 @@ void skipjack_init(skipjack_ctx *k, const void *buf, size_t sz)
 
 /* --- @skipjack_eblk@, @skipjack_dblk@ --- *
  *
- * Arguments:   @const skipjack_ctx *k@ = pointer to key block
- *              @const uint32 s[2]@ = pointer to source block
- *              @uint32 d[2]@ = pointer to skipjacktination block
+ * Arguments:  @const skipjack_ctx *k@ = pointer to key block
+ *             @const uint32 s[2]@ = pointer to source block
+ *             @uint32 d[2]@ = pointer to skipjacktination block
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Low-level block encryption and decryption.
+ * Use:                Low-level block encryption and decryption.
  */
 
 #define G(x, k) do {                                                   \
   octet _x = U8(x >> 8), _y = U8(x);                                   \
   _x ^= f[_y ^ U8(k >> 24)];                                           \
   _y ^= f[_x ^ U8(k >> 16)];                                           \
-  _x ^= f[_y ^ U8(k >>  8)];                                           \
-  _y ^= f[_x ^ U8(k >>  0)];                                           \
+  _x ^= f[_y ^ U8(k >> 8)];                                            \
+  _y ^= f[_x ^ U8(k >> 0)];                                            \
   x = (_x << 8) | _y;                                                  \
 } while (0)
 
@@ -130,8 +130,8 @@ void skipjack_eblk(const skipjack_ctx *k, const uint32 *s, uint32 *d)
 
 #define G_INV(x, k) do {                                               \
   octet _x = U8(x >> 8), _y = U8(x);                                   \
-  _y ^= f[_x ^ U8(k >>  0)];                                           \
-  _x ^= f[_y ^ U8(k >>  8)];                                           \
+  _y ^= f[_x ^ U8(k >> 0)];                                            \
+  _x ^= f[_y ^ U8(k >> 8)];                                            \
   _y ^= f[_x ^ U8(k >> 16)];                                           \
   _x ^= f[_y ^ U8(k >> 24)];                                           \
   x = (_x << 8) | _y;                                                  \
index 25f8a284e596903aaae789ee35c73fb443663568..0afff1f220234bf68a1443f431918351f57c8148 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -74,13 +74,13 @@ typedef struct skipjack_ctx {
 
 /* --- @skipjack_init@ --- *
  *
- * Arguments:   @skipjack_ctx *k@ = pointer to key block
- *              @const void *buf@ = pointer to key buffer
- *              @size_t sz@ = size of key material
+ * Arguments:  @skipjack_ctx *k@ = pointer to key block
+ *             @const void *buf@ = pointer to key buffer
+ *             @size_t sz@ = size of key material
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Initializes a Skipjack key buffer.  The key buffer must be
+ * Use:                Initializes a Skipjack key buffer.  The key buffer must be
  *             exactly 10 bytes long.
  */
 
@@ -89,13 +89,13 @@ extern void skipjack_init(skipjack_ctx */*k*/,
 
 /* --- @skipjack_eblk@, @skipjack_dblk@ --- *
  *
- * Arguments:   @const skipjack_ctx *k@ = pointer to key block
- *              @const uint32 s[2]@ = pointer to source block
- *              @uint32 d[2]@ = pointer to skipjacktination block
+ * Arguments:  @const skipjack_ctx *k@ = pointer to key block
+ *             @const uint32 s[2]@ = pointer to source block
+ *             @uint32 d[2]@ = pointer to skipjacktination block
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Low-level block encryption and decryption.
+ * Use:                Low-level block encryption and decryption.
  */
 
 extern void skipjack_eblk(const skipjack_ctx */*k*/,
index ba2c539cae41d4868afee59e72802e8323fbbe5c..f1c7f02994c70bcdc62a8e552d0eb687f2467c79 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -84,7 +84,7 @@ static unsigned mul(unsigned x, unsigned y, unsigned m)
  * tables.  Let %$a$% be an element of the finite field.  If the inverse of
  * %$a$% is %$a^{-1}$%, then %$\log a a^{-1} = 0$%.  Hence
  * %$\log a = -\log a^{-1}$%.  This saves fiddling about with Euclidean
- * algorithm. 
+ * algorithm.
  */
 
 #define S_MOD 0x1f5
@@ -284,11 +284,11 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
-  }  
+  }
 
   fputs("\
 #define SQUARE_TI {                                                    \\\n\
@@ -304,7 +304,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
@@ -329,11 +329,11 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
-  }  
+  }
 
   /* --- Round constants --- */
 
@@ -351,7 +351,7 @@ int main(void)
       fputs(",                 \\\n  ", stdout);
     else
       fputs(", ", stdout);
-  }  
+  }
 
   /* --- Done --- */
 
index 7bdcfd89246f4d0a4a887d6c035d80c861cdd65f..cb243b31624b1cc18f2617014115a9afef96368a 100644 (file)
--- a/square.c
+++ b/square.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -107,7 +107,7 @@ void square_init(square_ctx *k, const void *buf, size_t sz)
 
   for (i = 0; i < nr * 4; i++) {
     uint32 w = kk[i];
-    k->w[i] = (U[0][U8(w >>  0)] ^ U[1][U8(w >>  8)] ^
+    k->w[i] = (U[0][U8(w >>  0)] ^ U[1][U8(w >>         8)] ^
               U[2][U8(w >> 16)] ^ U[3][U8(w >> 24)]);
   }
   for (; i < nw; i++)
@@ -137,7 +137,7 @@ void square_init(square_ctx *k, const void *buf, size_t sz)
  */
 
 #define SUB(s, sh, a, b, c, d)                                         \
-  (s[U8((a) >> sh)] <<  0 | s[U8((b) >> sh)] <<  8 |                   \
+  (s[U8((a) >> sh)] << 0 | s[U8((b) >> sh)] <<  8 |                    \
    s[U8((c) >> sh)] << 16 | s[U8((d) >> sh)] << 24)
 
 #define MIX(t, sh, a, b, c, d)                                         \
@@ -145,8 +145,8 @@ void square_init(square_ctx *k, const void *buf, size_t sz)
    t[2][U8((c) >> sh)] ^ t[3][U8((d) >> sh)])
 
 #define DO(what, t, aa, bb, cc, dd, a, b, c, d, w) do {                        \
-  aa = what(t,  0, a, b, c, d) ^ *w++;                                 \
-  bb = what(t,  8, a, b, c, d) ^ *w++;                                 \
+  aa = what(t, 0, a, b, c, d) ^ *w++;                                  \
+  bb = what(t, 8, a, b, c, d) ^ *w++;                                  \
   cc = what(t, 16, a, b, c, d) ^ *w++;                                 \
   dd = what(t, 24, a, b, c, d) ^ *w++;                                 \
 } while (0)
index 1ea86b7287ed0ae2cde2244e489a131565b1e076..60a0876c88eda4bf7cc5d84c6317bbde0ce66060 100644 (file)
--- a/square.h
+++ b/square.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index 05f64d1334c2bc869b6bffcda792faf0cda7b64b..866ef89defa6e9fc54dee4d57efc85a1567e30ff 100644 (file)
--- a/sslprf.c
+++ b/sslprf.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -239,7 +239,7 @@ static int grmisc(grand *r, unsigned op, ...)
     } break;
     default:
       GRAND_BADOP;
-      break;      
+      break;
   }
 
   va_end(ap);
@@ -332,9 +332,9 @@ static int v_generate(dstr *v)
   if (memcmp(v[2].buf, d.buf, d.len) != 0) {
     ok = 0;
     printf("\nfail sslprf:"
-          "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
-    printf("\n\tseed       = "); type_hex.dump(&v[1], stdout);
+    printf("\n\tseed      = "); type_hex.dump(&v[1], stdout);
     printf("\n\texpected   = "); type_hex.dump(&v[2], stdout);
     printf("\n\tcalculated = "); type_hex.dump(&d, stdout);
     putchar('\n');
index ef7dcab46247d446feacb24457495fd3afae8e0a..136ee079590638a42f70adce1e26c0b27ff4f51a 100644 (file)
--- a/sslprf.h
+++ b/sslprf.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index c1b43f4828254e2b41ae4242eeebeb0e90c8aad7..866533d78502f1105747db86ae289fa6b8c15a4c 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
@@ -194,7 +194,7 @@ mp *strongprime(const char *name, mp *d, unsigned nbits, grand *r,
   pfilt f;
   pgen_jumpctx j;
   rabin rb;
-  
+
   d = strongprime_setup(name, d, &f, nbits, r, n, event, ectx);
   j.j = &f;
   d = pgen(name, d, d, event, ectx, n, pgen_jump, &j,
index ba5a9a5b8f83834306ee2918547ca03c264dd3d0..1986d80647ad9b6418be69456d5f8be069dc3e11 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 1999 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,
diff --git a/tea.c b/tea.c
index 97e92c4c3c3450a46a6f7e77c1664a8101183c90..4cb5ef82eb80520f1bc857d989d9e16a8bc074d8 100644 (file)
--- a/tea.c
+++ b/tea.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -44,13 +44,13 @@ const octet tea_keysz[] = { KSZ_RANGE, TEA_KEYSZ, 0, 16, 1 };
 
 /* --- @tea_init@ --- *
  *
- * Arguments:   @tea_ctx *k@ = pointer to key block
- *              @const void *buf@ = pointer to key buffer
- *              @size_t sz@ = size of key material
+ * Arguments:  @tea_ctx *k@ = pointer to key block
+ *             @const void *buf@ = pointer to key buffer
+ *             @size_t sz@ = size of key material
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Initializes a TEA key buffer.  The key buffer must be 16
+ * Use:                Initializes a TEA key buffer.  The key buffer must be 16
  *             bytes long.
  */
 
@@ -78,13 +78,13 @@ void tea_init(tea_ctx *k, const void *buf, size_t sz)
 
 /* --- @tea_eblk@, @tea_dblk@ --- *
  *
- * Arguments:   @const tea_ctx *k@ = pointer to key block
- *              @const uint32 s[2]@ = pointer to source block
- *              @uint32 d[2]@ = pointer to teatination block
+ * Arguments:  @const tea_ctx *k@ = pointer to key block
+ *             @const uint32 s[2]@ = pointer to source block
+ *             @uint32 d[2]@ = pointer to teatination block
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Low-level block encryption and decryption.
+ * Use:                Low-level block encryption and decryption.
  */
 
 #define DELTA 0x9e3779b9
diff --git a/tea.h b/tea.h
index a7da6787ee96c7ac14a13ab717bdf052c788644d..6d96b907205b54d7631deb2a88bce3595eec5b0e 100644 (file)
--- a/tea.h
+++ b/tea.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -69,13 +69,13 @@ typedef struct tea_ctx {
 
 /* --- @tea_init@ --- *
  *
- * Arguments:   @tea_ctx *k@ = pointer to key block
- *              @const void *buf@ = pointer to key buffer
- *              @size_t sz@ = size of key material
+ * Arguments:  @tea_ctx *k@ = pointer to key block
+ *             @const void *buf@ = pointer to key buffer
+ *             @size_t sz@ = size of key material
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Initializes a TEA key buffer.  The key buffer may be up to 16
+ * Use:                Initializes a TEA key buffer.  The key buffer may be up to 16
  *             bytes long.
  */
 
@@ -83,19 +83,19 @@ extern void tea_init(tea_ctx */*k*/, const void */*buf*/, size_t /*sz*/);
 
 /* --- @tea_eblk@, @tea_dblk@ --- *
  *
- * Arguments:   @const tea_ctx *k@ = pointer to key block
- *              @const uint32 s[2]@ = pointer to source block
- *              @uint32 d[2]@ = pointer to teatination block
+ * Arguments:  @const tea_ctx *k@ = pointer to key block
+ *             @const uint32 s[2]@ = pointer to source block
+ *             @uint32 d[2]@ = pointer to teatination block
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Low-level block encryption and decryption.
+ * Use:                Low-level block encryption and decryption.
  */
 
 extern void tea_eblk(const tea_ctx */*k*/,
-                     const uint32 */*s*/, uint32 */*d*/);
+                    const uint32 */*s*/, uint32 */*d*/);
 extern void tea_dblk(const tea_ctx */*k*/,
-                     const uint32 */*s*/, uint32 */*d*/);
+                    const uint32 */*s*/, uint32 */*d*/);
 
 /*----- That's all, folks -------------------------------------------------*/
 
index 583e446d83c3311f1d6ff3eb244b4f669b230950..2681a67b83b57172551cf2e563ecc0cb9aad542d 100644 (file)
 ## 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,
index 1727cc0a907da3570e2c4d435d35500d9564d63f..9f7075ea503fe3d426cf1533a398bbe0891f547d 100644 (file)
@@ -47,73 +47,73 @@ blowfish {
   #
   # From wherever the previous tests came from.
 
-  f0                                             
+  f0
        fedcba9876543210        f9ad597c49db005e;
 
-  f0e1                                           
+  f0e1
        fedcba9876543210        e91d21c1d961a6d6;
 
-  f0e1d2                                         
+  f0e1d2
        fedcba9876543210        e9c2b70a1bc65cf3;
 
-  f0e1d2c3                                       
+  f0e1d2c3
        fedcba9876543210        be1e639408640f05;
 
-  f0e1d2c3b4                                     
+  f0e1d2c3b4
        fedcba9876543210        b39e44481bdb1e6e;
 
-  f0e1d2c3b4a5                                   
+  f0e1d2c3b4a5
        fedcba9876543210        9457aa83b1928c0d;
 
-  f0e1d2c3b4a596                                 
+  f0e1d2c3b4a596
        fedcba9876543210        8bb77032f960629d;
 
-  f0e1d2c3b4a59687                               
+  f0e1d2c3b4a59687
        fedcba9876543210        e87a244e2cc85e82;
 
-  f0e1d2c3b4a5968778                             
+  f0e1d2c3b4a5968778
        fedcba9876543210        15750e7a4f4ec577;
 
-  f0e1d2c3b4a596877869                           
+  f0e1d2c3b4a596877869
        fedcba9876543210        122ba70b3ab64ae0;
 
-  f0e1d2c3b4a5968778695a                         
+  f0e1d2c3b4a5968778695a
        fedcba9876543210        3a833c9affc537f6;
 
-  f0e1d2c3b4a5968778695a4b                       
+  f0e1d2c3b4a5968778695a4b
        fedcba9876543210        9409da87a90f6bf2;
 
-  f0e1d2c3b4a5968778695a4b3c                     
+  f0e1d2c3b4a5968778695a4b3c
        fedcba9876543210        884f80625060b8b4;
 
-  f0e1d2c3b4a5968778695a4b3c2d                   
+  f0e1d2c3b4a5968778695a4b3c2d
        fedcba9876543210        1f85031c19e11968;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e                 
+  f0e1d2c3b4a5968778695a4b3c2d1e
        fedcba9876543210        79d9373a714ca34f;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f               
+  f0e1d2c3b4a5968778695a4b3c2d1e0f
        fedcba9876543210        93142887ee3be15c;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f00             
+  f0e1d2c3b4a5968778695a4b3c2d1e0f00
        fedcba9876543210        03429e838ce2d14b;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f0011           
+  f0e1d2c3b4a5968778695a4b3c2d1e0f0011
        fedcba9876543210        a4299e27469ff67b;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f001122         
+  f0e1d2c3b4a5968778695a4b3c2d1e0f001122
        fedcba9876543210        afd5aed1c1bc96a8;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f00112233       
+  f0e1d2c3b4a5968778695a4b3c2d1e0f00112233
        fedcba9876543210        10851c0e3858da9f;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f0011223344     
+  f0e1d2c3b4a5968778695a4b3c2d1e0f0011223344
        fedcba9876543210        e6f51ed79b9db21f;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455   
+  f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455
        fedcba9876543210        64a6e14afd36b46f;
 
-  f0e1d2c3b4a5968778695a4b3c2d1e0f00112233445566  
+  f0e1d2c3b4a5968778695a4b3c2d1e0f00112233445566
        fedcba9876543210        80c7d7d45a5479ad;
 
   f0e1d2c3b4a5968778695a4b3c2d1e0f0011223344556677
index d87a33cdfb99df3769d92aebc2f5c0e33f451dbc..fd77fc46d2d912b54c9f9aa4fb0f441d695d314c 100644 (file)
@@ -10,10 +10,10 @@ desx {
   01010101010101010123456789abcdef1011121314151617
     94dbe082549a14ef 9011121314151617;
 
-  # --- 7-bit key tests --- 
+  # --- 7-bit key tests ---
 
   004513389573771011121314151617
-    4445535864657378 d8fa5084fad4b35c;   
+    4445535864657378 d8fa5084fad4b35c;
   000000000000000123456789abcdef1011121314151617
     94dbe082549a14ef 9011121314151617;
 
index aa12b48f2196a8f57ee63e2e2df332531318c8c0..b3c6e0e99cf6474cb72b3b834b205f19afda9598 100644 (file)
--- a/tests/ec
+++ b/tests/ec
@@ -20,7 +20,7 @@ check {
     0;
   "prime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
-    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411, 
+    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411,
       0xdccf19d3e76abfa05d529c07575f54c94fa5fc9f3decc246"
     0;
   "prime: 6277101735386680763835789423207666416083908700390324961279
@@ -56,7 +56,7 @@ check {
     0;
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
-    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411, 
+    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411,
       0xdccf19d3e76abfa05d529c07575f54c94fa5fc9f3decc246"
     0;
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
@@ -107,7 +107,7 @@ check {
     0;
   "binpoly: 0x800000000000000000000000000000000000000c9
     binproj: 1, 0x20a601907b8c953ca1481eb10512f78744a3205fd"
-    "0x3f0eba16286a2d57ea0591168d4994637e8343e36, 
+    "0x3f0eba16286a2d57ea0591168d4994637e8343e36,
       0x7fa8423c5ae194b56cdf21998ad8a721ef1201b8c"
     0;
 }
@@ -124,7 +124,7 @@ find {
   "prime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
     0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411
-    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411, 
+    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411,
       0x2330e62c1895405fa2ad63f8a8a0ab35b05a0360c2133db9";
 
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
@@ -138,7 +138,7 @@ find {
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
     0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411
-    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411, 
+    "0x188da80eb03090f67cbf20eb43a18801f4ff0afd82ff1411,
       0x2330e62c1895405fa2ad63f8a8a0ab35b05a0360c2133db9";
 
   "binpoly: 0x800000000000000000000000000000000000000c9
@@ -152,7 +152,7 @@ find {
   "binpoly: 0x800000000000000000000000000000000000000c9
     bin: 1, 0x20a601907b8c953ca1481eb10512f78744a3205fd"
     0x3f0eba16286a2d57ea0591168d4994637e8343e36
-    "0x3f0eba16286a2d57ea0591168d4994637e8343e36, 
+    "0x3f0eba16286a2d57ea0591168d4994637e8343e36,
       0x7fa8423c5ae194b56cdf21998ad8a721ef1201b8c";
 }
 
@@ -242,7 +242,7 @@ dbl {
 
   "binpoly: 0x020000000000000000000000000000200000000000000001
     bin: 0, 0x1ee9"
-    "0x18, 0xd" 
+    "0x18, 0xd"
     "0x1bd555555555555555555555555554e8000000000000158,
       0x14e999999999999999999999999998d7000000000001fe6";
 }
@@ -365,7 +365,7 @@ mul {
        0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
      6277101735386680763835789423176059013767194773182842284080
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
-        0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
+       0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
   "prime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
@@ -378,7 +378,7 @@ mul {
        0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
      6277101735386680763835789423176059013767194773182842284080
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
-        0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
+       0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
   "prime: 6277101735386680763835789423207666416083908700390324961279
      primeproj: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
@@ -392,7 +392,7 @@ mul {
        0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
      6277101735386680763835789423176059013767194773182842284080
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
-        0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
+       0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
@@ -405,7 +405,7 @@ mul {
        0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
      6277101735386680763835789423176059013767194773182842284080
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
-        0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
+       0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
      primeproj: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
      "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
index 91e4f52bd411984cf08b993ef1894cab2cb3ddfa..a38ea74eb13127d82fdf072ce9aa81f60e6a24bb 100644 (file)
@@ -137,7 +137,7 @@ verify {
   0x19131871d75b1612a819f29d78d1b0d7346f7aa77bb62a859bfd6c5675da9d212d3a36ef1672ef660b8c7c255cc0ec74858fba33f44c06699630a76b030ee333
   "abc"
   0x8bac1ab66410435cb7181f95b16ab97c92b341c0
-  0x41e2345f1f56df2458f426d155b4ba2db6dcd8c8 
+  0x41e2345f1f56df2458f426d155b4ba2db6dcd8c8
   0;
 
   # --- A test I made up ---
@@ -157,7 +157,7 @@ verify {
   # --- Elliptic curve test vectors ---
 
   "ec { nist-b163 }" sha
-  "0x1e7d847d0331a794852ded2b96c71d82e61f9bb4c, 
+  "0x1e7d847d0331a794852ded2b96c71d82e61f9bb4c,
     0x1a2370ab2e63f5aa8f348fbe83c0415a7d8ee207b"
   "An example message"
   0x12e2f4e865bf6e034712b4f2ba6f3c825452d6419
@@ -185,6 +185,6 @@ verify {
     0x90f99cd799abc0ea571d0e02bad80f8323050b1adbdbff50060b6e1e6ebd8611"
   "An example message"
   0xb30f954bfb624041e56f09ece884c17c74f866c24149bba0712303a9530142a6
-  0x1076bd32f298aaffa8c6242d881d928b1c4e0f5ad7e8ce3c4d815fe348a9666a 
+  0x1076bd32f298aaffa8c6242d881d928b1c4e0f5ad7e8ce3c4d815fe348a9666a
   0;
 }
index fded680dab75f91fe9f8c3576108c38bc419420b..88d94cd260bc1ba2ab993537fac74abe711a8e8f 100644 (file)
--- a/tests/gf
+++ b/tests/gf
@@ -11,7 +11,7 @@ add {
     0xc1a7bd3b4e853fc92d4e1588719986aa
     0xbe1f8593ee2c6f8f9497cc7335d97111;
   0x1e2933215e1c3bba8d2b404d98f43086bfc6198a219b168f214042a5e7df6b21
-    0x1e2933215e1c3bba8d2b404d98f43086bfc6198a219b168f214042a5e7df6b22 3;  
+    0x1e2933215e1c3bba8d2b404d98f43086bfc6198a219b168f214042a5e7df6b22 3;
 }
 
 mul {
index deaf0962c896c15eedaac870e9a428029438c031..6586d50bebf7dbb8d0e59de00e38af8fd19abcb4 100644 (file)
--- a/tests/gfn
+++ b/tests/gfn
@@ -30,5 +30,5 @@ gfn {
   0x20000000000000000000000000000000000000004000000000000000001
   0x1499e398ac5d79e368559b35ca49bb7305da6c0390bcf9e2300253203c9
   0x1006a08a41903350678e58528bebf8a0beff867a7ca36716f7e01f81052
-  0x04925df77bd8b8ff1a5ff519417822bfedf2bbd752644292c98c7af6e02;  
+  0x04925df77bd8b8ff1a5ff519417822bfedf2bbd752644292c98c7af6e02;
 }
index fa411fae10ae769a72af9fb313d6be32c25d5ac1..c7c474a05352eab6e090af07a858af930c30f29f 100644 (file)
@@ -3,9 +3,9 @@
 # Test efficient polynomial reduction
 
 reduce {
-          0x10000000
+         0x10000000
   0x4509823098098435
-           0x8098435;
+          0x8098435;
   0x100000000000000050002
     0x4509823098098435
     0x4509823098098435;
index 1ef608160411dc5ef57c87bfa7dbe30a1ea6bf68..b26433d6013cbf4251a704dd7deb1f1adb89fb7f 100644 (file)
--- a/tests/gfx
+++ b/tests/gfx
@@ -10,7 +10,7 @@ add {
   01 01 00;
   02 02 00;
   03 01 02;
-  
+
   # --- Random data tests ---
 
   7fb838a8a0a95046b9d9d9fb4440f7bb
index 214947b0d2c6640dc3e0f31a813567b945b36a1b..314fe4ae09d778e2e4cc733f413d080d5f2fe3e0 100644 (file)
@@ -49,7 +49,7 @@ verify {
   -1;
 
   "ec { nist-p256 }" sha256
-  "0x5068f177ccebee933a27457707f6879eb5c4c59d58483766caf9aabcc367c0d1, 
+  "0x5068f177ccebee933a27457707f6879eb5c4c59d58483766caf9aabcc367c0d1,
     0x4869c59dceadad93f1ed306b3ed544356c119996cc78708b9557c7ca5901da4a"
   "Testing elliptic curves with KCDSA"
   e3f05cea444ec44d508b3af5b8d2d8eb2bcbff680e83684e3e630ec5b07393c0
index 2ba7ca60403a8261ee6523e60e5bda6dc1f39ae9..bc954d0da1729bf8148a7a91c3f82f7908954e85 100644 (file)
@@ -6,25 +6,25 @@ check {
   "prime { 29, 7, 16 }" "ok";
   "prime { 29, 6, 5 }" "not a subgroup";
   "prime { 21, 2, 2 }" "p is not prime";
-  "prime { 29, 14, 9 }" "group order not prime";        
+  "prime { 29, 14, 9 }" "group order not prime";
 
   "ec { secp224r1 }" "ok";
 
   "prime { catacomb-ll-160-1024 }" "ok";
 
-  "ec { 
+  "ec {
      prime:
        0xdb7c2abf62e35e668076bead208b
-     primeproj: 
+     primeproj:
        0xdb7c2abf62e35e668076bead2088, 0x659ef8ba043916eede8911702b22
      0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500
      0xdb7c2abf62e35e7628dfac6561c5 * 1
   }" "ok";
-        
-  "ec { 
+
+  "ec {
      prime:
        0xdb7c2abf62e35e668076bead208b
-     primeproj: 
+     primeproj:
        0xdb7c2abf62e35e668076bead2088, 0x659ef8ba043916eede8911702b22
        0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500
        0xdb7c2abf62e35e7628dfac6561c5 * 2
@@ -32,7 +32,7 @@ check {
 
   # --- This one's oakley-155 ---
 
-  "ec { 
+  "ec {
     binpoly: 0x0800000000000000000000004000000000000001
     binproj: 0, 0x7338F
     0xaa089ae4666a422e714651ad9372213fa65a93,
@@ -50,7 +50,7 @@ checkelt {
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500"
     0;
 
-  "ec { 
+  "ec {
     binpoly: 0x0800000000000000000000004000000000000001
     binproj: 0, 0x7338F
     0xaa089ae4666a422e714651ad9372213fa65a93,
@@ -76,7 +76,7 @@ mul {
     "0xdafebf5828783f2ad35534631588a3f629a70fb16982a888,
        0xdd6bda0d993da0fa46b27bbc141b868f59331afa5c7e93ab"
     "0x76e32a2557599e6edcd283201fb2b9aadfd0d359cbb263da,
-       0x782c37e372ba4520aa62e0fed121d49ef3b543660cfd05fd"; 
+       0x782c37e372ba4520aa62e0fed121d49ef3b543660cfd05fd";
 }
 
 sqr {
@@ -90,12 +90,12 @@ sqr {
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
        0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
     "0xdafebf5828783f2ad35534631588a3f629a70fb16982a888,
-       0xdd6bda0d993da0fa46b27bbc141b868f59331afa5c7e93ab";    
+       0xdd6bda0d993da0fa46b27bbc141b868f59331afa5c7e93ab";
 }
 
 inv {
   "prime { 29, 7, 16 }" 9 13;
-  
+
   "prime { catacomb-ll-128-512 }"
     3344609493517948819439808013094817124423784439045485500527919676470975342917009634212031124646834193243018749323077268170586751415510015906107400678608590
     5876676858790113051879264634636727534122591023949326683791506203503263391580079717512212895466773363712551406785344528808275608153699681298608650332072384;
@@ -104,7 +104,7 @@ inv {
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
        0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
-       0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";      
+       0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
 }
 
 div {
@@ -201,7 +201,7 @@ mexp-2 {
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
       0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
     -3131675836296406071791252329528905062261497366991742517193
-    "0xea711858c23d92f9964655910bc90a197a915e90111cf11b, 
+    "0xea711858c23d92f9964655910bc90a197a915e90111cf11b,
       0x664189a1d8b2bb24f2b2ac64b19e2178118842e6ba9f4ad5"
     1110875761630725856340142297645383444629395595869672555585
     "0xaa25bb0bf38b06821e8641c1afb8bc078dbe11c3cf9bc97,
@@ -214,7 +214,7 @@ toint {
 
   "ec { nist-p192 }" inf -1 0;
 
-  "ec { nist-p192 }" 
+  "ec { nist-p192 }"
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
       0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811"
     0 602046282375688656758213480587526111916698976636884684818;
@@ -226,14 +226,14 @@ fromint {
   "prime { 29, 7, 16 }" 39527306161272833161358334459 0 19;
 
   "ec { nist-p192 }" 1 -1 inf;
-  "ec { nist-p192 }" 0 
+  "ec { nist-p192 }" 0
     0 "0, 0x7b685605ee600cb363db5ea912f2bb5e3a0a2e0e60360f12";
 }
 
 toec {
   "prime { 29, 7, 16 }" 0 -1 inf;
   "ec { nist-p192 }" inf 0 inf;
-  "ec { secp112r1 }" 
+  "ec { secp112r1 }"
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500"
     0
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500";
@@ -246,7 +246,7 @@ fromec {
   "ec { secp112r1 }" inf 0 inf;
   "ec { nist-p192 }" "1, 5" -1 inf;
 
-  "ec { secp112r1 }" 
+  "ec { secp112r1 }"
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500"
     0
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500";
@@ -261,7 +261,7 @@ tobuf {
   "ec { secp112r1 }" inf 0 "0000";
   "ec { secp112r1 }"
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500"
-    0 "000e09487239995a5ee76b55f9c2f098000ea89ce5af8724c0a23e0e0ff77500";      
+    0 "000e09487239995a5ee76b55f9c2f098000ea89ce5af8724c0a23e0e0ff77500";
   "ec { nist-p192 }"
     "0, 0x8497a9fa119ff34c9c24a156ed0d44a0c5f5d1f19fc9f0ed"
     0 "00010000188497a9fa119ff34c9c24a156ed0d44a0c5f5d1f19fc9f0ed";
@@ -294,7 +294,7 @@ toraw {
   "ec { secp112r1 }" inf 0 "00";
   "ec { secp112r1 }"
     "0x09487239995a5ee76b55f9c2f098, 0xa89ce5af8724c0a23e0e0ff77500"
-    0 "0409487239995a5ee76b55f9c2f098a89ce5af8724c0a23e0e0ff77500";      
+    0 "0409487239995a5ee76b55f9c2f098a89ce5af8724c0a23e0e0ff77500";
   "ec { nist-p192 }"
     "0, 0x8497a9fa119ff34c9c24a156ed0d44a0c5f5d1f19fc9f0ed"
     0 "040000000000000000000000000000000000000000000000008497a9fa119ff34c9c24a156ed0d44a0c5f5d1f19fc9f0ed";
index 791727e7683e51d0594672b59e918729818dc449..8ffd7ed0846ef7bccce83194d63aaeffa4885296 100644 (file)
@@ -28,7 +28,7 @@ lcrand {
   2624567577   0;
   2966901975   1;
 
-  # --- Fixed point --- 
+  # --- Fixed point ---
 
   3223959250   3223959250;
 }
index bfa18647677dba36bdde4027332627e6877dbd02..1439c35b3306cea9a94cb2337aac9ea14d39b751 100644 (file)
--- a/tests/md4
+++ b/tests/md4
@@ -26,7 +26,7 @@ md4 {
 # HMAC code is autogenerated anyway, and ought to be reliable and correct.
 #
 # These test vectors are here to spot changes in behaviour rather than ensure
-# interoperability.  
+# interoperability.
 
 md4-hmac {
   "Hi There"
index a7c5d50a82684c96f19d3bbdc15516eb670308da..14d73b9940f15789032de943325d067c2de71d70 100644 (file)
--- a/tests/mp
+++ b/tests/mp
@@ -227,7 +227,7 @@ modexp {
 
   # --- Montgomery exponentiation ---
 
-  435365332435654643667 8745435676786567758678547 
+  435365332435654643667 8745435676786567758678547
     4325987397987458979875737589783
     2439674515119108242643169132064;
   0xfffffffdfffffffffffffffffffffffe 0 0xfffffffdffffffffffffffffffffffff 1;
index c09b75bbd3edba4765cae23dc74f9961ef63a118..1438cb530a3cce753eb12266e8fd91274dd1f6ee 100644 (file)
@@ -54,7 +54,7 @@ mpbarrett-exp {
 
   # --- Negative exponents ---
 
-  0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1; 
+  0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1;
   8939489893434234331 1804289383 -8939035539979879765 6139425926295484741;
 
   # --- DSA public key derivation ---
@@ -67,19 +67,19 @@ mpbarrett-exp {
   0xdde5808744e1cd37c88667e7033694b2513a7429f035f11c0bafc4dff2b96a672bd0a3ca16aba2ea526df00c8571106ba4a1d83eb62605fc9274ab70bef0a111cd070cca2d8b10edf042d6c44f863c36fabea8bb0d7340eb8c169da27a4b0ba2713c166152a0244235093391c5f71aee8c03dcaf2335a2e4689ccb27ba365ec7
   0x65985e4c2d6027a8afdeb9b44cc619e1c4d46bde873e0d4b45325412a2f8365e51245324f888704295fe8233a6666624d9a4701172dbfcab5c9643e1caab79eb2a0c85284d1b858688b8f16804326321f53a723502a6d6ae08dcbffccf2187a799f6281c2478ef0faed5c5c80adeabc5ee435cff8b9ae0b603e47fb08d73b014
   0x23a252f60bae4907a8ed5b6203e2b1da32848cd9
-  0x9720498d8ec1208585635faaf952c1204c37119acccc64ed7942867be24770e33db39ffcfa1194549ead8495a7918a20e15144e68125860ef4f8c1a3d771bad690938bdb2c8817e2b89a8fc615d067084a7a2f2f9280e15fb9ccebfe713584260d5ed30545b69745d7b22977bfd44d60d7c5e657aab1c79dc5cb33ff29ee9074;  
+  0x9720498d8ec1208585635faaf952c1204c37119acccc64ed7942867be24770e33db39ffcfa1194549ead8495a7918a20e15144e68125860ef4f8c1a3d771bad690938bdb2c8817e2b89a8fc615d067084a7a2f2f9280e15fb9ccebfe713584260d5ed30545b69745d7b22977bfd44d60d7c5e657aab1c79dc5cb33ff29ee9074;
 
   # --- Quick RSA test ---
 
-  905609324890967090294090970600361             # This is p
+  905609324890967090294090970600361            # This is p
   3
-  905609324890967090294090970600360             # This is (p - 1)
-  1;                                            # Fermat test: p is prime
+  905609324890967090294090970600360            # This is (p - 1)
+  1;                                           # Fermat test: p is prime
 
-  734589569806680985408670989082927             # This is q
+  734589569806680985408670989082927            # This is q
   5
-  734589569806680985408670989082926             # And this is (q - 1)
-  1;                                            # Fermat again: q is prime
+  734589569806680985408670989082926            # And this is (q - 1)
+  1;                                           # Fermat again: q is prime
 
   # --- Encrypt a message ---
   #
@@ -91,7 +91,7 @@ mpbarrett-exp {
   5945908509680983480596809586040589085680968709809890671
   25906467774034212974484417859588980567136610347807401817990462701;
 
-  # --- And decrypt it again --- 
+  # --- And decrypt it again ---
 
   665251164384574309450646977867045404520085938543622535546005136647
   25906467774034212974484417859588980567136610347807401817990462701
index fb05f5ca8bea4f231912b38b1a1590268e1c2be0..a541508de022f56c9b65de9091f3edfefe62af92 100644 (file)
@@ -37,7 +37,7 @@ exp {
 
   # --- Negative and zero exponents ---
 
-  0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1; 
+  0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1;
   8939489893434234331 1804289383 -8939035539979879765 6139425926295484741;
 
   # --- DSA public key derivation ---
@@ -50,7 +50,7 @@ exp {
   0xdde5808744e1cd37c88667e7033694b2513a7429f035f11c0bafc4dff2b96a672bd0a3ca16aba2ea526df00c8571106ba4a1d83eb62605fc9274ab70bef0a111cd070cca2d8b10edf042d6c44f863c36fabea8bb0d7340eb8c169da27a4b0ba2713c166152a0244235093391c5f71aee8c03dcaf2335a2e4689ccb27ba365ec7
   0x65985e4c2d6027a8afdeb9b44cc619e1c4d46bde873e0d4b45325412a2f8365e51245324f888704295fe8233a6666624d9a4701172dbfcab5c9643e1caab79eb2a0c85284d1b858688b8f16804326321f53a723502a6d6ae08dcbffccf2187a799f6281c2478ef0faed5c5c80adeabc5ee435cff8b9ae0b603e47fb08d73b014
   0x23a252f60bae4907a8ed5b6203e2b1da32848cd9
-  0x9720498d8ec1208585635faaf952c1204c37119acccc64ed7942867be24770e33db39ffcfa1194549ead8495a7918a20e15144e68125860ef4f8c1a3d771bad690938bdb2c8817e2b89a8fc615d067084a7a2f2f9280e15fb9ccebfe713584260d5ed30545b69745d7b22977bfd44d60d7c5e657aab1c79dc5cb33ff29ee9074;  
+  0x9720498d8ec1208585635faaf952c1204c37119acccc64ed7942867be24770e33db39ffcfa1194549ead8495a7918a20e15144e68125860ef4f8c1a3d771bad690938bdb2c8817e2b89a8fc615d067084a7a2f2f9280e15fb9ccebfe713584260d5ed30545b69745d7b22977bfd44d60d7c5e657aab1c79dc5cb33ff29ee9074;
 
   # --- Quick RSA test ---
 
@@ -74,7 +74,7 @@ exp {
   5945908509680983480596809586040589085680968709809890671
   25906467774034212974484417859588980567136610347807401817990462701;
 
-  # --- And decrypt it again --- 
+  # --- And decrypt it again ---
 
   665251164384574309450646977867045404520085938543622535546005136647
   25906467774034212974484417859588980567136610347807401817990462701
index 1216f2ec192ba6ad2f2230e654d5cc1017c25873..16cd81f275808e97bc22891c3a42f85c66a64227 100644 (file)
@@ -23,10 +23,10 @@ reduce {
 
 modexp {
   0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1;
-  0xfffffffdffffffffffffffffffffffff 2 
+  0xfffffffdffffffffffffffffffffffff 2
     0xfffffffdfffffffffffffffffffffffe 1;
-  0xfffffffdffffffffffffffffffffffff 2 
-    0xfffffffdfffffffffffffffffffffffd 
+  0xfffffffdffffffffffffffffffffffff 2
+    0xfffffffdfffffffffffffffffffffffd
     0x7fffffff000000000000000000000000;
   8939489893434234331 1804289383
     -8939035539979879765 6139425926295484741;
index 1ebc869b53a89a187ca9bdf6a590002651ebae36..e30e91ab25d12ec8b715c0744bc297970595b9ea 100644 (file)
--- a/tests/mpx
+++ b/tests/mpx
@@ -319,15 +319,15 @@ uadd {
 
   00 00 00;
   00 01 01;
-  01 00 01;  
+  01 00 01;
 
   # --- Carry propagation tests ---
 
     ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-                                                          01
+                                                         01
   0100000000000000000000000000000000000000000000000000000000;
 
-                                                          01
+                                                         01
     ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
   0100000000000000000000000000000000000000000000000000000000;
 
@@ -524,7 +524,7 @@ umul {
   45 01 45;
 
   # --- Random tests ---
-  
+
   4162c300b3e157e9cd1301d499c20121
   10549901fc6dcb85882440087bd398ff
   042bc7ac8fe08ceefb098f286cdd84fd037906ead144324e361c488a221db7df;
@@ -607,7 +607,7 @@ umul {
 
   # --- Karatsuba regression ---
   #
-  # This bug was caused by kmul (a) choosing the split point too low on 
+  # This bug was caused by kmul (a) choosing the split point too low on
   # odd-sized inputs and (b) not allocating enough workspace.
 
   21a9269d7b8b63cf18faa933b3c868ba1e8cb3f00b57e197709abf96eeb9bf12e8fe22b3
index fab43ef7d256546750bcd8d99933d5ed4caf901b..b4baddb46511524a4070104e7372965b7b4a016e 100644 (file)
@@ -2,8 +2,8 @@
    The provided implementations each use a different set of tables
     - Java implementation: uses no tables
     - reference C implementation: uses Logtable, Alogtable, S, Si, rcon
-    - fast C implementation: uses Logtable, Alogtable,  rcon
-        and additionally, T1, T2, T3, T4, T5, T6, T7, T8
+    - fast C implementation: uses Logtable, Alogtable, rcon
+       and additionally, T1, T2, T3, T4, T5, T6, T7, T8
    All these tables are tested.
 
 =========================
index e33107c95337506c6f171aba19ca431fe13b3673..bc4d9764584cf1b966172fd2f3dd3cb619c0c299 100644 (file)
@@ -27,7 +27,7 @@ rmd256 {
 
 # --- HMAC mode ---
 #
-# I couldn't find any official test vectors.  These are therefore generated 
+# I couldn't find any official test vectors.  These are therefore generated
 # using the Catacomb implementation.
 
 rmd256-hmac {
index 781d7bf4eba15543d445285ba29f8249072d92c1..82bbc4ae1b3ed01e107226f184b2cfa17f364680 100644 (file)
@@ -27,7 +27,7 @@ rmd320 {
 
 # --- HMAC mode ---
 #
-# I couldn't find any official test vectors.  These are therefore generated 
+# I couldn't find any official test vectors.  These are therefore generated
 # using the Catacomb implementation.
 
 rmd320-hmac {
index 3cade124faa88d65773f784b2f6a4047cf985732..9534d733bf2075a31714919e55914abd5159035f 100644 (file)
--- a/tests/rsa
+++ b/tests/rsa
@@ -4,7 +4,7 @@
 
 p1sig-pad {
   # nbits msg rc result eparam
-  256 "616263" 0 
+  256 "616263" 0
     0x0001ffffffffffffffffffffffffffffffffffffffffffffff00cc22cc616263
     "cc22cc";
   129 "616263" 0 0x0001ffffffffffffffff00cc22cc616263 "cc22cc";
@@ -14,7 +14,7 @@ p1sig-pad {
 p1sig-priv {
   # n e d msg rc result eparam
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
-    0x10001 
+    0x10001
     0x1fd9da85ec2d8ea09abe8f2c7804916853ac1f05189b657af9b294f73c515bf9
     "616263" 0
     0xc484642d0e4dc4a4424d22410456dbdd9275b5c157d6974a66bee9aa02501c26
@@ -55,19 +55,19 @@ p1vrf-pub {
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
     0x10001
     0xc484642d0e4dc4a4424d22410456dbdd9275b5c157d6974a66bee9aa02501c26
-    "" 3 "616263" "cc22cc"; 
+    "" 3 "616263" "cc22cc";
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
     0x10001
     0xc484642d0e4dc4a4424d22410456dbdd9275b5c157d6974a66bee9aa02501c26
-    "616263" 0 "" "cc22cc"; 
+    "616263" 0 "" "cc22cc";
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
     0x10001
     0x27654c24f4ffefffc3bef7be8ae469db3069407702391eeb551ce9544621b63a
-    "" 18 "ffffffffffffffffffffff00cc22cc616263" "cc22cc"; 
+    "" 18 "ffffffffffffffffffffff00cc22cc616263" "cc22cc";
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
     0x10001
     0xd980f3047ab74bc4e7bb99eeb17fcc657f50ee26146b7f2a9f982ef2f44cba
-    "" -1 "" "cc22cc"; 
+    "" -1 "" "cc22cc";
 
   0xb6dd0145ada7547bba5db3a35d34e612a8d73e93c33c720f4e4506428cacc6861b2143ed3a0683394fd94cfab8ab66a024161e9c9c1848d50627b3ac46de6d1b1d73ae7b5540b3df65c53aed9d4bdf1f86c8ddacfaf608823bb3d307d89d4c8bb11b5198f9851a519538787cd054ced98734daa2f7f2dc5b51c8c02ea8c362ff
     0x10001
@@ -87,7 +87,7 @@ p1enc-pad {
 
 p1enc-pub {
   # n e msg rc ct eparam
-  0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3 
+  0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
     0x10001 "616263" 0
     0x8f20a0fc778b7c55567f41c344d39bfcdaca04fd475f2290dc05c236585a68ca "";
 
@@ -103,9 +103,9 @@ p1dec-pad {
   # nbits msg rc pt eparam
   256 0x0002efbdfc524ad6419b65537a59b42a4662918436d6e0e4804b6b1000616263
     3 "616263" "";
-  105 0x0002efbd98524ad6419b00616263 
+  105 0x0002efbd98524ad6419b00616263
     3 "616263" "";
-  104 0x0002efbd98524ad64100616263 
+  104 0x0002efbd98524ad64100616263
     -1 "" "";
   256 0x0002efbdfc524ad6419b00537a59b42a4662918436d6e0e4804b6b1000616263
     21 "537a59b42a4662918436d6e0e4804b6b1000616263" "";
@@ -124,17 +124,17 @@ p1dec-pad {
 p1dec-priv {
   # p e d msg rc pt eparam
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
-    0x10001 
+    0x10001
     0x1fd9da85ec2d8ea09abe8f2c7804916853ac1f05189b657af9b294f73c515bf9
     0x8f20a0fc778b7c55567f41c344d39bfcdaca04fd475f2290dc05c236585a68ca
     3 "616263" "";
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
-    0x10001 
+    0x10001
     0x1fd9da85ec2d8ea09abe8f2c7804916853ac1f05189b657af9b294f73c515bf9
     0x19d6408010f0c2722b44cd4d5e006b6ffaa634aa225d727fa37c7c6ec29c5155
     21 "537a59b42a4662918436d6e0e4804b6b1000616263" "";
   0xccbd3b508e1ac2ed16f0f85adfec8d17ad525018307e613e0ee3aa4652b7ceb3
-    0x10001 
+    0x10001
     0x1fd9da85ec2d8ea09abe8f2c7804916853ac1f05189b657af9b294f73c515bf9~
     0x952aa4893cd2620e4942f449529ea2f7105b9d67e041a676259fb986bc507b7d
     -1 "" "";
@@ -239,60 +239,60 @@ psssig-pad {
 
 pssvrf-pad {
   # nbits sig msg rc result mgf hash saltsz
-  256 
+  256
     0x3426a2a3e34a2ea4b6831d1366f0477cf42d9b98fddf692f3d14f9b8a168e4bc
     "a9993e364706816aba3e25717850c26c9cd0d89d" 0 "" sha-mgf sha 10;
-  256 
+  256
     0x3426a2a3e34a2ea4b6831d1366f0477cf42d9b98fddf692f3d14f9b8a168e4bc
     "a9993e364706816aba3e25717850c26c9cd0d89e" -1 "" sha-mgf sha 10;
-  256 
+  256
     0x3426a2a3e34a2ea4b6831d1366f0477cf42d9b98fddf692f3d14f9b8a168e4bd
     "a9993e364706816aba3e25717850c26c9cd0d89d" -1 "" sha-mgf sha 10;
-  256 
+  256
     0x3526a2a3e34a2ea4b6831d1366f0477cf42d9b98fddf692f3d14f9b8a168e4bc
-    "a9993e364706816aba3e25717850c26c9cd0d89d" -1 "" sha-mgf sha 10;  
+    "a9993e364706816aba3e25717850c26c9cd0d89d" -1 "" sha-mgf sha 10;
 
-  1024 
+  1024
     0x2d22499324a1428e11201e9103ba63a5be9812e104b789a128214c05e767ceae82a51ce2f13cf907183dfa3b5bfe998be503d6c99cecb32e2b488028ece05e0caf479c254a5cd823bb5ad529a0152dab4dcdd4746718e8720f6b7a46b1056d9a0bc6ce95c99ce914886ff80c3a3c5abcc4b4a4346e77722de7b318c1750e3abc
     "fda74fa48306a43dda32e18d95e2b3b1e3edc172" 0 ""
     sha-mgf sha 20;
-  1025 
+  1025
     0xad22499324a1428e11201e9103ba63a5be9812e104b789a128214c05e767ceae82a51ce2f13cf907183dfa3b5bfe998be503d6c99cecb32e2b488028ece05e0caf479c254a5cd823bb5ad529a0152dab4dcdd4746718e8720f6b7a46b1056d9a0bc6ce95c99ce914886ff80c3a3c5abcc4b4a4346e77722de7b318c1750e3abc
     "fda74fa48306a43dda32e18d95e2b3b1e3edc172" 0 ""
     sha-mgf sha 20;
-  1024 
+  1024
     0x6d59bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fdd4987e9f2d57a3ae237d126d87c53f50db3641f9cab66739970843fe9182ff6ebcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1025 
+  1025
     0x6d59bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fdd4987e9f2d57a3ae237d126d87c53f50db3641f9cab66739970843fe9182ff6ebcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1026 
+  1026
     0x159bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1027 
+  1027
     0x159bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1028 
+  1028
     0x559bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1029 
+  1029
     0xd59bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1030 
+  1030
     0xd59bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1031 
+  1031
     0x2d59bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
-  1032 
+  1032
     0x6d59bc4a479db6990a56909b9077e87f29473f88203c830c1ef6f160cd48e537a178992e98663de4fe2c5c31bbe49764484a46bdc1f5bd243f010c698614fc3acac3cd35cb3474dd4b3b4e6a5b53742823f319fcb203f2b7739ce25d3073af94bcb4b0a690ede55ffe88ceb8c946766fa4fb3343f0c15bfb1d1ee07212c49dd5bc
     "9a741f76c050657815eadefc360e8cd191edd49f66ecbdedd048a364d8ef5e86" 0 ""
     sha256-mgf sha256 32;
@@ -372,7 +372,7 @@ psssig-priv {
     0x10001
     0x27f0e74fa6a8ad5a83d59a09fd85f10dd0d131baaad40bec1dba3cc0d24129cf72efc60443e671de8ac9b162d11eddee26c0a7a6bb052d4b155407baf9eeaffe351674bc6781d2b4b576ddbbf5f1f4429c974047f4149488148e4c365c1bd063ddfcdac3a2f5eec91e4dc091689c95189c8d0edbfd23da722e25643ffa58ad94ec06f6ab21fc8805b09066ffe3849e2d5536cf8a7385e62526989605c9fefbd9092ddb51bd887ee71cababab3a150b34d7de54d01c19987438bef4672208418e51bf49cdbe1825f16e2764c58aab339afbb4f673914646d2a191fec4f7a503e512841a2cccdc8852c0f348b8aedea3123747d20c3c580c38b438ef5fde3608bf
     "12f1c8bb1c560ae3f3b0fcb1ae918af64947a95c4c53e81551280ffc2e842884"
-    0 
+    0
     0x35fcbf7c5a69bd892dbf2ee88e53e40fe58ecddb4cf7c8885b228bfa9c24730ac554e20c65d82fc98d67a7805343450b1712a5f8c5ed6970c4310e06f65a9758d33e1c9dedec7178507da977a5ab76635d9f824b136abb855210caf851700bb57eb3aef7de61b217ae79ee4d6ad7c1a94279d9f8a425e06a0e4024d4c5b709ce1af6d09a26ce346f0a7eb36675fdbe1367f3d040ab7e18235b8090f91c355ee07425e3f4adf302e741be55959ac0f31075ccf1beef20e2f90693a82a30a48969c5ef32bc779ce84961b6a8d3ae0228cc520e2c644067bae96f14d90ceda2c8d00c97de3895d434a001d3cca244777fba4e0f5b5ed01c103842652c6402d2525b
     sha256-mgf sha256 32;
 }
index 29be4d4a08c9dce8e3c8e23172db3a73e16faef6..5d9a75981b7aa769a2fb4ba3c195b419b7a5becc 100644 (file)
@@ -33,7 +33,7 @@ sha224-rep {
   "1234567890" 8
        b50aecbe4e9bb0b57bc5f3ae760a8e01db24f203fb3cdcd13148046e;
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
-" 23 
+" 23
        5a86156c37c95ab356e003d569370580737794815f46de7f4834d634;
   "a" 1000000
        20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67;
index e3305f1e31aed600711df8f01d27d2043f6ca113..a646803d14f725e9875a1e9edd011a44536bbd73 100644 (file)
@@ -19,7 +19,7 @@ skipjack {
   # match my (or anyone else's!) implementation.  These are the values
   # which seem to be generally agreed.
 
-  e7496e99e4628b7f9ffb 99ccfe2b90fd550b 60a73d387b517fca; 
+  e7496e99e4628b7f9ffb 99ccfe2b90fd550b 60a73d387b517fca;
   e7496e99e4628b7f9ffb 60a73d387b517fca 24c90cb05d668b27;
   e5caf4dcc70e55f1dd90 b71cb0d009af2765 64f4877ae68a8a62;
   e5caf4dcc70e55f1dd90 64f4877ae68a8a62 fee778a838a601cd;
index be91e16b1359b9c73836a3e54c95382d4f3b24ea..5c78db4109e9ae52b225d6d46fa598b75c205320 100644 (file)
@@ -6,14 +6,14 @@
  * Almost.  I changed the types from long to unsigned long.
  */
 
-void code(unsigned long* v, unsigned long* k)  {              
+void code(unsigned long* v, unsigned long* k)  {
 unsigned long y=v[0],z=v[1], sum=0,   /* set up */
- delta=0x9e3779b9, n=32 ;             /* a key schedule constant */
-while (n-->0) {                       /* basic cycle start */
+ delta=0x9e3779b9, n=32 ;            /* a key schedule constant */
+while (n-->0) {                              /* basic cycle start */
   sum += delta ;
     y += (z<<4)+k[0] ^ z+sum ^ (z>>5)+k[1] ;
     z += (y<<4)+k[2] ^ y+sum ^ (y>>5)+k[3] ;   /* end cycle */
-              } 
+             }
 v[0]=y ; v[1]=z ; }
 
 int main(void)
@@ -42,6 +42,6 @@ int main(void)
     code(p, k);
     printf("%08lx%08lx;\n", p[0], p[1]);
   }
-    
+
   return (0);
 }
index 926cb3ae21562510ede2995565c827cb86a921e0..7679aa49a98eaa653510aecc28e2d17f53c805ce 100644 (file)
@@ -31,7 +31,7 @@ tiger {
 # ought to be reliable and correct.
 #
 # These test vectors are here to spot changes in behaviour rather than ensure
-# interoperability.  
+# interoperability.
 
 tiger-hmac {
   "Hi There"
index 6cbc3e677f255b22e4b8a57bafd0e9df0d778e78..5e7a501bd821b5dc83e532509660f33488bce715 100644 (file)
@@ -7,7 +7,7 @@ Electronic Codebook (ECB) Mode
 Tables Known Answer Test
 Tests permutation tables and MDS matrix multiply tables.
 
-Algorithm Name:       TWOFISH
+Algorithm Name:              TWOFISH
 Principal Submitter:  Bruce Schneier, Counterpane Systems
 
 ==========
index b1c265c9b530a612260e727dc347c6ef984d6267..5f2383ee6d6180f077f7ca6aea6169ec9bda78a1 100644 (file)
@@ -4,7 +4,7 @@
 
 # --- Basic hash function ---
 #
-# Some of these are taken from the ISO test vectors from the Whirlpool 
+# Some of these are taken from the ISO test vectors from the Whirlpool
 # distribution.
 
 whirlpool {
index 249fc580235813ce55502adc7bcb80a197aa631c..968777c2e4d9416bbee24e814e8b2554fe682586 100644 (file)
@@ -4,7 +4,7 @@
 
 # --- Basic hash function ---
 #
-# Some of these are taken from the ISO test vectors from the Whirlpool 
+# Some of these are taken from the ISO test vectors from the Whirlpool
 # distribution.
 
 whirlpool256 {
index 4880905946e0bd361a1440bdafcfb2ce1d86d19e..49632b163c27fce9930bdb006cc8c411e826fd6a 100644 (file)
@@ -15,10 +15,10 @@ if (N>0) {
      y+= (z<<4 ^ z>>5) + z ^ sum + k[sum&3],
      sum+=DELTA,
      z+= (y<<4 ^ y>>5) + y ^ sum + k[sum>>11 &3] ;
-         }
+        }
 else {
 
-          /* decoding */
+         /* decoding */
    unsigned long sum=DELTA*(-N) ;
    while (sum)
      z-= (y<<4 ^ y>>5) + y ^ sum + k[sum>>11 &3],
@@ -55,6 +55,6 @@ int main(void)
     tean(p, k, 32);
     printf("%08lx%08lx;\n", p[0], p[1]);
   }
-    
+
   return (0);
 }
index 117affbcd28a76c2621b89766d267e936a2429e6..6b6a81e011aefb13d17f21f257bac1ea7da431c8 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
 #define TIGER_ROUND(a, b, c, x, n, op) do {                            \
   kludge64 _t;                                                         \
   XOR64(c, c, x);                                                      \
-  _t =          s[0][U8(LO64(c) >>  0)];                               \
+  _t =         s[0][U8(LO64(c) >>  0)];                                \
   XOR64(_t, _t, s[1][U8(LO64(c) >> 16)]);                              \
   XOR64(_t, _t, s[2][U8(HI64(c) >>  0)]);                              \
   XOR64(_t, _t, s[3][U8(HI64(c) >> 16)]);                              \
   SUB64(a, a, _t);                                                     \
-  _t =          s[3][U8(LO64(c) >>  8)];                               \
+  _t =         s[3][U8(LO64(c) >>  8)];                                \
   XOR64(_t, _t, s[2][U8(LO64(c) >> 24)]);                              \
   XOR64(_t, _t, s[1][U8(HI64(c) >>  8)]);                              \
   XOR64(_t, _t, s[0][U8(HI64(c) >> 24)]);                              \
index 2281b146de7b615a05c8d9fbd541f3d6f5374a7f..4ba0ffb0d1851c521da2c2fc8fa584cbb7f508db 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -134,7 +134,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (j % 2 == 1)
-       fputs(",                \\\n    ", stdout);
+       fputs(",                \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
diff --git a/tiger.c b/tiger.c
index 66d6dd1d7ad931f347edbc19b34f8b8755f00fed..87f3ca97ee1df346c7b4d2b166eaaac5f9a77959 100644 (file)
--- a/tiger.c
+++ b/tiger.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -97,8 +97,8 @@ void tiger_init(tiger_ctx *ctx)
 void tiger_set(tiger_ctx *ctx, const void *buf, unsigned long count)
 {
   const octet *p = buf;
-  LOAD64_L_(ctx->a, p +  0);
-  LOAD64_L_(ctx->b, p +  8);
+  LOAD64_L_(ctx->a, p +         0);
+  LOAD64_L_(ctx->b, p +         8);
   LOAD64_L_(ctx->c, p + 16);
   ctx->off = 0;
   ctx->nl = U32(count);
diff --git a/tiger.h b/tiger.h
index e5f7389dcdc63cdc710308551e28f9f440af4ef4..78e83f2ba401e2f8a40c95b9b00d7fce96b02e43 100644 (file)
--- a/tiger.h
+++ b/tiger.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index dafc2475876cf1733b8748f67559069aa9957615..04c4c2535df3b0e4f5845114648dcc2da5814b38 100644 (file)
--- a/tlsprf.c
+++ b/tlsprf.c
@@ -7,7 +7,7 @@
  * (c) 2001 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,
@@ -218,7 +218,7 @@ static int dx_grmisc(grand *r, unsigned op, ...)
     } break;
     default:
       GRAND_BADOP;
-      break;      
+      break;
   }
 
   va_end(ap);
@@ -423,7 +423,7 @@ static int prf_grmisc(grand *r, unsigned op, ...)
     } break;
     default:
       GRAND_BADOP;
-      break;      
+      break;
   }
 
   va_end(ap);
@@ -516,9 +516,9 @@ static int v_generate(dstr *v)
   if (memcmp(v[2].buf, d.buf, d.len) != 0) {
     ok = 0;
     printf("\nfail tlsprf:"
-          "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
-    printf("\n\tseed       = "); type_hex.dump(&v[1], stdout);
+    printf("\n\tseed      = "); type_hex.dump(&v[1], stdout);
     printf("\n\texpected   = "); type_hex.dump(&v[2], stdout);
     printf("\n\tcalculated = "); type_hex.dump(&d, stdout);
     putchar('\n');
index f625cdb4b907668268af7daa428b33b0f0ea6427..0a702b5513abd34edd0a25a903a7dc7d505d4328 100644 (file)
--- a/tlsprf.h
+++ b/tlsprf.h
@@ -7,7 +7,7 @@
  * (c) 2001 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,
index 4acbf73044a09ae4877d9742c9ac89ce7fae8570..1a314637a09bbaf600c0c4e52cab230c9187802f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -274,7 +274,7 @@ static void qmds(void)
          puts(" },                     \\\n\
                                                                        \\");
       } else if (j % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
index e70ad127e277605958630587e31b22cb715917cf..ad4882ff53cb8f0cbff31e49c4e1c85f0bd0a490 100644 (file)
--- a/twofish.c
+++ b/twofish.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -68,8 +68,8 @@ static uint32 h(uint32 x, const uint32 *l, unsigned k)
   /* --- Apply a series of @q@ tables to an integer --- */
 
 # define Q(x, qa, qb, qc, qd)                                          \
-  ((qa[((x) >>  0) & 0xff] <<  0) |                                    \
-   (qb[((x) >>  8) & 0xff] <<  8) |                                    \
+  ((qa[((x) >> 0) & 0xff] <<  0) |                                     \
+   (qb[((x) >> 8) & 0xff] <<  8) |                                     \
    (qc[((x) >> 16) & 0xff] << 16) |                                    \
    (qd[((x) >> 24) & 0xff] << 24))
 
@@ -178,7 +178,7 @@ void twofish_initfk(twofish_ctx *k, const void *buf, size_t sz,
          qq++;
          r++;
        }
-       
+
        s[j][sz - 1 - i] = ss[j] = a;
       }
       q += 8;
@@ -321,12 +321,12 @@ void twofish_fkinit(twofish_fk *fk, const void *buf, size_t sz)
 /* --- Feistel function --- */
 
 #define GG(k, t0, t1, x, y, kk) do {                                   \
-  t0 = (k->g[0][U8(x >>  0)] ^                                         \
-       k->g[1][U8(x >>  8)] ^                                          \
+  t0 = (k->g[0][U8(x >>         0)] ^                                          \
+       k->g[1][U8(x >>  8)] ^                                          \
        k->g[2][U8(x >> 16)] ^                                          \
        k->g[3][U8(x >> 24)]);                                          \
-  t1 = (k->g[1][U8(y >>  0)] ^                                         \
-       k->g[2][U8(y >>  8)] ^                                          \
+  t1 = (k->g[1][U8(y >>         0)] ^                                          \
+       k->g[2][U8(y >>  8)] ^                                          \
        k->g[3][U8(y >> 16)] ^                                          \
        k->g[0][U8(y >> 24)]);                                          \
   t0 += t1;                                                            \
index 0f475699ca81439a8448742fdb05a77b1939a19b..65007db86fa7b9d1d0d31b42092794849f0b03b3 100644 (file)
--- a/twofish.h
+++ b/twofish.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
index b30a370c9b9f3e44ccd79c30646f72695a5034ef..adfaf6236dac49c9796096c7af55a9516e2f972d 100644 (file)
@@ -15,7 +15,7 @@ ecptdecompress.c
        chunk to be inserted into ectab.in.
 
 ecentry-prettify.pl
-       Run 
+       Run
                ecentry-prettify.pl NAME FIELD-TYPE
        and enter P, A, B, R, H and G by pasting from some appropriate
        standard, terminating each one by a `.' on its own line.
index 5f29c1a52c4f69969ebb791afaa1d65126a1ff17..4447ddf7beca9a10ef824e2c540f42a40627cc95 100644 (file)
@@ -163,7 +163,7 @@ static void freefactorbase(fbe_v *v)
 
   for (i = 0; i < DA_LEN(v); i++)
     mp_drop(DA(v)[i].n);
-  DA_DESTROY(v);    
+  DA_DESTROY(v);
 }
 
 static mp *ecm(mp *x)
@@ -215,7 +215,7 @@ static void dofactor(mp *x, mp_v *v)
 {
   mp *f;
 
-  x = smallfactors(x, v); 
+  x = smallfactors(x, v);
   if (MP_EQ(x, MP_ONE)) return;
 
 #ifdef POLLARDRHO
index 98941c90420993b156de2f0e182ee353b38b3cbb..11a95850c89a7fc5397495767c1ea02f48d54e87 100644 (file)
@@ -304,11 +304,11 @@ mp *poly_solve(field *f, mp *d, mp *p, grand *r)
       poly_mul(f, &c, &c, &c);
       poly_add(f, &c, &c, &ut);
       poly_div(f, 0, &c, &c, &g);
-/*       putchar('.'); fflush(stdout); */
+/*      putchar('.'); fflush(stdout); */
     }
-/*       poly_dump(f, "c-out", &c); */
+/*      poly_dump(f, "c-out", &c); */
     poly_gcd(f, &h, &c, &g);
-/*       poly_dump(f, "h", &h); */
+/*      poly_dump(f, "h", &h); */
     if (POLY_CONSTANTP(&h) || POLY_DEGREE(&h) == POLY_DEGREE(&g))
       continue;
     if (2 * POLY_DEGREE(&h) > POLY_DEGREE(&g))
@@ -446,7 +446,7 @@ static mp *fieldpoly(unsigned m, int t, grand *rr)
 #else
     abort();
 #endif
-    } break;      
+    } break;
   }
   return (p);
 }
@@ -473,7 +473,7 @@ static mp *fip(unsigned m)
   n = 0;
   while (!dofip(m, &p, n, m))
     n += 2;
-  return (p);  
+  return (p);
 }
 
 static mp *fnb(mp *p)
index ed65303c16bb18a23fbba9517b06779de7a20dd1..61c3278eea7ccf6227f2bf0e23924d96c9ee59d5 100755 (executable)
@@ -21,8 +21,8 @@ kf = C.KeyFile(environ.get('TMPDIR', '/tmp') + 'keyring', C.KOPEN_WRITE)
 id = C.ReadBuffer(seed).getu32()
 k = kf.newkey(id, 'dh-param')
 k.data = C.KeyDataStructured({'p': C.KeyDataMP(dhi.p, 'shared'),
-                              'q': C.KeyDataMP(dhi.r, 'shared'),
-                              'g': C.KeyDataMP(dhi.g, 'shared')})
+                             'q': C.KeyDataMP(dhi.r, 'shared'),
+                             'g': C.KeyDataMP(dhi.g, 'shared')})
 k.attr['factor'] = ', '.join([str(f) for f in ff])
 k.attr['genseed'] = M.base64_encode(seed)
 k.attr['seedalg'] = 'rmd160-mgf'
@@ -42,8 +42,8 @@ print '# seed = %s' % M.base64_encode(seed)
 print '# fingerprint = %s' % fprhex
 print ''
 print 'group %s' % name
-print '  p %s' % dhi.p
-print '  q %s' % dhi.r
-print '  g %s' % dhi.g
+print '         p %s' % dhi.p
+print '         q %s' % dhi.r
+print '         g %s' % dhi.g
 for f in ff: print '#:factor %s' % f
 print
index 086cfd5f121b71a8207ef569dad96b4c4e03c830..1b397b1fe056ae1c80319a22b3baa70c25433f0f 100755 (executable)
@@ -9,7 +9,7 @@ for i in \
        3072:256 \
        7680:384 \
        15360:512
-do 
+do
   set -- `echo $i | tr : " "`
   utils/genpgroup catacomb-ll-$2-$1 $1 $2 !
 done
index 406eacb0332305f92935a6927b80253449de3c2f..abe77c309ce23031816b0d0073a49b40143a5f53 100644 (file)
@@ -12,9 +12,9 @@ for i in xrange(16, 90):
     for k in xrange(i + 1, i + 16):
       x = R.randrange(1L << k)
       print "  0x%x" % m
-      print "    0x%x" % x
-      print "    0x%x;" % (x%m)
+      print "   0x%x" % x
+      print "   0x%x;" % (x%m)
       if not first:
-        print
+       print
       first = False
 print "}"
index 39b7e6f0a0d8a0eddf431fb17b54e83b5e1a9d33..a83288a3cb9e85386698b62c4c483b337d127286 100644 (file)
@@ -30,8 +30,8 @@ static int primitivep(fact_v *f, mp *p)
   for (i = 0; i < DA_LEN(f); i++) {
     x = gfreduce_exp(&r, x, MP_TWO, DA(f)[i].r);
 #ifdef DEBUG
-    MP_PRINT("  r", DA(f)[i].r);
-    MP_PRINTX("  x", x);
+    MP_PRINT(" r", DA(f)[i].r);
+    MP_PRINTX("         x", x);
 #endif
     if (MP_EQ(x, MP_ONE)) {
       rc = 0;
@@ -65,7 +65,7 @@ static mp *fip(fact_v *f, unsigned m)
   n = 0;
   while (!dofip(f, m, &p, n, m))
     n += 2;
-  return (p);  
+  return (p);
 }
 
 static void findprim(unsigned m)
index 47930f5428c44529a5a001c636dc206c911e7109..a6a34ead65f5c60cb274a1868adf9bb7129f1265 100644 (file)
@@ -58,12 +58,12 @@ (defun parse-stanza (stream)
     0x~A
     \"~A\" 0 \"\"
     ~A-mgf ~:*~A ~A~)~%"
-                  nbits
+                 nbits
                  out
                  hash
                  (get mech 'hash)
                  (get mech 'hashsz))
          t)))))
-                 
+
 (with-open-file (str "/tmp/mdw/psstests")
   (parse-stanza str))
index 7276f2dd0b27ef92063c1f794f1ddd4088fb5408..75f7bb268cfe2a087989eb8a896cb6464d914984 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2005 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,
@@ -168,7 +168,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 2 == 1)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
@@ -192,7 +192,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
@@ -212,7 +212,7 @@ int main(void)
                                                                        \\\n\
   { ", stdout);
       } else if (i % 4 == 3)
-       fputs(",                        \\\n    ", stdout);
+       fputs(",                        \\\n    ", stdout);
       else
        fputs(", ", stdout);
     }
@@ -227,7 +227,7 @@ int main(void)
     exit(EXIT_FAILURE);
   }
 
-  return (0);  
+  return (0);
 }
 
 /*----- That's all, folks -------------------------------------------------*/
index 96cbbe150032f595b5ea55bb42e0f10c1a9f9862..48e6e97296a4b2dec9a4963a36ff4a912e2e7a58 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2005 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,
@@ -57,7 +57,7 @@ static const uint32 U[4][256] = WHIRLPOOL_U, V[4][256] = WHIRLPOOL_V;
   int i;                                                               \
   printf("\n");                                                                \
   for (i = 0; i < 8; i++)                                              \
-    printf("  %08x %08x  :  %08x %08x\n",                              \
+    printf("  %08x %08x         :  %08x %08x\n",                               \
           HI64(k[i]), LO64(k[i]),                                      \
           HI64(v[i]), LO64(v[i]));                                     \
 } while (0)
@@ -123,18 +123,18 @@ static const uint32 U[4][256] = WHIRLPOOL_U, V[4][256] = WHIRLPOOL_V;
   vv[i].lo ^= UUL(v, i, 0); vv[i].hi ^= VVL(v, i, 0);                  \
   XROW(vv, v, i);                                                      \
 } while (0)
-  
+
 #endif
 
 #define RHO(vv, v, kk, k) do {                                         \
-  ROWK(kk, k, 0, *c++);   ROWK(vv, v, 0, kk[0]);                       \
-  ROWZ(kk, k, 1);         ROWK(vv, v, 1, kk[1]);                       \
-  ROWZ(kk, k, 2);         ROWK(vv, v, 2, kk[2]);                       \
-  ROWZ(kk, k, 3);         ROWK(vv, v, 3, kk[3]);                       \
-  ROWZ(kk, k, 4);         ROWK(vv, v, 4, kk[4]);                       \
-  ROWZ(kk, k, 5);         ROWK(vv, v, 5, kk[5]);                       \
-  ROWZ(kk, k, 6);         ROWK(vv, v, 6, kk[6]);                       \
-  ROWZ(kk, k, 7);         ROWK(vv, v, 7, kk[7]);                       \
+  ROWK(kk, k, 0, *c++);          ROWK(vv, v, 0, kk[0]);                        \
+  ROWZ(kk, k, 1);        ROWK(vv, v, 1, kk[1]);                        \
+  ROWZ(kk, k, 2);        ROWK(vv, v, 2, kk[2]);                        \
+  ROWZ(kk, k, 3);        ROWK(vv, v, 3, kk[3]);                        \
+  ROWZ(kk, k, 4);        ROWK(vv, v, 4, kk[4]);                        \
+  ROWZ(kk, k, 5);        ROWK(vv, v, 5, kk[5]);                        \
+  ROWZ(kk, k, 6);        ROWK(vv, v, 6, kk[6]);                        \
+  ROWZ(kk, k, 7);        ROWK(vv, v, 7, kk[7]);                        \
 } while (0)
 
 void whirlpool_compress(whirlpool_ctx *ctx, const void *sbuf)
@@ -143,7 +143,7 @@ void whirlpool_compress(whirlpool_ctx *ctx, const void *sbuf)
   const kludge64 *c = C;
   const octet *s = sbuf;
   int i;
-  
+
   for (i = 0; i < 8; i++) {
     LOAD64_L_(m[i], &s[i * 8]);
     XOR64(v[i], m[i], ctx->s[i]);
@@ -243,8 +243,8 @@ static void final(whirlpool_ctx *ctx)
 {
   HASH_PAD(WHIRLPOOL, whirlpool, ctx, 0x80, 0, 32);
   memset(ctx->buf + WHIRLPOOL_BUFSZ - 32, 0, 24);
-  STORE32(ctx->buf + WHIRLPOOL_BUFSZ -  8, (ctx->nl >> 29) | (ctx->nh << 3));
-  STORE32(ctx->buf + WHIRLPOOL_BUFSZ -  4, ctx->nl << 3);
+  STORE32(ctx->buf + WHIRLPOOL_BUFSZ - 8, (ctx->nl >> 29) | (ctx->nh << 3));
+  STORE32(ctx->buf + WHIRLPOOL_BUFSZ - 4, ctx->nl << 3);
   whirlpool_compress(ctx, ctx->buf);
 }
 
index a85a62bb0ed29bf04d34791ccafc1c1d4cd81a0a..eb29a16e1f6646e896d4c387e80592837d0cd90c 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2000 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,
diff --git a/xtea.c b/xtea.c
index 4f0ac578b421c5be5dd8deb5c7f39b35e19e54e8..13cb7fdaa51f4ab1dc40fe5d19cc8febe9277a2c 100644 (file)
--- a/xtea.c
+++ b/xtea.c
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -44,13 +44,13 @@ const octet xtea_keysz[] = { KSZ_RANGE, XTEA_KEYSZ, 0, 16, 1 };
 
 /* --- @xtea_init@ --- *
  *
- * Arguments:   @xtea_ctx *k@ = pointer to key block
- *              @const void *buf@ = pointer to key buffer
- *              @size_t sz@ = size of key material
+ * Arguments:  @xtea_ctx *k@ = pointer to key block
+ *             @const void *buf@ = pointer to key buffer
+ *             @size_t sz@ = size of key material
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Initializes an XTEA key buffer.  The key buffer must be 16
+ * Use:                Initializes an XTEA key buffer.  The key buffer must be 16
  *             bytes long.
  */
 
@@ -68,8 +68,8 @@ void xtea_init(xtea_ctx *k, const void *buf, size_t sz)
     p = kb;
   }
 
-  k->k[0] = LOAD32(p +  0); k->k[1] = LOAD32(p +  4);
-  k->k[2] = LOAD32(p +  8); k->k[3] = LOAD32(p + 12);
+  k->k[0] = LOAD32(p + 0); k->k[1] = LOAD32(p +  4);
+  k->k[2] = LOAD32(p + 8); k->k[3] = LOAD32(p + 12);
   k->r = 32;
 
   if (p == kb)
@@ -78,13 +78,13 @@ void xtea_init(xtea_ctx *k, const void *buf, size_t sz)
 
 /* --- @xtea_eblk@, @xtea_dblk@ --- *
  *
- * Arguments:   @const xtea_ctx *k@ = pointer to key block
- *              @const uint32 s[2]@ = pointer to source block
- *              @uint32 d[2]@ = pointer to xteatination block
+ * Arguments:  @const xtea_ctx *k@ = pointer to key block
+ *             @const uint32 s[2]@ = pointer to source block
+ *             @uint32 d[2]@ = pointer to xteatination block
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Low-level block encryption and decryption.
+ * Use:                Low-level block encryption and decryption.
  */
 
 #define DELTA 0x9e3779b9
diff --git a/xtea.h b/xtea.h
index fa2bffb10fedca4b9c7c6145c9277e96240c8adb..9e40b1eb31b2e58eb342ca0273cb81bccd3c5cbb 100644 (file)
--- a/xtea.h
+++ b/xtea.h
@@ -7,7 +7,7 @@
  * (c) 2000 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,
@@ -69,13 +69,13 @@ typedef struct xtea_ctx {
 
 /* --- @xtea_init@ --- *
  *
- * Arguments:   @xtea_ctx *k@ = pointer to key block
- *              @const void *buf@ = pointer to key buffer
- *              @size_t sz@ = size of key material
+ * Arguments:  @xtea_ctx *k@ = pointer to key block
+ *             @const void *buf@ = pointer to key buffer
+ *             @size_t sz@ = size of key material
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Initializes an XTEA key buffer.  The key buffer may be up to
+ * Use:                Initializes an XTEA key buffer.  The key buffer may be up to
  *             16 bytes long.
  */
 
@@ -83,13 +83,13 @@ extern void xtea_init(xtea_ctx */*k*/, const void */*buf*/, size_t /*sz*/);
 
 /* --- @xtea_eblk@, @xtea_dblk@ --- *
  *
- * Arguments:   @const xtea_ctx *k@ = pointer to key block
- *              @const uint32 s[2]@ = pointer to source block
- *              @uint32 d[2]@ = pointer to xteatination block
+ * Arguments:  @const xtea_ctx *k@ = pointer to key block
+ *             @const uint32 s[2]@ = pointer to source block
+ *             @uint32 d[2]@ = pointer to xteatination block
  *
- * Returns:     ---
+ * Returns:    ---
  *
- * Use:         Low-level block encryption and decryption.
+ * Use:                Low-level block encryption and decryption.
  */
 
 extern void xtea_eblk(const xtea_ctx */*k*/,