comparison algo.h @ 755:b07eb3dc23ec ecc

refactor kexdh code a bit, start working on ecdh etc
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 Mar 2013 01:35:22 +0800
parents 63f8d6c469cf
children bf9dc2d9c2b1
comparison
equal deleted inserted replaced
725:49f68a7b7a55 755:b07eb3dc23ec
92 int check_user_algos(const char* user_algo_list, algo_type * algos, 92 int check_user_algos(const char* user_algo_list, algo_type * algos,
93 const char *algo_desc); 93 const char *algo_desc);
94 char * algolist_string(algo_type algos[]); 94 char * algolist_string(algo_type algos[]);
95 #endif 95 #endif
96 96
97 enum {
98 DROPBEAR_KEX_DH_GROUP1,
99 DROPBEAR_KEX_DH_GROUP14,
100 DROPBEAR_KEX_ECDH_SECP256R1,
101 };
102
103 #ifdef DROPBEAR_ECDH
104 #define IS_NORMAL_DH(algo) ((algo) == DROPBEAR_KEX_DH_GROUP1 || (algo) == DROPBEAR_KEX_DH_GROUP14)
105 #else
106 #define IS_NORMAL_DH(algo) 1
107 #endif
108
109 enum {
110 DROPBEAR_COMP_NONE,
111 DROPBEAR_COMP_ZLIB,
112 DROPBEAR_COMP_ZLIB_DELAY,
113 };
114
97 115
98 #endif /* _ALGO_H_ */ 116 #endif /* _ALGO_H_ */