comparison algo.h @ 793:70625eed40c9 ecc

A bit of work on ecdsa for host/auth keys
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 00:50:03 +0800
parents d1575fdc29a6
children 7dcb46da72d9
comparison
equal deleted inserted replaced
768:6e6ce39da2fc 793:70625eed40c9
72 int (*decrypt)(const unsigned char *ct, unsigned char *pt, 72 int (*decrypt)(const unsigned char *ct, unsigned char *pt,
73 unsigned long len, void *cipher_state); 73 unsigned long len, void *cipher_state);
74 }; 74 };
75 75
76 struct dropbear_hash { 76 struct dropbear_hash {
77 const struct ltc_hash_descriptor *hashdesc; 77 const struct ltc_hash_descriptor *hash_desc;
78 const unsigned long keysize; 78 const unsigned long keysize;
79 // hashsize may be truncated from the size returned by hash_desc,
80 // eg sha1-96
79 const unsigned char hashsize; 81 const unsigned char hashsize;
80 }; 82 };
81 83
82 struct dropbear_kex { 84 struct dropbear_kex {
83 // "normal" DH KEX 85 // "normal" DH KEX
88 #ifdef DROPBEAR_ECDH 90 #ifdef DROPBEAR_ECDH
89 const struct dropbear_ecc_curve *ecc_curve; 91 const struct dropbear_ecc_curve *ecc_curve;
90 #endif 92 #endif
91 93
92 // both 94 // both
93 const struct ltc_hash_descriptor *hashdesc; 95 const struct ltc_hash_descriptor *hash_desc;
94 }; 96 };
95 97
96 int have_algo(char* algo, size_t algolen, algo_type algos[]); 98 int have_algo(char* algo, size_t algolen, algo_type algos[]);
97 void buf_put_algolist(buffer * buf, algo_type localalgos[]); 99 void buf_put_algolist(buffer * buf, algo_type localalgos[]);
98 100