aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encr-data.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/encr-data.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 'g10/encr-data.c')
-rw-r--r--g10/encr-data.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/g10/encr-data.c b/g10/encr-data.c
index 8ae6949d8..ff0930775 100644
--- a/g10/encr-data.c
+++ b/g10/encr-data.c
@@ -66,10 +66,7 @@ decrypt_data( PKT_encrypted *ed, DEK *dek )
blocksize = cipher_get_blocksize(dek->algo);
if( !blocksize || 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 = dek->algo == CIPHER_ALGO_TWOFISH_OLD? blocksize : 8;
+ nprefix = blocksize;
if( ed->len && ed->len < (nprefix+2) )
BUG();