Commit | Line | Data |
---|---|---|
0f00dc4c MW |
1 | ### -*-makefile-*- |
2 | ### | |
3 | ### Build script for random number generators | |
4 | ### | |
5 | ### (c) 2013 Straylight/Edgeware | |
6 | ### | |
7 | ||
8 | ###----- Licensing notice --------------------------------------------------- | |
9 | ### | |
10 | ### This file is part of Catacomb. | |
11 | ### | |
12 | ### Catacomb is free software; you can redistribute it and/or modify | |
13 | ### it under the terms of the GNU Library General Public License as | |
14 | ### published by the Free Software Foundation; either version 2 of the | |
15 | ### License, or (at your option) any later version. | |
16 | ### | |
17 | ### Catacomb is distributed in the hope that it will be useful, | |
18 | ### but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ### GNU Library General Public License for more details. | |
21 | ### | |
22 | ### You should have received a copy of the GNU Library General Public | |
23 | ### License along with Catacomb; if not, write to the Free | |
24 | ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, | |
25 | ### MA 02111-1307, USA. | |
26 | ||
27 | include $(top_srcdir)/vars.am | |
28 | ||
29 | noinst_LTLIBRARIES = librand.la | |
30 | librand_la_SOURCES = | |
31 | ||
32 | TEST_LIBS = librand.la | |
33 | ||
34 | ###-------------------------------------------------------------------------- | |
35 | ### Component files. | |
36 | ||
37 | ## The FIPS186 generator used to generate DSA domain parameters. | |
38 | pkginclude_HEADERS += dsarand.h | |
39 | librand_la_SOURCES += dsarand.c | |
40 | ||
41 | ## Knuth's lagged-Fibonacci generator. | |
42 | pkginclude_HEADERS += fibrand.h | |
43 | librand_la_SOURCES += fibrand.c | |
44 | ||
45 | ## The FIPS 140--2 random number generator tests. | |
46 | pkginclude_HEADERS += fipstest.h | |
47 | librand_la_SOURCES += fipstest.c | |
48 | ||
49 | ## Interface for generic random number sources. | |
50 | pkginclude_HEADERS += grand.h | |
51 | librand_la_SOURCES += grand.c | |
52 | ||
53 | ## A simple linear-congruential generator. | |
54 | pkginclude_HEADERS += lcrand.h | |
55 | librand_la_SOURCES += lcrand.c | |
ba57d652 | 56 | TESTS += lcrand.t$(EXEEXT) |
0f00dc4c MW |
57 | EXTRA_DIST += t/lcrand |
58 | ||
59 | ## Maurer's universal statistical test. | |
60 | pkginclude_HEADERS += maurer.h | |
61 | librand_la_SOURCES += maurer.c | |
62 | ||
63 | ## System-specific noise acquisition. | |
64 | pkginclude_HEADERS += noise.h | |
65 | librand_la_SOURCES += noise.c | |
66 | ||
67 | ## Cryptographic laundering for true random data generation. | |
68 | pkginclude_HEADERS += rand.h | |
69 | librand_la_SOURCES += rand.c | |
a3ad4421 MW |
70 | if CPUFAM_X86 |
71 | librand_la_SOURCES += rand-x86ish.S | |
72 | endif | |
73 | if CPUFAM_AMD64 | |
74 | librand_la_SOURCES += rand-x86ish.S | |
75 | endif | |
53073dfb | 76 | librand_la_SOURCES += randgen.c |
0f00dc4c MW |
77 | |
78 | ## The SSL v3 pseudorandom function. | |
79 | pkginclude_HEADERS += sslprf.h | |
80 | librand_la_SOURCES += sslprf.c | |
ba57d652 | 81 | TESTS += sslprf.t$(EXEEXT) |
0f00dc4c MW |
82 | EXTRA_DIST += t/sslprf |
83 | ||
84 | ## The TLS v1 pseudorandom function. | |
85 | pkginclude_HEADERS += tlsprf.h | |
86 | librand_la_SOURCES += tlsprf.c | |
ba57d652 | 87 | TESTS += tlsprf.t$(EXEEXT) |
0f00dc4c MW |
88 | EXTRA_DIST += t/tlsprf |
89 | ||
90 | ###----- That's all, folks -------------------------------------------------- |