@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
31 lines (30 loc) • 1.82 kB
TypeScript
import { ASN1Element as _Element, NULL } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { CommonCertificateAttributes } from "../PKCS-15/CommonCertificateAttributes.ta";
import { PKCS15Object } from "../PKCS-15/PKCS15Object.ta";
export { CommonCertificateAttributes, _decode_CommonCertificateAttributes, _encode_CommonCertificateAttributes, } from "../PKCS-15/CommonCertificateAttributes.ta";
export { PKCS15Object, _get_decoder_for_PKCS15Object, _get_encoder_for_PKCS15Object, } from "../PKCS-15/PKCS15Object.ta";
/**
* @summary CertificateObject
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* CertificateObject {CertAttributes} ::= PKCS15Object { CommonCertificateAttributes, NULL, CertAttributes}
* ```
*/
export declare 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>): (el: _Element) => PKCS15Object<CommonCertificateAttributes, null, 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>): (value: PKCS15Object<CommonCertificateAttributes, null, CertAttributes>, elGetter: $.ASN1Encoder<PKCS15Object<CommonCertificateAttributes, null, CertAttributes>>) => _Element;