aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-04-09 10:34:44 +0000
committerWerner Koch <[email protected]>1999-04-09 10:34:44 +0000
commit02d018f9c84c8f3462ff30c2f5336a3acbc9cd38 (patch)
tree0ac69079ad82fc3c6767fa571428da93d091ef81 /g10/cipher.c
parentSee ChangeLog: Thu Apr 8 09:35:53 CEST 1999 Werner Koch (diff)
downloadgnupg-02d018f9c84c8f3462ff30c2f5336a3acbc9cd38.tar.gz
gnupg-02d018f9c84c8f3462ff30c2f5336a3acbc9cd38.zip
See ChangeLog: Fri Apr 9 12:26:25 CEST 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r--g10/cipher.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/g10/cipher.c b/g10/cipher.c
index 98c5e8403..5a7229f24 100644
--- a/g10/cipher.c
+++ b/g10/cipher.c
@@ -58,10 +58,7 @@ write_header( cipher_filter_context_t *cfx, IOBUF a )
blocksize = cipher_get_blocksize( cfx->dek->algo );
if( blocksize < 8 || blocksize > 16 )
log_fatal("unsupported blocksize %u\n", blocksize );
- /* FIXME: remove the kludge for the experimental twofish128 mode:
- * we always use the 10 byte prefix and not one depending on the blocksize
- */
- nprefix = cfx->dek->algo == CIPHER_ALGO_TWOFISH_OLD? blocksize : 8;
+ nprefix = blocksize;
randomize_buffer( temp, nprefix, 1 );
temp[nprefix] = temp[nprefix-2];
temp[nprefix+1] = temp[nprefix-1];