1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

Set AES-128 as default symmetric algorithm.

The crypto-refresh marks AES-128 as MUST implement.
This commit is contained in:
Paul Schaub 2023-06-02 14:28:19 +02:00
parent e1038a8bb3
commit 96da3db2b8
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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,