Mercurial > dropbear
comparison sysoptions.h @ 679:03073a27abb3 sha2
- Add hmac-sha2-256 and hmac-sha2-512. Needs debugging, seems to be
getting keyed incorrectly
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 10 May 2012 08:38:37 +0800 |
parents | 405418f7dc5e |
children | f31fce2430e8 91dd8328a3ff |
comparison
equal
deleted
inserted
replaced
678:6e0899b56ac4 | 679:03073a27abb3 |
---|---|
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) |