DerReader.readBitString

ubyte[] readBitString(out ubyte unusedBits)

Reads a DER BIT STRING and returns its data bytes.

Parameters

unusedBitsSet to the number of unused trailing bits.

Returns

The bit-string data bytes (excluding the unused-bits byte).

Throws

CryptoException if the next TLV is not a BIT STRING or

has empty content.