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

GeneralPkiMessage

public class GeneralPkiMessage
public virtual PkiBody Body { get; }

public virtual bool HasProtection { get; }

Return true if this message has protection bits on it. A return value of true indicates the message can be used to construct a ProtectedPKIMessage.

public virtual PkiHeader Header { get; }

public GeneralPkiMessage(PkiMessage pkiMessage)

Wrap a PKIMessage ASN.1 structure.

public GeneralPkiMessage(byte[] encoding)

Create a PKIMessage from the passed in bytes.

public virtual PkiMessage ToAsn1Structure()