Home GnuPG
Diffusion GnuPG 416cf9e9be5d

gpg: Print a warning for too much data encrypted with 3DES et al.

Description

gpg: Print a warning for too much data encrypted with 3DES et al.

* g10/filter.h (cipher_filter_context_t): Remove unused filed
'create_mdc'.  Turn field 'header' into a bit field.  Add new fields
'short_blklen_warn' and 'short_blklen_count'.
* g10/cipher.c (write_header): Print a warning if MDC is not used.
(cipher_filter): Print a warning for long messages encrypted with a
short block length algorithm.

Note that to test this warning in a reliable way compression needs to
be disabled.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 13 2017, 1:02 PM
Parents
rGb5333e13cbc9: gpg: Simplify cipher:write_header.
Branches
Unknown
Tags
Unknown