summaryrefslogtreecommitdiffstats
path: root/openpgp/src/policy.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-02-16 10:52:14 +0100
committerJustus Winter <justus@sequoia-pgp.org>2023-05-22 11:03:16 +0200
commit4bcaebc7515ed15bb403a312532e8870a781fb3a (patch)
tree2b2b57dc0c64d47a918c5bfe5fa1b6265291f637 /openpgp/src/policy.rs
parentd088cdb56f525beb1306a8145362a13e11704bf6 (diff)
openpgp: Implement GCM mode.
- The Galois/Counter mode for block ciphers is a FIPS-approved AEAD mode. It will be added to the upcoming OpenPGP standard so that we have a FIPS-compliant subset of OpenPGP.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r--openpgp/src/policy.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs
index e91a6c0e..a75cb4f1 100644
--- a/openpgp/src/policy.rs
+++ b/openpgp/src/policy.rs
@@ -741,11 +741,12 @@ a_cutoff_list!(SymmetricAlgorithmCutoffList, SymmetricAlgorithm, 14,
ACCEPT, // 13. Camellia256.
]);
-a_cutoff_list!(AEADAlgorithmCutoffList, AEADAlgorithm, 3,
+a_cutoff_list!(AEADAlgorithmCutoffList, AEADAlgorithm, 4,
[
REJECT, // 0. Reserved.
ACCEPT, // 1. EAX.
ACCEPT, // 2. OCB.
+ ACCEPT, // 3. GCM.
]);
a_versioned_cutoff_list!(PacketTagCutoffList, Tag, 21,