UNPKG

@wildboar/pki-stub

Version:
29 lines (28 loc) 1.03 kB
import { ASN1Element as _Element, PrintableString } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary OrganizationName * @description * * ### ASN.1 Definition: * * ```asn1 * OrganizationName ::= PrintableString(SIZE (1..ub-organization-name-length)) * ``` */ export declare type OrganizationName = PrintableString; /** * @summary Decodes an ASN.1 element into a(n) OrganizationName * @function * @param {_Element} el The element being decoded. * @returns {OrganizationName} The decoded data structure. */ export declare function _decode_OrganizationName(el: _Element): string; /** * @summary Encodes a(n) OrganizationName 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 OrganizationName, encoded as an ASN.1 Element. */ export declare function _encode_OrganizationName(value: OrganizationName, elGetter: $.ASN1Encoder<OrganizationName>): _Element;