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