Skip to content

derBmpString ​

derBmpString ​

Encodes a DER BMPString (tag 0x1e) as big-endian UTF-16.

ts
function derBmpString(
	value: string,
): Uint8Array

Parameters

  • value: string

Throws

  • on lone surrogates, on U+FFFE and U+FFFF, which X.680 §41.15 leaves out of BMPString, and on code points above the Basic Multilingual Plane.

Released under the MIT License.