aboutsummaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog4
-rw-r--r--cipher/cipher.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 92ca470da..2e47f9a0c 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jul 2 10:50:30 1998 Werner Koch ([email protected])
+
+ * cipher.c (cipher_open): algos >=100 use standard CFB
+
Thu Jun 25 11:18:25 1998 Werner Koch ([email protected])
* Makefile.am: Support for extensions
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;