diff --git a/openpgp/key_generation.go b/openpgp/key_generation.go index 43dfe55a..a40e45be 100644 --- a/openpgp/key_generation.go +++ b/openpgp/key_generation.go @@ -122,10 +122,6 @@ func writeKeyProperties(selfSignature *packet.Signature, creationTime time.Time, selfSignature.PreferredCompression = []uint8{uint8(packet.CompressionNone)} if config.Compression() != packet.CompressionNone { selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(config.Compression())) - if config.Compression() == packet.CompressionZLIB { - // If zlib is supported also add zip - selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(packet.CompressionZIP)) - } } // And for DefaultMode. diff --git a/openpgp/v2/key_generation.go b/openpgp/v2/key_generation.go index b8d5ae37..5537d4f8 100644 --- a/openpgp/v2/key_generation.go +++ b/openpgp/v2/key_generation.go @@ -193,10 +193,6 @@ func writeKeyProperties(selfSignature *packet.Signature, selectedKeyProperties * selfSignature.PreferredCompression = []uint8{uint8(packet.CompressionNone)} if selectedKeyProperties.compression != packet.CompressionNone { selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(selectedKeyProperties.compression)) - if selectedKeyProperties.compression == packet.CompressionZLIB { - // If zlib is supported also add zip - selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(packet.CompressionZIP)) - } } // And for DefaultMode.