mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Hard fail on a missing MDC even for legacy algorithms.
* g10/mainproc.c (proc_encrypted): Require an MDC or AEAD * tests/openpgp/defs.scm (create-gpghome): Use --ignore-mdc-error to allow testing with the current files. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
96350c5d5a
commit
d1431901f0
3 changed files with 11 additions and 12 deletions
|
@ -3230,10 +3230,11 @@ to ignore CRC errors.
|
|||
@item --ignore-mdc-error
|
||||
@opindex ignore-mdc-error
|
||||
This option changes a MDC integrity protection failure into a warning.
|
||||
This can be useful if a message is partially corrupt, but it is
|
||||
necessary to get as much data as possible out of the corrupt message.
|
||||
However, be aware that a MDC protection failure may also mean that the
|
||||
message was tampered with intentionally by an attacker.
|
||||
It is required to decrypt old messages which did not use an MDC. It
|
||||
may also be useful if a message is partially garbled, but it is
|
||||
necessary to get as much data as possible out of that garbled message.
|
||||
Be aware that a missing or failed MDC can be an indication of an
|
||||
attack. Use with caution.
|
||||
|
||||
@item --allow-weak-digest-algos
|
||||
@opindex allow-weak-digest-algos
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue