hOpenPGP-3.6.1: native Haskell implementation of OpenPGP (RFC9580)
Safe HaskellNone
LanguageHaskell2010

Codec.Encryption.OpenPGP.Compression

Synopsis

Documentation

decompressPkt :: Pkt -> Either CompressionError [Pkt] Source #

Decompress an OpenPGP Compressed Data packet, classifying structural failures as 'CompressionErrorReason. Non-Compressed-Data packets are returned unchanged in Right [p]. Corrupt compressed streams may still throw IOException from the underlying decompression library.