mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: default to AES-256.
* g10/main.h (DEFAULT_CIPHER_ALGO): Prefer AES256 by default.
--
It's 2017, and pretty much everyone has AES-256 available. Symmetric
crypto is also rarely the bottleneck (asymmetric crypto is much more
expensive). AES-256 provides some level of protection against
large-scale decryption efforts, and longer key lengths provide a hedge
against unforseen cryptanalysis.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
(cherry picked from commit 73ff075204
)
Gbp-Pq: Topic from-master
Gbp-Pq: Name gpg-default-to-AES-256.patch
This commit is contained in:
parent
9420c525db
commit
f7c7872853
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@
|
||||||
(i.e. uncompressed) rather than 1 (zip). However, the real world
|
(i.e. uncompressed) rather than 1 (zip). However, the real world
|
||||||
issues of speed and size come into play here. */
|
issues of speed and size come into play here. */
|
||||||
|
|
||||||
#if GPG_USE_AES128
|
#if GPG_USE_AES256
|
||||||
|
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_AES256
|
||||||
|
#elif GPG_USE_AES128
|
||||||
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_AES
|
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_AES
|
||||||
#elif GPG_USE_CAST5
|
#elif GPG_USE_CAST5
|
||||||
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_CAST5
|
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_CAST5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue