aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encr-data.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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();