From ff1c4159f0b344fe5f6be6c9185862ab9e42ce6f Mon Sep 17 00:00:00 2001 From: Lukas Burkhalter <10532077+lubux@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:45:12 +0100 Subject: [PATCH] chore: Update old comment Co-authored-by: Daniel Huigens --- openpgp/v2/key_generation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpgp/v2/key_generation.go b/openpgp/v2/key_generation.go index b0722dcd..c15eba9b 100644 --- a/openpgp/v2/key_generation.go +++ b/openpgp/v2/key_generation.go @@ -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))