comparison common-algo.c @ 231:16f552859ee6

- register AES and Twofish even if just the 256 bit key variants are used
author Matt Johnston <matt@ucc.asn.au>
date Tue, 30 Aug 2005 17:46:34 +0000
parents 1c03b27e1ceb
children b3cca2d9ee3c
comparison
equal deleted inserted replaced
229:1c03b27e1ceb 231:16f552859ee6
146 /* Register the compiled in ciphers. 146 /* Register the compiled in ciphers.
147 * This should be run before using any of the ciphers/hashes */ 147 * This should be run before using any of the ciphers/hashes */
148 void crypto_init() { 148 void crypto_init() {
149 149
150 const struct ltc_cipher_descriptor *regciphers[] = { 150 const struct ltc_cipher_descriptor *regciphers[] = {
151 #ifdef DROPBEAR_AES128_CBC 151 #ifdef DROPBEAR_AES_CBC
152 &aes_desc, 152 &aes_desc,
153 #endif 153 #endif
154 #ifdef DROPBEAR_BLOWFISH_CBC 154 #ifdef DROPBEAR_BLOWFISH_CBC
155 &blowfish_desc, 155 &blowfish_desc,
156 #endif 156 #endif
157 #ifdef DROPBEAR_TWOFISH128_CBC 157 #ifdef DROPBEAR_TWOFISH_CBC
158 &twofish_desc, 158 &twofish_desc,
159 #endif 159 #endif
160 #ifdef DROPBEAR_3DES_CBC 160 #ifdef DROPBEAR_3DES_CBC
161 &des3_desc, 161 &des3_desc,
162 #endif 162 #endif