From 96da3db2b8e31449403ccf1b73fa7941eb985732 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 2 Jun 2023 14:28:19 +0200 Subject: [PATCH] Set AES-128 as default symmetric algorithm. The crypto-refresh marks AES-128 as MUST implement. --- .../src/main/java/org/pgpainless/policy/Policy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/policy/Policy.java b/pgpainless-core/src/main/java/org/pgpainless/policy/Policy.java index 3556f104..6da94bf0 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/policy/Policy.java +++ b/pgpainless-core/src/main/java/org/pgpainless/policy/Policy.java @@ -265,7 +265,7 @@ public final class Policy { * @return 2022 symmetric key encryption algorithm policy */ public static SymmetricKeyAlgorithmPolicy symmetricKeyEncryptionPolicy2022() { - return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_256, Arrays.asList( + return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_128, Arrays.asList( // Reject: Unencrypted, IDEA, TripleDES, CAST5, Blowfish SymmetricKeyAlgorithm.AES_256, SymmetricKeyAlgorithm.AES_192, @@ -295,7 +295,7 @@ public final class Policy { * @return 2022 symmetric key decryption algorithm policy */ public static SymmetricKeyAlgorithmPolicy symmetricKeyDecryptionPolicy2022() { - return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_256, Arrays.asList( + return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_128, Arrays.asList( // Reject: Unencrypted, IDEA, TripleDES, Blowfish SymmetricKeyAlgorithm.CAST5, SymmetricKeyAlgorithm.AES_256,