diff options
author | Werner Koch <wk@gnupg.org> | 1998-07-02 21:31:46 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-07-02 21:31:46 +0200 |
commit | 97090f1293d43f67e36850c76aeba23760954757 (patch) | |
tree | ed63e6c5e37edeb337048cdcc84b471aa405f503 /cipher | |
parent | textual changes (diff) | |
download | gnupg2-97090f1293d43f67e36850c76aeba23760954757.tar.xz gnupg2-97090f1293d43f67e36850c76aeba23760954757.zip |
partly added creation of OP partial length headers
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/ChangeLog | 4 | ||||
-rw-r--r-- | cipher/cipher.c | 6 |
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 (wk@isil.d.shuttle.de) + + * cipher.c (cipher_open): algos >=100 use standard CFB + Thu Jun 25 11:18:25 1998 Werner Koch (wk@isil.d.shuttle.de) * 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; |