diff options
author | Werner Koch <[email protected]> | 1998-07-02 19:31:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-07-02 19:31:46 +0000 |
commit | 97090f1293d43f67e36850c76aeba23760954757 (patch) | |
tree | ed63e6c5e37edeb337048cdcc84b471aa405f503 /cipher/cipher.c | |
parent | textual changes (diff) | |
download | gnupg-97090f1293d43f67e36850c76aeba23760954757.tar.gz gnupg-97090f1293d43f67e36850c76aeba23760954757.zip |
partly added creation of OP partial length headers
Diffstat (limited to '')
-rw-r--r-- | cipher/cipher.c | 6 |
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; |