Merge commit 'origin/silc.1.1.branch'
[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 "keylength" defines the
17 # length of the key (bytes), and the "blocklength" defines the block size
18 # of the cipher (bytes).
19 #
20 cipher {
21         name = "aes-256-ctr";
22         keylength = 32;
23         blocklength = 16;
24 };
25 cipher {
26         name = "aes-256-cbc";
27         keylength = 32;
28         blocklength = 16;
29 };
30 cipher {
31         name = "aes-192-ctr";
32         keylength = 24;
33         blocklength = 16;
34 };
35 cipher {
36         name = "aes-192-cbc";
37         keylength = 24;
38         blocklength = 16;
39 };
40 cipher {
41         name = "aes-128-ctr";
42         keylength = 16;
43         blocklength = 16;
44 };
45 cipher {
46         name = "aes-128-cbc";
47         keylength = 16;
48         blocklength = 16;
49 };
50 cipher {
51         name = "twofish-256-cbc";
52         keylength = 32;
53         blocklength = 16;
54 };
55 cipher {
56         name = "twofish-192-cbc";
57         keylength = 24;
58         blocklength = 16;
59 };
60 cipher {
61         name = "twofish-128-cbc";
62         keylength = 16;
63         blocklength = 16;
64 };
65
66 #
67 # Configured hash functions
68 #
69 hash {
70         name = "sha256";
71         blocklength = 64;
72         digestlength = 32;
73 };
74 hash {
75         name = "sha1";
76         blocklength = 64;
77         digestlength = 20;
78 };
79 hash {
80         name = "md5";
81         blocklength = 64;
82         digestlength = 16;
83 };
84
85 #
86 # Configured HMAC functions. The hash function used in the HMAC must
87 # be configured in the hash section.
88 #
89 hmac {
90         name = "hmac-sha256-96";
91         hash = "sha256";
92         maclength = 12;
93 };
94 hmac {
95         name = "hmac-sha1-96";
96         hash = "sha1";
97         maclength = 12;
98 };
99 hmac {
100         name = "hmac-md5-96";
101         hash = "md5";
102         maclength = 12;
103 };
104 hmac {
105         name = "hmac-sha1";
106         hash = "sha1";
107         maclength = 20;
108 };
109 hmac {
110         name = "hmac-md5";
111         hash = "md5";
112         maclength = 16;
113 };
114
115 #
116 # Configured PKCS
117 #
118 PKCS {
119         name = "rsa";
120 };