diff options
| author | Werner Koch <[email protected]> | 2018-01-23 18:08:16 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2018-01-23 18:08:16 +0000 |
| commit | f3ef8b0dcaede1c85da0dff8eeceda6a994f0b28 (patch) | |
| tree | 26438580bccad14556dd29a97591baa26cef217e /g10/options.h | |
| parent | gpg: Copy the AEAD prefs to the user ID struct. (diff) | |
| download | gnupg-f3ef8b0dcaede1c85da0dff8eeceda6a994f0b28.tar.gz gnupg-f3ef8b0dcaede1c85da0dff8eeceda6a994f0b28.zip | |
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 :-(.
Diffstat (limited to 'g10/options.h')
| -rw-r--r-- | g10/options.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/options.h b/g10/options.h index 36bea694d..471aee7f4 100644 --- a/g10/options.h +++ b/g10/options.h @@ -62,6 +62,9 @@ struct * progress info and to decide on how to allocate buffers. */ uint64_t input_size_hint; + /* The AEAD chunk size expressed as a power of 2. */ + int chunk_size; + int dry_run; int autostart; int list_only; @@ -319,7 +322,6 @@ struct { #define DBG_TRUST (opt.debug & DBG_TRUST_VALUE) #define DBG_HASHING (opt.debug & DBG_HASHING_VALUE) #define DBG_IPC (opt.debug & DBG_IPC_VALUE) -#define DBG_IPC (opt.debug & DBG_IPC_VALUE) #define DBG_CLOCK (opt.debug & DBG_CLOCK_VALUE) #define DBG_LOOKUP (opt.debug & DBG_LOOKUP_VALUE) #define DBG_EXTPROG (opt.debug & DBG_EXTPROG_VALUE) |
