1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Fri Apr 9 12:26:25 CEST 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-04-09 10:34:44 +00:00
parent 97efca04ef
commit 02d018f9c8
22 changed files with 152 additions and 139 deletions

View file

@ -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();