aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-04-06 18:04:55 +0000
committerWerner Koch <[email protected]>1999-04-06 18:04:55 +0000
commit1b9a820c19d8ada57d19ea9ec1bbf7e80cb69d18 (patch)
treefa5639c6ee2652942b712a244125734d7155c937 /cipher/cipher.c
parent./BUGS (diff)
downloadgnupg-1b9a820c19d8ada57d19ea9ec1bbf7e80cb69d18.tar.gz
gnupg-1b9a820c19d8ada57d19ea9ec1bbf7e80cb69d18.zip
See ChangeLog: Tue Apr 6 19:58:12 CEST 1999 Werner Koch
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r--cipher/cipher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index ca79fa9b7..338b2b9d2 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -340,7 +340,8 @@ 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 || algo >= 100 )
+ if( hd->blocksize > 8
+ || algo == CIPHER_ALGO_BLOWFISH160 || algo >= 100 )
hd->mode = CIPHER_MODE_CFB;
else
hd->mode = CIPHER_MODE_PHILS_CFB;