UNPKG

@wildboar/pkcs

Version:
33 lines (32 loc) 1.34 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { CertificateType } from "../PKCS-15/CertificateType.ta"; import { PathOrObjects } from "../PKCS-15/PathOrObjects.ta"; export { CertificateType, _decode_CertificateType, _encode_CertificateType, } from "../PKCS-15/CertificateType.ta"; export { PathOrObjects, _get_decoder_for_PathOrObjects, _get_encoder_for_PathOrObjects, } from "../PKCS-15/PathOrObjects.ta"; /** * @summary Certificates * @description * * ### ASN.1 Definition: * * ```asn1 * Certificates ::= PathOrObjects {CertificateType} * ``` */ export declare type Certificates = PathOrObjects<CertificateType>; /** * @summary Decodes an ASN.1 element into a(n) Certificates * @function * @param {_Element} el The element being decoded. * @returns {Certificates} The decoded data structure. */ export declare function _decode_Certificates(el: _Element): Certificates; /** * @summary Encodes a(n) Certificates 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 Certificates, encoded as an ASN.1 Element. */ export declare function _encode_Certificates(value: Certificates, elGetter: $.ASN1Encoder<Certificates>): _Element;