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

Org.BouncyCastle.Bcpg.ArmoredInputStream

Reader for Base64 armored objects - read the headers and then start returning bytes when the data is reached.
public sealed class Builder

public ArmoredInputStream(Stream input)

Create a stream for reading a PGP armored message, parsing up to a header and then reading the data that follows.

public ArmoredInputStream(Stream input, bool hasHeaders)

Create an armored input stream which will assume the data starts straight away, or parse for headers first depending on the value of hasHeaders.

public static Builder Build()

public string GetArmorHeaderLine()

Return the armor header line (if there is one).

public string[] GetArmorHeaders()

Return the armor headers (the lines after the armor header line).

public bool IsClearText()

public bool IsEndOfStream()

public virtual void SetDetectMissingCrc(bool detectMissing)

Change how the stream should react if it encounters a missing CRC checksum.