Home GnuPG
Diffusion GnuPG 4584125802be

gpg: Try hard to use MDC also for sign+symenc.
4584125802beUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Try hard to use MDC also for sign+symenc.

* g10/encrypt.c (use_mdc): Make it a global func.
* g10/sign.c (sign_symencrypt_file): Use that function to decide
whether to use an MDC.
* tests/openpgp/conventional-mdc.test: Add a simple test case.

We used --force-mdc in sign+symenc mode (-cs) only with --force-mdc.
That broke our assumption from commit 625e292 (GnuPG 2.1.9) that all
uses of modern ciphers are using MDC.

  • Reported-by: Ben Kibbey <bjk@luxsci.net>
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 12 2015, 9:31 AM
Parents
rGb0627ec25903: Post release updates.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4584125802be: gpg: Try hard to use MDC also for sign+symenc. (authored by Werner Koch <wk@gnupg.org>).Oct 12 2015, 9:31 AM