UNPKG

@wildboar/pkcs

Version:
29 lines 1.4 kB
import { NULL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { CommonCertificateAttributes } from "../PKCS-15/CommonCertificateAttributes.ta.mjs"; import { PKCS15Object } from "../PKCS-15/PKCS15Object.ta.mjs"; /** * @summary CertificateObject * @description * * ### ASN.1 Definition: * * ```asn1 * CertificateObject {CertAttributes} ::= PKCS15Object { CommonCertificateAttributes, NULL, CertAttributes} * ``` */ export type CertificateObject<CertAttributes> = PKCS15Object<CommonCertificateAttributes, NULL, CertAttributes>; /** * @summary Returns a function that will decode an ASN.1 element into a(n) CertificateObject * @function * @param {_Element} el The element being decoded. * @returns A function that will decode an ASN.1 element. */ export declare function _get_decoder_for_CertificateObject<CertAttributes>(_decode_CertAttributes: $.ASN1Decoder<CertAttributes>): $.ASN1Decoder<CertificateObject<CertAttributes>>; /** * @summary Returns a function that will encode a(n) CertificateObject into an ASN.1 Element. * @function * @returns A function that will encode a(n) CertificateObject as an ASN.1 element. */ export declare function _get_encoder_for_CertificateObject<CertAttributes>(_encode_CertAttributes: $.ASN1Encoder<CertAttributes>): $.ASN1Encoder<CertificateObject<CertAttributes>>; //# sourceMappingURL=CertificateObject.ta.d.mts.map