mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
2002-06-05 Timo Schulz <ts@winpt.org>
* encode.c (encode_simple): Ignore the new mode for RFC1991. * mainproc.c (symkey_sesskey_decrypt): Better check for weird keysizes.
This commit is contained in:
parent
8bd4025def
commit
fa73dd2052
3 changed files with 13 additions and 1 deletions
|
@ -135,6 +135,12 @@ encode_simple( const char *filename, int mode, int compat )
|
|||
if( opt.textmode )
|
||||
iobuf_push_filter( inp, text_filter, &tfx );
|
||||
|
||||
/* Due the the fact that we use don't use an IV to encrypt the
|
||||
session key we can't use the new mode with RFC1991 because
|
||||
it has no S2K salt. RFC1991 always uses simple S2K. */
|
||||
if ( opt.rfc1991 && !compat )
|
||||
compat = 1;
|
||||
|
||||
cfx.dek = NULL;
|
||||
if( mode ) {
|
||||
s2k = m_alloc_clear( sizeof *s2k );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue