diff options
author | Werner Koch <[email protected]> | 2018-01-21 15:42:29 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-01-21 16:00:27 +0000 |
commit | 7356d6ec50ea24bc9449187e1c2b3ecd717b789f (patch) | |
tree | 5740a607ce592858e1d93527c00a741c0188a4bc /g10/misc.c | |
parent | gpg: First take on PKT_ENCRYPTED_AEAD. (diff) | |
download | gnupg-7356d6ec50ea24bc9449187e1c2b3ecd717b789f.tar.gz gnupg-7356d6ec50ea24bc9449187e1c2b3ecd717b789f.zip |
gpg: Support EAX if for latest Libgcrypt.
* g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): New.
(write_header): Use it.
* g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): New.
(decrypt_data): Use it.
* g10/misc.c (openpgp_aead_test_algo): Allow EAX.
--
This allows the use of EAX when the latest Libgcrypt master is used.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/g10/misc.c b/g10/misc.c index 2da0d270c..f7ac3c708 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -591,7 +591,6 @@ openpgp_aead_test_algo (aead_algo_t algo) case AEAD_ALGO_NONE: break; case AEAD_ALGO_EAX: - return gpg_error (GPG_ERR_NOT_SUPPORTED); case AEAD_ALGO_OCB: return 0; } |