aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cipher/cipher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index df38850ad..25b1e8fcd 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -305,10 +305,10 @@ cipher_open( int algo, int mode, int secure )
if( algo == CIPHER_ALGO_DUMMY )
hd->mode = CIPHER_MODE_DUMMY;
else if( mode == CIPHER_MODE_AUTO_CFB ) {
- if( algo != CIPHER_ALGO_BLOWFISH160 )
- hd->mode = CIPHER_MODE_PHILS_CFB;
- else
+ if( algo == CIPHER_ALGO_BLOWFISH160 || algo >= 100 )
hd->mode = CIPHER_MODE_CFB;
+ else
+ hd->mode = CIPHER_MODE_PHILS_CFB;
}
else
hd->mode = mode;