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:
parent
5faf04ae4b
commit
2cb41ae2e8
2 changed files with 35 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue