mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01: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:
parent
c0d5c67354
commit
df0edaf91a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user