Skip to content

Commit

Permalink
chore: Update old comment
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Huigens <[email protected]>
  • Loading branch information
lubux and twiss authored Nov 12, 2024
1 parent 3d9f7e4 commit 533abc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpgp/key_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func writeKeyProperties(selfSignature *packet.Signature, creationTime time.Time,
}

if advertiseAead {
// And for DefaultMode.
// Get the preferred AEAD mode from the packet.Config.
// If it is not the must-implement algorithm from rfc9580, append that.
modes := []uint8{uint8(config.AEAD().Mode())}
if config.AEAD().Mode() != packet.AEADModeOCB {
modes = append(modes, uint8(packet.AEADModeOCB))
Expand Down

0 comments on commit 533abc0

Please sign in to comment.