Mercurial > dropbear
comparison common-algo.c @ 150:82fcf3185616
Cleaning out various dead wood found with -dead_strip
bignum.c: mptobytes now resides in dss.c
loginrec.c: remove lastlog code since it isn't used.
dbutil.c: removed obselete usingsyslog variable
channel.h: client channel type only defined for client compile
common-algo.c: s/rijndael/aes/
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 20 Dec 2004 14:24:57 +0000 |
parents | e3adf4cf5465 |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
149:ed9ca2a9705c | 150:82fcf3185616 |
---|---|
32 /* Mappings for ciphers, parameters are | 32 /* Mappings for ciphers, parameters are |
33 {&cipher_desc, keysize, blocksize} */ | 33 {&cipher_desc, keysize, blocksize} */ |
34 | 34 |
35 #ifdef DROPBEAR_AES128_CBC | 35 #ifdef DROPBEAR_AES128_CBC |
36 const struct dropbear_cipher dropbear_aes128 = | 36 const struct dropbear_cipher dropbear_aes128 = |
37 {&rijndael_desc, 16, 16}; | 37 {&aes_desc, 16, 16}; |
38 #endif | 38 #endif |
39 #ifdef DROPBEAR_BLOWFISH_CBC | 39 #ifdef DROPBEAR_BLOWFISH_CBC |
40 const struct dropbear_cipher dropbear_blowfish = | 40 const struct dropbear_cipher dropbear_blowfish = |
41 {&blowfish_desc, 16, 8}; | 41 {&blowfish_desc, 16, 8}; |
42 #endif | 42 #endif |
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 _cipher_descriptor *regciphers[] = { |
129 #ifdef DROPBEAR_AES128_CBC | 129 #ifdef DROPBEAR_AES128_CBC |
130 &rijndael_desc, | 130 &aes_desc, |
131 #endif | 131 #endif |
132 #ifdef DROPBEAR_BLOWFISH_CBC | 132 #ifdef DROPBEAR_BLOWFISH_CBC |
133 &blowfish_desc, | 133 &blowfish_desc, |
134 #endif | 134 #endif |
135 #ifdef DROPBEAR_TWOFISH128_CBC | 135 #ifdef DROPBEAR_TWOFISH128_CBC |