updates.
[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-cbc";
22         keylength = 32;
23         blocklength = 16;
24 };
25 cipher {
26         name = "aes-192-cbc";
27         keylength = 24;
28         blocklength = 16;
29 };
30 cipher {
31         name = "aes-128-cbc";
32         keylength = 16;
33         blocklength = 16;
34 };
35 cipher {
36         name = "twofish-256-cbc";
37         keylength = 32;
38         blocklength = 16;
39 };
40 cipher {
41         name = "twofish-192-cbc";
42         keylength = 24;
43         blocklength = 16;
44 };
45 cipher {
46         name = "twofish-128-cbc";
47         keylength = 16;
48         blocklength = 16;
49 };
50
51 # "none" cipher should not be used
52 #cipher {
53 #       name = "none";
54 #       keylength = 0;
55 #       blocklength = 0;
56 #};
57
58 #
59 # Configured hash functions
60 #
61 hash {
62         name = "sha256";
63         blocklength = 64;
64         digestlength = 32;
65 };
66 hash {
67         name = "sha1";
68         blocklength = 64;
69         digestlength = 20;
70 };
71 hash {
72         name = "md5";
73         blocklength = 64;
74         digestlength = 16;
75 };
76
77 #
78 # Configured HMAC functions. The hash function used in the HMAC must
79 # be configured in the hash section.
80 #
81 hmac {
82         name = "hmac-sha256-96";
83         hash = "sha256";
84         maclength = 12;
85 };
86 hmac {
87         name = "hmac-sha1-96";
88         hash = "sha1";
89         maclength = 12;
90 };
91 hmac {
92         name = "hmac-md5-96";
93         hash = "md5";
94         maclength = 12;
95 };
96 hmac {
97         name = "hmac-sha1";
98         hash = "sha1";
99         maclength = 20;
100 };
101 hmac {
102         name = "hmac-md5";
103         hash = "md5";
104         maclength = 16;
105 };
106
107 #
108 # Configured PKCS
109 #
110 PKCS { 
111         name = "rsa"; 
112 };