UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 1.22 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { CertificateChoices } from "../CryptographicMessageSyntax/CertificateChoices.ta"; export { CertificateChoices, _decode_CertificateChoices, _encode_CertificateChoices, } from "../CryptographicMessageSyntax/CertificateChoices.ta"; /** * @summary CertificateSet * @description * * ### ASN.1 Definition: * * ```asn1 * CertificateSet ::= SET OF CertificateChoices * ``` */ export declare type CertificateSet = CertificateChoices[]; /** * @summary Decodes an ASN.1 element into a(n) CertificateSet * @function * @param {_Element} el The element being decoded. * @returns {CertificateSet} The decoded data structure. */ export declare function _decode_CertificateSet(el: _Element): CertificateSet; /** * @summary Encodes a(n) CertificateSet 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 CertificateSet, encoded as an ASN.1 Element. */ export declare function _encode_CertificateSet(value: CertificateSet, elGetter: $.ASN1Encoder<CertificateSet>): _Element;