gpg: Print a warning for too much data encrypted with 3DES et al.
authorWerner Koch <wk@gnupg.org>
Wed, 13 Dec 2017 12:02:34 +0000 (13:02 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 13 Dec 2017 12:02:34 +0000 (13:02 +0100)
commit416cf9e9be5d2daf0ef629208031989699b3653f
treecf0dab23d018a81924a3a97547ae456e0d790cb4
parentb5333e13cbc9db354ed90762190bf70605a02d1f
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>
g10/cipher.c
g10/filter.h