mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Start using OCB mode by default with Libgcrypt 1.9.
* g10/main.h (GCRYPT_VERSION_NUMBER): Fix type in condition. -- GnuPG-bug-id: 4259 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
c8f79cec74
commit
1e700961dd
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@
|
|||
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_3DES
|
||||
#endif
|
||||
|
||||
#if GCRYPT_VERSION_NUMBER < 0x019000
|
||||
/* We will start using OCB mode by default only if the yet to be
|
||||
* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue