x/crypto/openpgp: SerializePrivate output changes after loading with ReadKeyRing/ReadArmoredKeyring #37497
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I made a reproducible test koshatul/openpgp-hash-change.
When loading the private key from a file, and writing it back to a file the output is different, but it seems to alternate back and forth between two versions, so if I load the key from file, write it, it will now have "content b", then when I load and write it again, it will be back to the original content.
What did you expect to see?
Loading and writing a private key to not change the file content.
What did you see instead?
Whenever I read the private key from the drive and write it back the content changes, but it changes back and forth between two different versions of the output.
The text was updated successfully, but these errors were encountered: