Skip to content

DerBitString ​

DerBitString ​

A BIT STRING payload and the number of unused trailing bits in its final byte.

ts
interface DerBitString {
	readonly bytes: Uint8Array;
	readonly unusedBits: number;
	readonly nonZeroPadding: boolean;
}

Properties

  • readonly bytes: Uint8Array — Payload bytes, excluding the leading unused-bit count octet.
  • readonly unusedBits: number — Unused trailing bits in the final byte, 0 through 7.
  • readonly nonZeroPadding: boolean — true when the original encoding had non-zero padding bits (DER violation).

Released under the MIT License.