diff common-algo.c @ 229:1c03b27e1ceb

- "twofish-cbc" is an alias for "twofish256-cbc" - increase the maximum key length constant
author Matt Johnston <matt@ucc.asn.au>
date Tue, 30 Aug 2005 17:30:39 +0000
parents 5e4110bb753a
children 16f552859ee6
line wrap: on
line diff
--- a/common-algo.c	Tue Aug 30 16:58:57 2005 +0000
+++ b/common-algo.c	Tue Aug 30 17:30:39 2005 +0000
@@ -84,6 +84,13 @@
 /* The following map ssh names to internal values */
 
 algo_type sshciphers[] = {
+#ifdef DROPBEAR_TWOFISH256_CBC
+	{"twofish256-cbc", 0, (void*)&dropbear_twofish256, 1},
+	{"twofish-cbc", 0, (void*)&dropbear_twofish256, 1},
+#endif
+#ifdef DROPBEAR_TWOFISH128_CBC
+	{"twofish128-cbc", 0, (void*)&dropbear_twofish128, 1},
+#endif
 #ifdef DROPBEAR_AES128_CBC
 	{"aes128-cbc", 0, (void*)&dropbear_aes128, 1},
 #endif
@@ -96,12 +103,6 @@
 #ifdef DROPBEAR_BLOWFISH_CBC
 	{"blowfish-cbc", 0, (void*)&dropbear_blowfish, 1},
 #endif
-#ifdef DROPBEAR_TWOFISH256_CBC
-	{"twofish256-cbc", 0, (void*)&dropbear_twofish256, 1},
-#endif
-#ifdef DROPBEAR_TWOFISH128_CBC
-	{"twofish128-cbc", 0, (void*)&dropbear_twofish128, 1},
-#endif
 	{NULL, 0, NULL, 0}
 };