mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 04:42:06 +01:00
Remove Blowfish from default symmetric decryption/encryption algorithm policies
This commit is contained in:
parent
ec61f4de9f
commit
f5c3e7b23f
1 changed files with 2 additions and 4 deletions
|
@ -224,11 +224,10 @@ public final class Policy {
|
||||||
*/
|
*/
|
||||||
public static SymmetricKeyAlgorithmPolicy defaultSymmetricKeyEncryptionAlgorithmPolicy() {
|
public static SymmetricKeyAlgorithmPolicy defaultSymmetricKeyEncryptionAlgorithmPolicy() {
|
||||||
return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_256, Arrays.asList(
|
return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_256, Arrays.asList(
|
||||||
// Reject: Unencrypted, IDEA, TripleDES, CAST5
|
// Reject: Unencrypted, IDEA, TripleDES, CAST5, Blowfish
|
||||||
SymmetricKeyAlgorithm.AES_256,
|
SymmetricKeyAlgorithm.AES_256,
|
||||||
SymmetricKeyAlgorithm.AES_192,
|
SymmetricKeyAlgorithm.AES_192,
|
||||||
SymmetricKeyAlgorithm.AES_128,
|
SymmetricKeyAlgorithm.AES_128,
|
||||||
SymmetricKeyAlgorithm.BLOWFISH,
|
|
||||||
SymmetricKeyAlgorithm.TWOFISH,
|
SymmetricKeyAlgorithm.TWOFISH,
|
||||||
SymmetricKeyAlgorithm.CAMELLIA_256,
|
SymmetricKeyAlgorithm.CAMELLIA_256,
|
||||||
SymmetricKeyAlgorithm.CAMELLIA_192,
|
SymmetricKeyAlgorithm.CAMELLIA_192,
|
||||||
|
@ -243,12 +242,11 @@ public final class Policy {
|
||||||
*/
|
*/
|
||||||
public static SymmetricKeyAlgorithmPolicy defaultSymmetricKeyDecryptionAlgorithmPolicy() {
|
public static SymmetricKeyAlgorithmPolicy defaultSymmetricKeyDecryptionAlgorithmPolicy() {
|
||||||
return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_256, Arrays.asList(
|
return new SymmetricKeyAlgorithmPolicy(SymmetricKeyAlgorithm.AES_256, Arrays.asList(
|
||||||
// Reject: Unencrypted, IDEA, TripleDES
|
// Reject: Unencrypted, IDEA, TripleDES, Blowfish
|
||||||
SymmetricKeyAlgorithm.CAST5,
|
SymmetricKeyAlgorithm.CAST5,
|
||||||
SymmetricKeyAlgorithm.AES_256,
|
SymmetricKeyAlgorithm.AES_256,
|
||||||
SymmetricKeyAlgorithm.AES_192,
|
SymmetricKeyAlgorithm.AES_192,
|
||||||
SymmetricKeyAlgorithm.AES_128,
|
SymmetricKeyAlgorithm.AES_128,
|
||||||
SymmetricKeyAlgorithm.BLOWFISH,
|
|
||||||
SymmetricKeyAlgorithm.TWOFISH,
|
SymmetricKeyAlgorithm.TWOFISH,
|
||||||
SymmetricKeyAlgorithm.CAMELLIA_256,
|
SymmetricKeyAlgorithm.CAMELLIA_256,
|
||||||
SymmetricKeyAlgorithm.CAMELLIA_192,
|
SymmetricKeyAlgorithm.CAMELLIA_192,
|
||||||
|
|
Loading…
Reference in a new issue