UNPKG

@wildboar/pki-stub

Version:
30 lines 995 B
import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { Certificate } from "../PKI-Stub/Certificate.ta.mjs"; /** * @summary PkiPath * @description * * ### ASN.1 Definition: * * ```asn1 * PkiPath ::= SEQUENCE SIZE (1..MAX) OF Certificate * ``` */ export type PkiPath = Certificate[]; /** * @summary Decodes an ASN.1 element into a(n) PkiPath * @function * @param {_Element} el The element being decoded. * @returns {PkiPath} The decoded data structure. */ export declare function _decode_PkiPath(el: _Element): PkiPath; /** * @summary Encodes a(n) PkiPath into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The PkiPath, encoded as an ASN.1 Element. */ export declare function _encode_PkiPath(value: PkiPath, elGetter: $.ASN1Encoder<PkiPath>): _Element; //# sourceMappingURL=PkiPath.ta.d.mts.map