Mercurial > dropbear
comparison sysoptions.h @ 1517:7c7c5326ad73
clean up some default options
- move hmac-sha2-512, hmac-md5, twofish_ctr to sysoptions.h, off by default
- try and improve text for KEX methods
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 18 Feb 2018 22:27:51 +0800 |
parents | 6c16a05023aa |
children | 6a83b1944432 |
comparison
equal
deleted
inserted
replaced
1516:33b872649eb7 | 1517:7c7c5326ad73 |
---|---|
95 #define MAX_MAC_LEN 64 | 95 #define MAX_MAC_LEN 64 |
96 #elif DROPBEAR_SHA2_256_HMAC | 96 #elif DROPBEAR_SHA2_256_HMAC |
97 #define MAX_MAC_LEN 32 | 97 #define MAX_MAC_LEN 32 |
98 #else | 98 #else |
99 #define MAX_MAC_LEN 20 | 99 #define MAX_MAC_LEN 20 |
100 #endif | |
101 | |
102 /* sha2-512 is not necessary unless unforseen problems arise with sha2-256 */ | |
103 #ifndef DROPBEAR_SHA2_512_HMAC | |
104 #define DROPBEAR_SHA2_512_HMAC 0 | |
105 #endif | |
106 | |
107 /* might be needed for compatibility with very old implementations */ | |
108 #ifndef DROPBEAR_MD5_HMAC | |
109 #define DROPBEAR_MD5_HMAC 0 | |
110 #endif | |
111 | |
112 /* Twofish counter mode is disabled by default because it | |
113 has not been tested for interoperability with other SSH implementations. | |
114 If you test it please contact the Dropbear author */ | |
115 #ifndef DROPBEAR_TWOFISH_CTR | |
116 #define DROPBEAR_TWOFISH_CTR 0 | |
100 #endif | 117 #endif |
101 | 118 |
102 | 119 |
103 #define DROPBEAR_ECC ((DROPBEAR_ECDH) || (DROPBEAR_ECDSA)) | 120 #define DROPBEAR_ECC ((DROPBEAR_ECDH) || (DROPBEAR_ECDSA)) |
104 | 121 |