Skip to content

Commit

Permalink
[v2] Use AEAD if all public keys support it
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Nov 11, 2024
1 parent d7733dc commit 63e3da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpgp/v2/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ func encrypt(
encryptKeys := make([]Key, len(to)+len(toHidden))

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

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

0 comments on commit 63e3da1

Please sign in to comment.