Home GnuPG
Diffusion GnuPG f3ef8b0dcaed

gpg: New option --chunk-size.

Description

gpg: New option --chunk-size.

* g10/gpg.c (opts): New option --chunk-size.
(oChunkSize): New const.
(build_list_aead_test_algo, build_list_aead_algo_name): New.
(my_strusage): List AEAD algos.
(main): Implement --chunk-size..
* g10/options.h (struct opt): Add field 'chunk_size'.
(DBG_IPC): Remove duplicated macro.
* g10/main.h (DEFAULT_AEAD_ALGO): Depend on Libgcrypt version.
* g10/misc.c (openpgp_aead_test_algo): Ditto.
* g10/cipher-aead.c: Silence if not in debug mode.
* g10/decrypt-data.c: Ditto.

And that new option immediatley revealed bugs in our chunking code :-(.

Details

Provenance
wernerAuthored on Jan 23 2018, 7:08 PM
Parents
rG112e02ee89b7: gpg: Copy the AEAD prefs to the user ID struct.
Branches
Unknown
Tags
Unknown