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

Asn1BitStringParser

int PadBits { get; }

Return the number of pad bits, if any, in the final byte, if any, read from GetBitStream.

Return a Stream representing the contents of the BIT STRING. The final byte, if any, may include pad bits. See PadBits.

Return a Stream representing the contents of the BIT STRING, where the content is expected to be octet-aligned (this will be automatically checked during parsing).