UNPKG

@wildboar/pkcs

Version:
32 lines (31 loc) 1.23 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { SIGNED } from "@wildboar/x500/src/lib/modules/AuthenticationFramework/SIGNED.ta"; import { ExtendedCertificateInfo } from "../PKCS7/ExtendedCertificateInfo.ta"; /** * @summary ExtendedCertificate * @description * * ### ASN.1 Definition: * * ```asn1 * ExtendedCertificate ::= * SIGNED{ExtendedCertificateInfo} * ``` */ export declare type ExtendedCertificate = SIGNED<ExtendedCertificateInfo>; /** * @summary Decodes an ASN.1 element into a(n) ExtendedCertificate * @function * @param {_Element} el The element being decoded. * @returns {ExtendedCertificate} The decoded data structure. */ export declare function _decode_ExtendedCertificate(el: _Element): ExtendedCertificate; /** * @summary Encodes a(n) ExtendedCertificate 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 ExtendedCertificate, encoded as an ASN.1 Element. */ export declare function _encode_ExtendedCertificate(value: ExtendedCertificate, elGetter: $.ASN1Encoder<ExtendedCertificate>): _Element;