comparison sysoptions.h @ 759:76fba0856749 ecc

More changes for KEX and ECDH. Set up hash descriptors, make ECC code work, ses.hash and ses.session_id are now buffers (doesn't compile)
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Mar 2013 00:28:09 +0800
parents bf9dc2d9c2b1
children ac2158e3e403
comparison
equal deleted inserted replaced
758:1c607a62d235 759:76fba0856749
91 91
92 #if defined(DROPBEAR_ECDH) || defined (DROPBEAR_ECDSA) 92 #if defined(DROPBEAR_ECDH) || defined (DROPBEAR_ECDSA)
93 #define DROPBEAR_ECC 93 #define DROPBEAR_ECC
94 #endif 94 #endif
95 95
96
97 #ifdef DROPBEAR_ECC 96 #ifdef DROPBEAR_ECC
98 #define DROPBEAR_ECC_256 97 #define DROPBEAR_ECC_256
99 #define DROPBEAR_ECC_384 98 #define DROPBEAR_ECC_384
100 #define DROPBEAR_ECC_521 99 #define DROPBEAR_ECC_521
101 #endif 100 #endif
102 101
102 // hashes which will be linked and registered
103 #if defined(DROPBEAR_SHA2_256_HMAC) || defined(DROPBEAR_ECC_256)
104 #define DROPBEAR_SHA256
105 #endif
106 #if defined(DROPBEAR_ECC_384)
107 #define DROPBEAR_SHA384
108 #endif
109 #if defined(DROPBEAR_SHA2_512_HMAC) || defined(DROPBEAR_ECC_521)
110 #define DROPBEAR_SHA512
111 #endif
112 #if defined(DROPBEAR_MD5_HMAC)
113 #define DROPBEAR_MD5
114 #endif
115
103 // roughly 2x 521 bits 116 // roughly 2x 521 bits
104 #define MAX_ECC_SIZE 140 117 #define MAX_ECC_SIZE 140
105 118
106 #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't 119 #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't
107 explicitly specified for all protocols (just 120 explicitly specified for all protocols (just
153 166
154 #if defined(DROPBEAR_TWOFISH256) || defined(DROPBEAR_TWOFISH128) 167 #if defined(DROPBEAR_TWOFISH256) || defined(DROPBEAR_TWOFISH128)
155 #define DROPBEAR_TWOFISH 168 #define DROPBEAR_TWOFISH
156 #endif 169 #endif
157 170
158 #ifdef DROPBEAR_MD5_HMAC
159 #define DROPBEAR_MD5
160 #endif
161
162 #ifdef DROPBEAR_SHA2_256_HMAC
163 #define DROPBEAR_SHA256
164 #endif
165
166 #if (defined(DROPBEAR_DSS) && defined(DSS_PROTOK)) \
167 || defined(DROPBEAR_SHA2_512_HMAC)
168 #define DROPBEAR_SHA512
169 #endif
170
171 #ifndef ENABLE_X11FWD 171 #ifndef ENABLE_X11FWD
172 #define DISABLE_X11FWD 172 #define DISABLE_X11FWD
173 #endif 173 #endif
174 174
175 #if defined(ENABLE_CLI_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD) 175 #if defined(ENABLE_CLI_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD)