diff options
author | David Shaw <dshaw@jabberwocky.com> | 2002-08-13 21:00:23 +0200 |
---|---|---|
committer | David Shaw <dshaw@jabberwocky.com> | 2002-08-13 21:00:23 +0200 |
commit | 1111da19a858ba517898dcd34680ea40ee3b3ab9 (patch) | |
tree | d4b1153ef1332a05089d91e1ef3b3904ac150f08 /g10/g10.c | |
parent | * cipher.h: Add AES aliases for RIJNDAEL algo numbers. (diff) | |
download | gnupg2-1111da19a858ba517898dcd34680ea40ee3b3ab9.tar.xz gnupg2-1111da19a858ba517898dcd34680ea40ee3b3ab9.zip |
* encode.c (encode_simple): Fix problem with using compression algo 2 and
symmetric compressed files.
* encode.c (encode_simple, encode_crypt): If we are not using a MDC,
compress even if a file is already compressed. This is to help against
the chosen ciphertext attack.
* pkclist.c (select_algo_from_prefs): Fix requested algorithm bug so the
request succeeds even if the requested algorithm is not the first found.
* cipher.c (write_header), encode.c (use_mdc, encode_simple, encode_crypt,
encrypt_filter), g10.c (main): Be more eager to use a MDC. We use a MDC
if the keys directly support it, if the keys list AES (any) or TWOFISH
anywhere in the prefs, or if the cipher chosen does not have a 64 bit
blocksize.
Diffstat (limited to 'g10/g10.c')
-rw-r--r-- | g10/g10.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1400,12 +1400,15 @@ main( int argc, char **argv ) opt.rfc1991 = 1; opt.rfc2440 = 0; opt.force_v4_certs = 0; - opt.sk_comments = 0; + opt.disable_mdc = 1; opt.escape_from = 1; break; case oOpenPGP: + /* TODO: When 2440bis becomes a RFC, these may need + changing. */ opt.rfc1991 = 0; opt.rfc2440 = 1; + opt.disable_mdc = 1; opt.allow_non_selfsigned_uid = 1; opt.allow_freeform_uid = 1; opt.pgp2_workarounds = 0; |