gdsa: Fix the conversion of hashes to integers to conform to the spec.
[u/mdw/catacomb] / Makefile.m4
CommitLineData
f9984d11 1## -*-m4-*-
d03ab969 2##
c65df279 3## $Id$
d03ab969 4##
5## Makefile for Catacomb
6##
7## (c) 1999 Straylight/Edgeware
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of Catacomb.
13##
14## Catacomb is free software; you can redistribute it and/or modify
15## it under the terms of the GNU Library General Public License as
16## published by the Free Software Foundation; either version 2 of the
17## License, or (at your option) any later version.
45c0fd36 18##
d03ab969 19## Catacomb is distributed in the hope that it will be useful,
20## but WITHOUT ANY WARRANTY; without even the implied warranty of
21## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22## GNU Library General Public License for more details.
45c0fd36 23##
d03ab969 24## You should have received a copy of the GNU Library General Public
25## License along with Catacomb; if not, write to the Free
26## Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
27## MA 02111-1307, USA.
28
d03ab969 29AUTOMAKE_OPTIONS = foreign
30
cc44d54e 31SUBDIRS = tests
32
d03ab969 33archincludedir = $(libdir)/catacomb/include
34
35## --- List handling macros ---
36##
37## List handling is nice, usually. Unfortunately, I based this design on
38## TeX list macros rather than anything sensible...
39
40define(`_', `define(`_item', $1)define(`_item_2', $2)emit`'')
41define(`adorn', `pushdef(`emit', `$1`'_item`'$3')$2`'popdef(`emit')')
42define(`join',
43`pushdef(`emit', `adorn(``_(''_item`$2', `$3', ``)'')`'')$1`'popdef(`emit')')
44define(`addsuffix', `adorn(`', `$1', `$2')')
45define(`lit', `adorn(`', `$1', `')')
46define(`nl', `
47')
48
49define(`allwithsuffix',
50`addsuffix(`$1', `$3') addsuffix(`$2', `$3') dnl
51addsuffix(join(`$1', `-', `$2'), `$3')')
52
53## --- Autogenerated source files ---
54
cc44d54e 55define(`ciphers', `dnl
3bef8c14 56_(des) _(desx) _(des3) _(mars) dnl
621468d8 57_(idea) _(safer) _(safersk) dnl
cc44d54e 58_(blowfish) _(twofish) dnl
a16cc8cf 59_(tea) _(xtea) dnl
cc44d54e 60_(rc2) _(rc5) dnl
a16cc8cf 61_(skipjack) dnl
cc44d54e 62_(cast128) _(cast256) dnl
2e8eb64a 63_(square) _(rijndael) _(rijndael192) _(rijndael256) dnl
0ba18b90 64_(serpent) _(noekeon)')
cc44d54e 65define(`cipher_modes', `_(ecb) _(cbc) _(cfb) _(ofb) _(counter)')
d03ab969 66
817d0432 67define(`hashes', `dnl
e9026a0a 68_(md5) _(md4) _(md2) _(tiger) _(has160) dnl
5b69c389 69_(sha) _(sha224) _(sha256) _(sha384) _(sha512) dnl
7fcfe7de 70_(whirlpool) _(whirlpool256) dnl
817d0432 71_(rmd128) _(rmd160) _(rmd256) _(rmd320)')
cc44d54e 72define(`hash_modes', `_(mgf) _(hmac)')
d03ab969 73
74MODES = \
75 adorn(`$(srcdir)/', join(`ciphers', `-', `cipher_modes'), `.c') \
76 adorn(`$(srcdir)/', join(`ciphers', `-', `cipher_modes'), `.h') \
77 adorn(`$(srcdir)/', join(`hashes', `-', `hash_modes'), `.c') \
78 adorn(`$(srcdir)/', join(`hashes', `-', `hash_modes'), `.h')
79
5a1a3a89 80$(MODES): modes-stamp
81modes-stamp: genmodes
a7557fb1 82 cd $(srcdir); ./genmodes "lit(`ciphers')" "lit(`cipher_modes')"
83 cd $(srcdir); ./genmodes "lit(`hashes')" "lit(`hash_modes')"
5a1a3a89 84 echo datestamp >modes-stamp
85
bc981076 86define(`gen_tables', `dnl
2e8eb64a 87_(des) _(blowfish) _(twofish) dnl
7fcfe7de 88_(square) _(rijndael) _(whirlpool) dnl
3bef8c14 89_(safer) _(mars) _(tiger) dnl
7c0acba6 90_(gfshare) _(gfx-sqr)')
a7557fb1 91
7eaaecf5 92autoheaders: \
1d6d3b01
MW
93 addsuffix(`gen_tables', `-tab.h') \
94 primetab.h wheel.h mptypes.h mplimits.h
5a1a3a89 95define(`emit', `
8282072d 96_item`'-tab.h: _item`'-mktab$(EXEEXT)
f21119d7 97 ./_item`'-mktab >_item`'-tab.h.new
98 mv _item`'-tab.h.new _item`'-tab.h')dnl
bc981076 99gen_tables
5a1a3a89 100
101primetab.h: primetab.c
8282072d 102primetab.c: genprimes$(EXEEXT)
34e4f738 103 ./genprimes -h primetab.h -c primetab.c \
104 -s CATACOMB_PRIMETAB_H -n 256 \
3fe3eae5 105 -t "unsigned short" -i primetab
1d6d3b01
MW
106
107wheel.h: wheel.c
108wheel.c: genwheel$(EXEEXT)
109 ./genwheel -h wheel.h -c wheel.c \
110 -s CATACOMB_WHEEL_H -n 5
111 -t "unsigned char" -i wheel
112
7eaaecf5 113archinclude_HEADERS = mptypes.h mplimits.h
8282072d 114mptypes.h: mptypes$(EXEEXT)
f21119d7 115 ./mptypes >mptypes.h.new
116 mv mptypes.h.new mptypes.h
d03ab969 117
7eaaecf5
MW
118mplimits.h: genlimits$(EXEEXT)
119 ./genlimits h >mplimits.h.new
120 mv mplimits.h.new mplimits.h
121mplimits.c: genlimits$(EXEEXT)
122 ./genlimits c >mplimits.c.new
123 mv mplimits.c.new mplimits.c
124
8282072d 125ectab.c: ectab.in ec-gentab.awk mpdump$(EXEEXT)
4edc47b8 126 $(srcdir)/ec-gentab.awk <$(srcdir)/ectab.in >ectab.c.new
432c4e18 127 mv ectab.c.new ectab.c
128
8282072d 129ptab.c: ptab.in p-gentab.awk mpdump$(EXEEXT)
4edc47b8 130 $(srcdir)/p-gentab.awk <$(srcdir)/ptab.in >ptab.c.new
34e4f738 131 mv ptab.c.new ptab.c
132
8282072d 133bintab.c: bintab.in bin-gentab.awk mpdump$(EXEEXT)
3688eb75 134 $(srcdir)/bin-gentab.awk <$(srcdir)/bintab.in >bintab.c.new
135 mv bintab.c.new bintab.c
136
e9026a0a 137gciphertab.c: gengctab
138 $(srcdir)/gengctab gccipher gcipher >gciphertab.c.new \
139 "lit(join(`ciphers', `-', `cipher_modes')) \
b817bfc6 140 lit(join(`hashes', `-', `_(mgf)')) \
45c0fd36 141 rc4 seal"
e9026a0a 142 mv gciphertab.c.new gciphertab.c
143
144gmactab.c: gengctab
145 $(srcdir)/gengctab gcmac gmac >gmactab.c.new \
45c0fd36 146 "lit(join(`hashes', `-', `_(hmac)'))"
e9026a0a 147 mv gmactab.c.new gmactab.c
148
149ghashtab.c: gengctab
150 $(srcdir)/gengctab gchash ghash >ghashtab.c.new \
b817bfc6 151 "lit(`hashes') \
152 crc32=gcrc32"
e9026a0a 153 mv ghashtab.c.new ghashtab.c
154
d03ab969 155BUILT_SOURCES = \
e9026a0a 156 getdate.c modes-stamp gciphertab.c gmactab.c ghashtab.c \
d03ab969 157 addsuffix(join(`ciphers', `-', `cipher_modes'), `.c') \
158 addsuffix(join(`ciphers', `-', `cipher_modes'), `.h') \
d03ab969 159 addsuffix(join(`hashes', `-', `hash_modes'), `.c') \
160 addsuffix(join(`hashes', `-', `hash_modes'), `.h')
ffc086db 161
162## --- Building the main library ---
8582bb3b 163
ffc086db 164lib_LTLIBRARIES = libcatacomb.la
165
dbfee00a 166libcatacomb_la_LDFLAGS = -version-info 3:0:1
d03ab969 167## Middle number is the patchlevel. Final number is the minor version. The
168## difference between the first and last numbers is major version.
169
d03ab969 170pkginclude_HEADERS = \
c61ee18c 171 arena.h paranoia.h buf.h qdparse.h keysz.h \
5a1a3a89 172 blkc.h hash.h gcipher.h ghash.h gmac.h grand.h ghash-def.h \
173 lcrand.h fibrand.h rc4.h seal.h rand.h noise.h fipstest.h maurer.h \
1dda051b 174 key.h key-error.h key-data.h passphrase.h pixie.h lmem.h \
75263f25 175 mpx.h bitops.h mpw.h mpscan.h mparena.h mp.h mptext.h mpint.h \
f4535c64 176 exp.h mpbarrett.h mpmont.h mpreduce.h mp-exp.h \
dbfee00a 177 mpcrt.h mprand.h mpmul.h \
f4535c64 178 gfx.h gf.h gfreduce.h gfn.h gf-exp.h \
1d6d3b01
MW
179 primetab.h wheel.h pfilt.h rabin.h \
180 pgen.h primeiter.h prim.h strongprime.h limlee.h keycheck.h \
e9026a0a 181 bbs.h rsa.h dh.h dsarand.h dsa.h gdsa.h gkcdsa.h \
b817bfc6 182 tlsprf.h sslprf.h \
cc44d54e 183 gfshare.h share.h \
817d0432 184 rho.h \
489e11f0 185 field.h field-guts.h field-exp.h \
f94b972d 186 ec.h ec-guts.h ec-exp.h ec-test.h ectab.h ec-keys.h ec-raw.h \
e40955b5 187 ptab.h bintab.h group.h group-guts.h \
d03ab969 188 allwithsuffix(`ciphers', `cipher_modes', `.h') \
bba24c1d 189 allwithsuffix(`hashes', `hash_modes', `.h') \
190 addsuffix(`cipher_modes', `-def.h') \
e7dc130f 191 addsuffix(`hash_modes', `-def.h') crc32.h
d03ab969 192
7eaaecf5
MW
193define(`MP_BASE',
194 `mpx.c mpx-kmul.c mpx-ksqr.c mpscan.c mparena.c \
195 mp-misc.c mp-mem.c mp-const.c mp-arith.c mp-io.c \
196 mptext.c mptext-string.c')
197
3fe3eae5 198define(`MP_SOURCES',
7eaaecf5
MW
199 `qdparse.c \
200 mp-test.c mplimits.c \
ffec4880 201 mp-sqrt.c mp-gcd.c mp-jacobi.c mp-modsqrt.c mp-exp.c mp-modexp.c \
7eaaecf5 202 mpint.c mptext-file.c mptext-dstr.c \
0cbfe12e 203 mptext-len.c \
aacf9080 204 exp.c mpcrt.c mpmul.c mprand.c \
34e4f738 205 mpbarrett.c mpbarrett-exp.c mpbarrett-mexp.c mpbarrett-exp.h \
206 mpmont.c mpmont-exp.c mpmont-mexp.c mpmont-exp.h \
f46efa79 207 mpreduce.c mpreduce-exp.h \
3688eb75 208 group-stdops.c group-exp.c group-exp.h g-prime.c g-bin.c \
209 group-parse.c \
34e4f738 210 group-string.c group-file.c group-dstr.c \
3688eb75 211 rho.c buf.c ptab.c bintab.c \
dbfee00a 212 GF_SOURCES PGEN_SOURCES EC_SOURCES')
7c0acba6 213
214define(`GF_SOURCES',
f4535c64 215 `gfx.c gfx-kmul.c gfx-sqr.c gf-arith.c gf-exp.c gf-gcd.c \
4edc47b8 216 gfreduce.c gfreduce-exp.h gfn.c')
3fe3eae5 217
dbfee00a 218define(`EC_SOURCES',
489e11f0 219 `field.c field-parse.c field-exp.c \
220 f-prime.c f-niceprime.c f-binpoly.c \
34e4f738 221 ec.c ec-exp.c ec-prime.c ec-bin.c ec-test.c ec-info.c ectab.c \
0f3faccd 222 ec-fetch.c ec-raw.c g-ec.c')
3fe3eae5 223
224define(`PGEN_SOURCES',
1d6d3b01 225 `pfilt.c primeiter.c rabin.c \
975679c7 226 pgen.c pgen-stdev.c pgen-gcd.c pgen-simul.c \
29e444ad 227 prim.c strongprime.c limlee.c \
f2ec324f 228 keycheck.c keycheck-mp.c keycheck-report.c \
cc44d54e 229 bbs-rand.c bbs-gen.c bbs-jump.c bbs-fetch.c \
d3325040 230 rsa-priv.c rsa-pub.c rsa-gen.c rsa-recover.c rsa-fetch.c \
53cbeae3 231 oaep.c pkcs1.c pss.c \
4e67e30b 232 dh-gen.c dh-limlee.c dh-kcdsa.c dh-check.c dh-fetch.c dh-param.c \
c97fbcf9 233 dsarand.c dsa-misc.c dsa-sign.c dsa-verify.c dsa-gen.c dsa-check.c \
e9026a0a 234 gdsa.c gkcdsa.c \
ad47fc73 235 key-data.c key-flags.c key-text.c key-binary.c key-pass.c \
5a1a3a89 236 key-pack.c key-misc.c key-file.c key-attr.c key-io.c key-moan.c \
bc981076 237 key-error.c key-fetch.c \
1d6d3b01 238 primetab.c wheel.c share.c')
3fe3eae5 239
240libcatacomb_la_SOURCES = \
518452de 241 grand.c keysz.c keysz-conv.c \
3fe3eae5 242 lcrand.c fibrand.c rc4.c seal.c rand.c noise.c fipstest.c maurer.c \
8ef0c733 243 arena.c \
025c5f4a 244 passphrase.c pixie-common.c lmem.c \
53cbeae3 245 tlsprf.c sslprf.c \
3fe3eae5 246 gfshare.c \
7eaaecf5 247 MP_BASE MP_SOURCES karatsuba.h \
e9026a0a 248 gciphertab.c ghashtab.c gmactab.c \
3fe3eae5 249 des-base.c des-base.h \
0798f682 250 desx-tab.h \
a297c216 251 rc2-tab.h \
252 skipjack-tab.h \
3fe3eae5 253 cast-s.c cast-sk.c cast-base.h cast-tab.h \
2e8eb64a 254 rijndael-base.c rijndael-base.h \
abef5380 255 md2-tab.h \
3fe3eae5 256 serpent-sbox.h skipjack-tab.h tiger-base.h \
257 daftstory.h \
d03ab969 258 addsuffix(join(`ciphers', `-', `cipher_modes'), `.c') \
ce79f967 259 addsuffix(join(`hashes', `-', `hash_modes'), `.c') \
e7dc130f 260 addsuffix(`ciphers', `.c') addsuffix(`hashes', `.c') crc32.c
76f32ed2 261
cc44d54e 262des-base.lo: des-tab.h
263blowfish.lo: blowfish-tab.h
264twofish.lo: twofish-tab.h
a16cc8cf 265square.lo: square-tab.h
2e8eb64a 266rijndael-base.lo: rijndael-tab.h
7fcfe7de 267whirlpool.lo: whirlpool-tab.h
2e8eb64a 268safer.lo: safer-tab.h
269mars.lo: mars-tab.h
a16cc8cf 270tiger.lo: tiger-tab.h
5a1a3a89 271gfshare.lo: gfshare-tab.h
7c0acba6 272gfx-sqr.lo: gfx-sqr-tab.h
748ed8dc 273
d03ab969 274## --- Utility programs ---
a7557fb1 275
e2edda68 276bin_PROGRAMS = \
fa54fe1e 277 dsig key pixie cookie rspit factorial hashsum mkphrase \
278 catcrypt catsign
c65df279 279noinst_LIBRARIES = libcatcrypt.a
de5585f8 280bin_SCRIPTS = catacomb-config xpixie
cc44d54e 281noinst_PROGRAMS = \
1d6d3b01 282 genprimes genwheel mptypes genlimits serpent-check bittest mpdump \
e2edda68 283 perftest \
7c0acba6 284 addsuffix(`gen_tables', `-mktab')
8282072d 285LDADD = libcatcrypt.a libcatacomb.la
c65df279 286
4b09da23 287define(`LIBCAT_SRC', `cc.h getdate.h dnl
288 cc-sig.c cc-subcmd.c cc-enc.c cc-kem.c cc-list.c')
289libcatcrypt_a_SOURCES = LIBCAT_SRC getdate.y
290
7eaaecf5 291patsubst(MP_BASE MP_SOURCES, `\.c\>', `.lo') dsig.o keyutil.o rspit.o \
4b09da23 292 patsubst(LIBCAT_SRC, `\.c\>', `.o'): \
1d6d3b01 293 mptypes.h primetab.h wheel.h
7eaaecf5 294patsubst(MP_SOURCES, `\.c\>', `.lo'): mplimits.h
45c0fd36 295
c65df279 296dsig_SOURCES = dsig.c
297cookie_SOURCES = cookie.c
298catcrypt_SOURCES = catcrypt.c
fa54fe1e 299catsign_SOURCES = catsign.c
c65df279 300key_SOURCES = keyutil.c
a16cc8cf 301hashsum_SOURCES = hashsum.c
bba24c1d 302rspit_SOURCES = rspit.c
817d0432 303factorial_SOURCES = factorial.c
e2edda68 304perftest_SOURCES = perftest.c
025c5f4a 305pixie_SOURCES = pixie.c pixie-common.c lmem.c arena.c passphrase.c
a16cc8cf 306pixie_LDADD =
8282072d 307pixie_CFLAGS = $(AM_CFLAGS)
b55540f6 308mkphrase_SOURCES = mkphrase.c
75263f25 309bittest_SOURCES = bittest.c
45c0fd36 310bittest_LDADD =
817d0432 311
7c0acba6 312define(`emit', `
313patsubst(_item, `[^a-zA-Z0-9]', `_')_mktab_SOURCES = _item`'-mktab.c
314patsubst(_item, `[^a-zA-Z0-9]', `_')_mktab_LDADD =')dnl
315gen_tables
316
cc44d54e 317serpent_check_SOURCES = serpent-check.c
318serpent_check_LDADD =
cc44d54e 319
d03ab969 320genprimes_SOURCES = genprimes.c
321genprimes_LDADD =
322
1d6d3b01
MW
323genwheel_SOURCES = genwheel.c
324genwheel_LDADD =
325
d03ab969 326mptypes_SOURCES = mptypes.c
327mptypes_LDADD =
328
1d6d3b01 329genlimits_SOURCES = genlimits.c MP_BASE mptypes.h
7eaaecf5
MW
330genlimits_LDADD =
331genlimits_CFLAGS = $(AM_CFLAGS)
332
333mpdump_SOURCES = mpdump.c MP_BASE
432c4e18 334mpdump_LDADD =
8282072d 335mpdump_CFLAGS = $(AM_CFLAGS)
432c4e18 336
de5585f8 337## --- Install the pixie setuid-root if we can ---
525af7b8 338##
339## Bodge around a bug in Automake: it doesn't call `install-exec-hook' from
340## `install' if there are subdirectories.
de5585f8 341
342changequote(<, >)
21aac40c 343# install: install-exec-hook
de5585f8 344install-exec-hook:
0798f682 345 @pixie="$(DESTDIR)$(bindir)/`echo pixie|sed $(transform)`"; \
de5585f8 346 if chown root $$pixie && chmod 4755 $$pixie; then \
347 echo "chown root $$pixie"; \
348 echo "chmod 4755 $$pixie"; \
349 else \
350 echo "***"; \
351 echo "*** You should probably install $$pixie setuid-root."; \
352 echo "***"; \
353 fi
354changequote(`, ')
355
d03ab969 356## --- Documentation ---
357
fa54fe1e 358man_MANS = \
6abcf20f 359 key.1 dsig.1 cookie.1 catcrypt.1 catsign.1 hashsum.1 mkphrase.1 \
fa54fe1e 360 keyring.5 pixie.1
d03ab969 361
d7f3f07d
MW
362## --- Prime group keyring ---
363
364pkgdata_DATA = pgroups.kr
365
366$(srcdir)/pgroups.kr: ptab.in mkpgroups
367 cd $(srcdir) && rm -f pgroups.kr && ./mkpgroups <ptab.in
368
d03ab969 369## --- Other handy definitions ---
9183ab7b 370
6f51228e 371EXTRA_DIST = \
b817bfc6 372 Makefile.m4 genmodes gengctab $(man_MANS) xpixie \
373 group-test.c rsa-test.c \
8282072d 374 ectab.in ec-gentab.awk \
d7f3f07d 375 ptab.in p-gentab.awk mkpgroups pgroups.kr \
8282072d 376 bintab.in bin-gentab.awk \
2ee993fe 377 README.cipher README.hash README.random README.mp \
378 debian/rules debian/copyright debian/control debian/changelog \
379 debian/catacomb-bin.postinst debian/catacomb-bin.config \
380 debian/catacomb-bin.prerm debian/catacomb-bin.templates
d03ab969 381
382dist-hook:
e9026a0a 383 @for i in getdate.c gciphertab.c ghashtab.c gmactab.c; do \
384 ln $$i $(distdir) || ln $(srcdir)/$$i $(distdir) || true; \
385 done
5a1a3a89 386 @echo datestamp >$(distdir)/modes-stamp || true
7c0acba6 387 @for i in calc tests; do \
388 mkdir $(distdir)/$$i; \
389 ln $(srcdir)/$$i/*[!~] $(distdir)/$$i; \
390 done || true
cc44d54e 391# kr=$$HOME/.catacomb/dsig-keyring; \
392# if [ -r $$kr ]; then \
393# cd $(distdir); \
394# ../key -k $$kr extract -f -secret KEYRING; \
395# find . -type f -print0 | ../dsig -k $$kr sign -0 -oMANIFEST; \
396# fi
471db039 397
a094cab7 398## --- Testing ---
d03ab969 399
471db039 400define(`testprogs', `')
401
402define(`CTESTRIG',
ffc086db 403`define(`testprogs', testprogs \
8282072d 404 $1.t$(EXEEXT))dnl
8b6cedcc 405$1.to: $1.c
406 $(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $(srcdir)/$1.c -o $1.to
8282072d 407$1.t$(EXEEXT): $1.to libcatacomb.la
408 $(CC) $(CFLAGS) $(LDFLAGS) $1.to .libs/libcatacomb.a $(LIBS) -o $1.t$(EXEEXT)')
a7557fb1 409
410CTESTRIG(rc4)
cc44d54e 411CTESTRIG(seal)
a7557fb1 412adorn(`nl`'CTESTRIG(', `ciphers', `)')
ce79f967 413adorn(`nl`'CTESTRIG(', `hashes', `)')
471db039 414adorn(`nl`'CTESTRIG(', join(`ciphers', `-', `cipher_modes'), `)')
415adorn(`nl`'CTESTRIG(', join(`hashes', `-', `hash_modes'), `)')
bba24c1d 416CTESTRIG(lcrand)
d83a82be 417CTESTRIG(tlsprf)
51a0f805 418CTESTRIG(sslprf)
471db039 419CTESTRIG(mpx)
bba24c1d 420CTESTRIG(mpx-kmul)
b6f2c5a0 421CTESTRIG(mpx-ksqr)
a7557fb1 422CTESTRIG(mp-arith)
1cf8e9fb 423CTESTRIG(mp-modsqrt)
a7557fb1 424CTESTRIG(mp-gcd)
9fc256e8 425CTESTRIG(mp-jacobi)
1cf8e9fb 426CTESTRIG(mp-sqrt)
ffec4880 427CTESTRIG(mp-modexp)
bba24c1d 428CTESTRIG(mptext)
70b904c5 429CTESTRIG(mpint)
bba24c1d 430CTESTRIG(mpbarrett)
34e4f738 431CTESTRIG(mpbarrett-exp)
aacf9080 432CTESTRIG(mpbarrett-mexp)
a7557fb1 433CTESTRIG(mpmont)
34e4f738 434CTESTRIG(mpmont-exp)
a7557fb1 435CTESTRIG(mpmont-mexp)
f46efa79 436CTESTRIG(mpreduce)
9fc256e8 437CTESTRIG(mpcrt)
817d0432 438CTESTRIG(mpmul)
b817bfc6 439CTESTRIG(rsa-test)
7c0acba6 440CTESTRIG(gfx)
ceb3f0c0 441CTESTRIG(gfx-sqr)
7c0acba6 442CTESTRIG(gfx-kmul)
ceb3f0c0 443CTESTRIG(gf-arith)
444CTESTRIG(gf-gcd)
445CTESTRIG(gfreduce)
4edc47b8 446CTESTRIG(gfn)
dbfee00a 447CTESTRIG(ec-prime)
ceb3f0c0 448CTESTRIG(ec-bin)
bc985cef 449CTESTRIG(ec-test)
fb83f882 450CTESTRIG(ec-info)
34e4f738 451CTESTRIG(dh-param)
452CTESTRIG(group-test)
e9026a0a 453CTESTRIG(gdsa)
454CTESTRIG(gkcdsa)
a7557fb1 455CTESTRIG(pgen)
1d6d3b01 456CTESTRIG(primeiter)
471db039 457CTESTRIG(dsa-gen)
458CTESTRIG(dsa-sign)
d03ab969 459CTESTRIG(dsa-verify)
bba24c1d 460CTESTRIG(bbs-rand)
461CTESTRIG(bbs-jump)
cc44d54e 462CTESTRIG(gfshare)
463CTESTRIG(share)
817d0432 464CTESTRIG(rho)
a7557fb1 465
75263f25 466TESTS = serpent-check bittest testprogs
d03ab969 467
cc44d54e 468CLEANFILES = \
d7f3f07d 469 *.t$(EXEEXT) *.to *.kr.old \
1d6d3b01
MW
470 mptypes.h primetab.c primetab.h wheel.c wheel.h \
471 ectab.c ptab.c bintab.c \
bc981076 472 addsuffix(`gen_tables', `-tab.h')
d03ab969 473
474## --- Makefile building (haha!) ---
475
476$(srcdir)/Makefile.am: $(srcdir)/Makefile.m4
f21119d7 477 m4 $(srcdir)/Makefile.m4 >$(srcdir)/Makefile.am.new
478 mv $(srcdir)/Makefile.am.new $(srcdir)/Makefile.am
a7557fb1 479
9312c71f 480DISTCLEANFILES = libtool
481
a7557fb1 482MAINTAINERCLEANFILES = \
d03ab969 483 $(srcdir)/Makefile.am \
484 $(srcdir)/getdate.c getdate.c \
d7f3f07d 485 $(srcdir)/pgroups.kr \
5a1a3a89 486 $(MODES) modes-stamp $(srcdir)/modes-stamp
d03ab969 487
488##----- That's all, folks ---------------------------------------------------