Commit | Line | Data |
---|---|---|
7db733d4 MW |
1 | %## -*-makefile-*- |
2 | %# | |
fb756b84 | 3 | ### -*-makefile-*- GENERATED from modes.am.in |
7db733d4 MW |
4 | ### |
5 | ### Lots of lists of crypto primitives in various modes of operation. | |
6 | ||
0f00dc4c | 7 | ## Test programs for symmetric primitives. |
7db733d4 MW |
8 | SYMM_TESTS = |
9 | ||
0f00dc4c | 10 | ## Source and header files for primitives under modes of operation. |
7db733d4 MW |
11 | GENMODES_C = |
12 | GENMODES_H = | |
13 | ||
0f00dc4c | 14 | ## Block cipher modes. |
7db733d4 | 15 | %repeat |
0f00dc4c MW |
16 | GENMODES_C += modes/@blkc-@blkcmode.c |
17 | GENMODES_H += modes/@blkc-@blkcmode.h | |
7db733d4 MW |
18 | SYMM_TESTS += @blkc-@blkcmode.$t |
19 | %end | |
20 | ||
0f00dc4c | 21 | ## Hash function modes. |
7db733d4 | 22 | %repeat |
0f00dc4c MW |
23 | GENMODES_C += modes/@hash-@hashmode.c |
24 | GENMODES_H += modes/@hash-@hashmode.h | |
7db733d4 MW |
25 | SYMM_TESTS += @hash-@hashmode.$t |
26 | %end | |
27 | ||
0f00dc4c | 28 | ## Interface and implementation headers for the various modes. |
7db733d4 MW |
29 | MODE_H = |
30 | %repeat | |
31 | MODE_H += @blkcmode.h @blkcmode-def.h | |
32 | %end | |
33 | %repeat | |
34 | MODE_H += @hashmode.h @hashmode-def.h | |
35 | %end | |
36 | ||
0f00dc4c | 37 | ## Block cipher interfaces and implementations. |
7db733d4 MW |
38 | BLKC_C = |
39 | BLKC_H = | |
40 | %repeat | |
41 | BLKC_C += @blkc.c | |
42 | BLKC_H += @blkc.h | |
43 | SYMM_TESTS += @blkc.$t | |
44 | %end | |
45 | ||
0f00dc4c | 46 | ## Hash function interfaces and implementations. |
7db733d4 MW |
47 | HASH_C = |
48 | HASH_H = | |
49 | %repeat | |
50 | HASH_C += @hash.c | |
51 | HASH_H += @hash.h | |
52 | SYMM_TESTS += @hash.$t | |
53 | %end | |
54 | ||
0f00dc4c | 55 | ## Modes for symmetric encryption. |
7db733d4 MW |
56 | CIPHER_MODES = |
57 | %repeat | |
58 | CIPHER_MODES += @blkc-@blkcciphermode | |
59 | %end | |
60 | %repeat | |
61 | CIPHER_MODES += @hash-@hashciphermode | |
62 | %end | |
63 | ||
0f00dc4c | 64 | ## Modes for message authentication. |
7db733d4 MW |
65 | MAC_MODES = |
66 | %repeat | |
67 | MAC_MODES += @hash-@hashmacmode | |
68 | %end | |
69 | ||
0f00dc4c | 70 | ## Test input files. |
7db733d4 MW |
71 | SYMM_TEST_FILES = |
72 | %repeat | |
0f00dc4c | 73 | SYMM_TEST_FILES += t/@blkc |
7db733d4 MW |
74 | %end |
75 | %repeat | |
0f00dc4c | 76 | SYMM_TEST_FILES += t/@hash |
7db733d4 | 77 | %end |