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 e5e24ac commit ff1c415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpgp/v2/key_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ func writeKeyProperties(selfSignature *packet.Signature, selectedKeyProperties *
}

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(selectedKeyProperties.aead.Mode())}
if selectedKeyProperties.aead.Mode() != packet.AEADModeOCB {
modes = append(modes, uint8(packet.AEADModeOCB))
Expand Down

0 comments on commit ff1c415

Please sign in to comment.