comparison sysoptions.h @ 710:91dd8328a3ff

Merge "none" cipher/MAC branch. Also adds sha256 and sha512
author Matt Johnston <matt@ucc.asn.au>
date Wed, 20 Mar 2013 22:41:07 +0800
parents 167fdc091c05 03073a27abb3
children cd3d3c63d189
comparison
equal deleted inserted replaced
709:abd99ecd7ec2 710:91dd8328a3ff
88 88
89 89
90 #define MAX_KEY_LEN 32 /* 256 bits for aes256 etc */ 90 #define MAX_KEY_LEN 32 /* 256 bits for aes256 etc */
91 #define MAX_IV_LEN 20 /* must be same as max blocksize, 91 #define MAX_IV_LEN 20 /* must be same as max blocksize,
92 and >= SHA1_HASH_SIZE */ 92 and >= SHA1_HASH_SIZE */
93 #if defined(DROPBEAR_SHA2_512_HMAC)
94 #define MAX_MAC_KEY 64
95 #elif defined(DROPBEAR_SHA2_256_HMAC)
96 #define MAX_MAC_KEY 32
97 #else
93 #define MAX_MAC_KEY 20 98 #define MAX_MAC_KEY 20
99 #endif
94 100
95 #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't 101 #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't
96 explicitly specified for all protocols (just 102 explicitly specified for all protocols (just
97 for algos) but seems valid */ 103 for algos) but seems valid */
98 104
142 148
143 #if defined(DROPBEAR_TWOFISH256) || defined(DROPBEAR_TWOFISH128) 149 #if defined(DROPBEAR_TWOFISH256) || defined(DROPBEAR_TWOFISH128)
144 #define DROPBEAR_TWOFISH 150 #define DROPBEAR_TWOFISH
145 #endif 151 #endif
146 152
153 #ifdef DROPBEAR_MD5_HMAC
154 #define DROPBEAR_MD5
155 #endif
156
157 #ifdef DROPBEAR_SHA2_256_HMAC
158 #define DROPBEAR_SHA256
159 #endif
160
161 #if (defined(DROPBEAR_DSS) && defined(DSS_PROTOK)) \
162 || defined(DROPBEAR_SHA2_512_HMAC)
163 #define DROPBEAR_SHA512
164 #endif
165
147 #ifndef ENABLE_X11FWD 166 #ifndef ENABLE_X11FWD
148 #define DISABLE_X11FWD 167 #define DISABLE_X11FWD
149 #endif 168 #endif
150 169
151 #if defined(ENABLE_CLI_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD) 170 #if defined(ENABLE_CLI_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD)