Skip to content

encodeKeyUsage ​

encodeKeyUsage ​

DER-encode a Key Usage BIT STRING from an array of KeyUsage flags.

ts
function encodeKeyUsage(
	usages: readonly KeyUsage[],
): Uint8Array

Parameters

  • usages: readonly KeyUsage[] — Flags to set in the bit string.

Released under the MIT License.