<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Bcpg.OpenPgp.PgpCompressedData

public class PgpCompressedData : PgpObject

The algorithm used for compression

Return an input stream that decompresses and returns data in the compressed packet.

public Stream GetDataStream(long limit)

Return an input stream that decompresses and returns data in the compressed packet, failing with a StreamOverflowException (an IOException) once more than limit decompressed bytes have been read. This caps the "decompression bomb" amplification of an untrusted compressed packet for callers that buffer the decompressed output.

Get the raw input stream contained in the object.