tupdates
[silc.git] / doc / silcalgs.conf
1 #
2 # Algorithms
3 #
4 # This file defines ciphers, hash functions, HMACs and PKCS algorithms that
5 # can be used.  This file can be included into different configuration files.
6 #
7 # You should not change the contents of this file unless you know what you
8 # are doing.
9 #
10 # The first algorithm defined is always the default one to use.
11 #
12
13 #
14 # Configured ciphers
15 #
16 # The "name" is unique name to the cipher. The "module" option can be either
17 # absolute or relative to the "module_path", and it defines where the cipher
18 # module is found.  If omitted the built-in cipher is used.  The "keylength"
19 # defines the length of the key (bytes), and the "blocklength" defines the
20 # block size of the cipher (bytes).
21 #
22 cipher {
23         name = "aes-256-cbc";
24         module = "aes.sim.so";
25         keylength = 32;
26         blocklength = 16;
27 };
28 cipher {
29         name = "aes-192-cbc";
30         module = "aes.sim.so";
31         keylength = 24;
32         blocklength = 16;
33 };
34 cipher {
35         name = "aes-128-cbc";
36         module = "aes.sim.so";
37         keylength = 16;
38         blocklength = 16;
39 };
40 cipher {
41         name = "twofish-256-cbc";
42         module = "twofish.sim.so";
43         keylength = 32;
44         blocklength = 16;
45 };
46 cipher {
47         name = "twofish-192-cbc";
48         module = "twofish.sim.so";
49         keylength = 24;
50         blocklength = 16;
51 };
52 cipher {
53         name = "twofish-128-cbc";
54         module = "twofish.sim.so";
55         keylength = 16;
56         blocklength = 16;
57 };
58 cipher {
59         name = "mars-256-cbc";
60         module = "mars.sim.so";
61         keylength = 32;
62         blocklength = 16;
63 };
64 cipher {
65         name = "mars-192-cbc";
66         module = "mars.sim.so";
67         keylength = 24;
68         blocklength = 16;
69 };
70 cipher {
71         name = "mars-128-cbc";
72         module = "mars.sim.so";
73         keylength = 16;
74         blocklength = 16;
75 };
76 cipher {
77         name = "none";
78         module = "none.sim.so";
79         keylength = 0;
80         blocklength = 0;
81 };
82
83 #
84 # Configured hash functions
85 #
86 hash {
87         name = "sha1";
88         blocklength = 64;
89         digestlength = 20;
90 };
91 hash {
92         name = "md5";
93         blocklength = 64;
94         digestlength = 16;
95 };
96
97 #
98 # Configured HMAC functions. The hash function used in the HMAC must
99 # be configured in the hash section.
100 #
101 hmac {
102         name = "hmac-sha1-96";
103         hash = "sha1";
104         maclength = 12;
105 };
106 hmac {
107         name = "hmac-md5-96";
108         hash = "md5";
109         maclength = 12;
110 };
111 hmac {
112         name = "hmac-sha1";
113         hash = "sha1";
114         maclength = 20;
115 };
116 hmac {
117         name = "hmac-md5";
118         hash = "md5";
119         maclength = 16;
120 };
121
122 #
123 # Configured PKCS
124 #
125 PKCS { 
126         name = "rsa"; 
127 };