Skip to content

decodeDerBooleanOrThrow ​

decodeDerBooleanOrThrow ​

Decodes a BOOLEAN element (tag 0x01).

ts
function decodeDerBooleanOrThrow(
	element: DerElement,
): boolean

Parameters

Throws

  • if element is mis-tagged, or holds anything but 0x00 or 0xff.

Released under the MIT License.