pkcs-ts
Version:
PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More
15 lines • 851 B
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { AttributeCertificate } from "x500-ts/dist/node/modules/AttributeCertificateDefinitions/AttributeCertificate.ta";
import { Certificate } from "x500-ts/dist/node/modules/AuthenticationFramework/Certificate.ta";
import { ExtendedCertificate } from "../PKCS7/ExtendedCertificate.ta";
export declare type CertificateChoice = {
certificate: Certificate;
} | {
extendedCertificate: ExtendedCertificate;
} | {
attributeCertificate: AttributeCertificate;
};
export declare function _decode_CertificateChoice(el: _Element): CertificateChoice;
export declare function _encode_CertificateChoice(value: CertificateChoice, elGetter: $.ASN1Encoder<CertificateChoice>): _Element;
//# sourceMappingURL=CertificateChoice.ta.d.ts.map