1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-28 21:50:02 +02:00

gpg: Fix broken setting of AEAD algo.

* g10/main.h (DEFAULT_AEAD_ALGO): Set to OCB.
--

With the old code and using libgcrypt 1.9 would have switched from the
high performance OCB to the ugly EAX mode.  We are free software, we
are OCB.
This commit is contained in:
Werner Koch 2020-04-15 22:21:46 +02:00
parent c0d5c67354
commit df0edaf91a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -41,13 +41,7 @@
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_3DES # define DEFAULT_CIPHER_ALGO CIPHER_ALGO_3DES
#endif #endif
/* We will start using OCB mode by default only if the yet to be #define DEFAULT_AEAD_ALGO AEAD_ALGO_OCB
* released libgcrypt 1.9 is used. */
#if GCRYPT_VERSION_NUMBER < 0x010900
# define DEFAULT_AEAD_ALGO AEAD_ALGO_OCB
#else
# define DEFAULT_AEAD_ALGO AEAD_ALGO_EAX
#endif
#define DEFAULT_DIGEST_ALGO ((GNUPG)? DIGEST_ALGO_SHA256:DIGEST_ALGO_SHA1) #define DEFAULT_DIGEST_ALGO ((GNUPG)? DIGEST_ALGO_SHA256:DIGEST_ALGO_SHA1)
#define DEFAULT_S2K_DIGEST_ALGO DIGEST_ALGO_SHA1 #define DEFAULT_S2K_DIGEST_ALGO DIGEST_ALGO_SHA1