summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/mem.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-08-15 12:20:28 +0200
committerJustus Winter <justus@sequoia-pgp.org>2022-08-15 12:20:28 +0200
commitca7e16e8aad5c77445905c088cedf41c881552a8 (patch)
tree6780f2d023bfb91153af7258b2cdada3b45c66bf /openpgp/src/crypto/mem.rs
parentf6b267a25a0e4d59bdfdf0e066b4875e8484550d (diff)
openpgp: Avoid hardcoding EAX for memory encryption.
- Previously, we used EAX for memory encryption because it was supported by all cryptographic backends. However, this is problematic for OpenSSL, which doesn't support EAX. - Instead, have the backends provide a default algorithm to use that they support.
Diffstat (limited to 'openpgp/src/crypto/mem.rs')
-rw-r--r--openpgp/src/crypto/mem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs
index af7c5cfa..9af1936c 100644
--- a/openpgp/src/crypto/mem.rs
+++ b/openpgp/src/crypto/mem.rs
@@ -269,7 +269,7 @@ mod has_access_to_prekey {
// algorithms MUST be supported by the cryptographic library.
const HASH_ALGO: HashAlgorithm = HashAlgorithm::SHA256;
const SYMMETRIC_ALGO: SymmetricAlgorithm = SymmetricAlgorithm::AES256;
- const AEAD_ALGO: AEADAlgorithm = AEADAlgorithm::EAX;
+ const AEAD_ALGO: AEADAlgorithm = AEADAlgorithm::const_default();
impl Encrypted {
/// Computes the sealing key used to encrypt the memory.