comparison common-algo.c @ 1673:e0871128e61f

CBC mode cleanup (#95) * Fix CBC mode can't be fully disabled * Fix CBC mode can't be the only mode
author Vladislav Grishenko <themiron@users.noreply.github.com>
date Mon, 25 May 2020 20:55:13 +0500
parents 3a97f14c0235
children 41bf8f216644
comparison
equal deleted inserted replaced
1672:3a97f14c0235 1673:e0871128e61f
182 {"twofish-cbc", 0, &dropbear_twofish256, 1, &dropbear_mode_cbc}, 182 {"twofish-cbc", 0, &dropbear_twofish256, 1, &dropbear_mode_cbc},
183 #endif 183 #endif
184 #if DROPBEAR_TWOFISH128 184 #if DROPBEAR_TWOFISH128
185 {"twofish128-cbc", 0, &dropbear_twofish128, 1, &dropbear_mode_cbc}, 185 {"twofish128-cbc", 0, &dropbear_twofish128, 1, &dropbear_mode_cbc},
186 #endif 186 #endif
187 #endif /* DROPBEAR_ENABLE_CBC_MODE */
188
187 #if DROPBEAR_3DES 189 #if DROPBEAR_3DES
190 #if DROPBEAR_ENABLE_CTR_MODE
188 {"3des-ctr", 0, &dropbear_3des, 1, &dropbear_mode_ctr}, 191 {"3des-ctr", 0, &dropbear_3des, 1, &dropbear_mode_ctr},
189 #endif 192 #endif
190 #if DROPBEAR_3DES 193 #if DROPBEAR_ENABLE_CBC_MODE
191 {"3des-cbc", 0, &dropbear_3des, 1, &dropbear_mode_cbc}, 194 {"3des-cbc", 0, &dropbear_3des, 1, &dropbear_mode_cbc},
192 #endif 195 #endif
196 #endif /* DROPBEAR_3DES */
197
198 #if DROPBEAR_ENABLE_CBC_MODE
193 #if DROPBEAR_BLOWFISH 199 #if DROPBEAR_BLOWFISH
194 {"blowfish-cbc", 0, &dropbear_blowfish, 1, &dropbear_mode_cbc}, 200 {"blowfish-cbc", 0, &dropbear_blowfish, 1, &dropbear_mode_cbc},
195 #endif 201 #endif
196 #endif /* DROPBEAR_ENABLE_CBC_MODE */ 202 #endif /* DROPBEAR_ENABLE_CBC_MODE */
197 {NULL, 0, NULL, 0, NULL} 203 {NULL, 0, NULL, 0, NULL}