mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Change default and max AEAD chunk size to 4 MiB
-- This is per OpenPGP WG design team decision from 2021-08-13 (raising a new wall after exactly 60 years ;-) Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0b64c27446
commit
ad3dabc9fb
2 changed files with 4 additions and 4 deletions
|
@ -3974,15 +3974,15 @@ main (int argc, char **argv)
|
|||
/* Check chunk size. Please fix also the man page if you change
|
||||
* the default. The limits are given by the specs. */
|
||||
if (!opt.chunk_size)
|
||||
opt.chunk_size = 27; /* Default to the suggested max of 128 MiB. */
|
||||
opt.chunk_size = 22; /* Default to the suggested max of 4 MiB. */
|
||||
else if (opt.chunk_size < 6)
|
||||
{
|
||||
opt.chunk_size = 6;
|
||||
log_info (_("chunk size invalid - using %d\n"), opt.chunk_size);
|
||||
}
|
||||
else if (opt.chunk_size > (allow_large_chunks? 62 : 27))
|
||||
else if (opt.chunk_size > (allow_large_chunks? 62 : 22))
|
||||
{
|
||||
opt.chunk_size = (allow_large_chunks? 62 : 27);
|
||||
opt.chunk_size = (allow_large_chunks? 62 : 22);
|
||||
log_info (_("chunk size invalid - using %d\n"), opt.chunk_size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue