Skip to content

Commit 63e3da1

Browse files
committed
[v2] Use AEAD if all public keys support it
1 parent d7733dc commit 63e3da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openpgp/v2/write.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,8 @@ func encrypt(
594594
encryptKeys := make([]Key, len(to)+len(toHidden))
595595

596596
config := params.Config
597-
// AEAD is used only if config enables it and every key supports it
598-
aeadSupported := config.AEAD() != nil
597+
// AEAD is used if every key supports it
598+
aeadSupported := true
599599

600600
var intendedRecipients []*packet.Recipient
601601
// Intended Recipient Fingerprint subpacket SHOULD be used when creating a signed and encrypted message

0 commit comments

Comments
 (0)