comparison common-algo.c @ 194:e972be139cb5

Switching to libtomcrypt 1.02 (still has problems)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 09 May 2005 09:32:33 +0000
parents 0cfba3034be5
children ad1b24e39bf3
comparison
equal deleted inserted replaced
193:ca6a7c7a925c 194:e972be139cb5
123 123
124 /* Register the compiled in ciphers. 124 /* Register the compiled in ciphers.
125 * This should be run before using any of the ciphers/hashes */ 125 * This should be run before using any of the ciphers/hashes */
126 void crypto_init() { 126 void crypto_init() {
127 127
128 const struct _cipher_descriptor *regciphers[] = { 128 const struct ltc_cipher_descriptor *regciphers[] = {
129 #ifdef DROPBEAR_AES128_CBC 129 #ifdef DROPBEAR_AES128_CBC
130 &aes_desc, 130 &aes_desc,
131 #endif 131 #endif
132 #ifdef DROPBEAR_BLOWFISH_CBC 132 #ifdef DROPBEAR_BLOWFISH_CBC
133 &blowfish_desc, 133 &blowfish_desc,
139 &des3_desc, 139 &des3_desc,
140 #endif 140 #endif
141 NULL 141 NULL
142 }; 142 };
143 143
144 const struct _hash_descriptor *reghashes[] = { 144 const struct ltc_hash_descriptor *reghashes[] = {
145 /* we need sha1 for hostkey stuff regardless */ 145 /* we need sha1 for hostkey stuff regardless */
146 &sha1_desc, 146 &sha1_desc,
147 #ifdef DROPBEAR_MD5_HMAC 147 #ifdef DROPBEAR_MD5_HMAC
148 &md5_desc, 148 &md5_desc,
149 #endif 149 #endif