diff options
Diffstat (limited to 'g10/cipher.c')
-rw-r--r-- | g10/cipher.c | 5 |
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]; |