diff options
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r-- | cipher/cipher.c | 3 |
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; |