1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-06 12:21:15 +01:00

sop encrypt: Use SEIPDv1 for symmetric-only encryption by default

This commit is contained in:
Paul Schaub 2025-11-04 20:04:53 +01:00
parent 5faf04ae4b
commit 2cb41ae2e8
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 35 additions and 1 deletions

View file

@ -41,6 +41,10 @@ fun interface EncryptionMechanismNegotiator {
return override
}
if (features.isEmpty()) {
return policy.messageEncryptionAlgorithmPolicy.symmetricFallbackMechanism
}
// If all support SEIPD2, use SEIPD2
if (features.all { it.contains(Feature.MODIFICATION_DETECTION_2) }) {
// Find best supported algorithm combination