UNPKG

@wildboar/pki-stub

Version:
29 lines (28 loc) 1.05 kB
import { ASN1Element as _Element, PrintableString } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary TerminalIdentifier * @description * * ### ASN.1 Definition: * * ```asn1 * TerminalIdentifier ::= PrintableString(SIZE (1..ub-terminal-id-length)) * ``` */ export declare type TerminalIdentifier = PrintableString; /** * @summary Decodes an ASN.1 element into a(n) TerminalIdentifier * @function * @param {_Element} el The element being decoded. * @returns {TerminalIdentifier} The decoded data structure. */ export declare function _decode_TerminalIdentifier(el: _Element): string; /** * @summary Encodes a(n) TerminalIdentifier into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The TerminalIdentifier, encoded as an ASN.1 Element. */ export declare function _encode_TerminalIdentifier(value: TerminalIdentifier, elGetter: $.ASN1Encoder<TerminalIdentifier>): _Element;