Mercurial > dropbear
comparison algo.h @ 761:ac2158e3e403 ecc
ecc kind of works, needs fixing/testing
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 07 Apr 2013 01:36:42 +0800 |
parents | 76fba0856749 |
children | d1575fdc29a6 |
comparison
equal
deleted
inserted
replaced
760:f336d232fc63 | 761:ac2158e3e403 |
---|---|
34 #define DROPBEAR_MODE_CTR 2 | 34 #define DROPBEAR_MODE_CTR 2 |
35 | 35 |
36 struct Algo_Type { | 36 struct Algo_Type { |
37 | 37 |
38 const unsigned char *name; /* identifying name */ | 38 const unsigned char *name; /* identifying name */ |
39 const char val; /* a value for this cipher, or -1 for invalid */ | 39 char val; /* a value for this cipher, or -1 for invalid */ |
40 const void *data; /* algorithm specific data */ | 40 const void *data; /* algorithm specific data */ |
41 char usable; /* whether we can use this algorithm */ | 41 char usable; /* whether we can use this algorithm */ |
42 const void *mode; /* the mode, currently only used for ciphers, | 42 const void *mode; /* the mode, currently only used for ciphers, |
43 points to a 'struct dropbear_cipher_mode' */ | 43 points to a 'struct dropbear_cipher_mode' */ |
44 }; | 44 }; |
118 DROPBEAR_COMP_NONE, | 118 DROPBEAR_COMP_NONE, |
119 DROPBEAR_COMP_ZLIB, | 119 DROPBEAR_COMP_ZLIB, |
120 DROPBEAR_COMP_ZLIB_DELAY, | 120 DROPBEAR_COMP_ZLIB_DELAY, |
121 }; | 121 }; |
122 | 122 |
123 extern int dropbear_ltc_prng; | |
123 | 124 |
124 #endif /* _ALGO_H_ */ | 125 #endif /* _ALGO_H_ */ |