Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(80)

Unified Diff: openpgp/packet/packet.go

Issue 12685044: code review 12685044: openpgp: Implement compressed data packets & add suppor...
Patch Set: diff -r 1747226a2f43 https://code.google.com/p/go.crypto Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: openpgp/packet/packet.go
===================================================================
--- a/openpgp/packet/packet.go
+++ b/openpgp/packet/packet.go
@@ -488,3 +488,14 @@
func writeBig(w io.Writer, i *big.Int) error {
return writeMPI(w, uint16(i.BitLen()), i.Bytes())
}
+
+// CompressionAlgo Represents the different compression algorithms
+// supported by OpenPGP (except for BZIP2, which is not currently
+// supported). See Section 9.3 of RFC 4880.
+type CompressionAlgo uint8
+
+const (
+ CompressionNone CompressionAlgo = 0
+ CompressionZIP CompressionAlgo = 1
+ CompressionZLIB CompressionAlgo = 2
+)

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b