@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
31 lines • 1.14 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { CertificateType } from "../PKCS-15/CertificateType.ta.mjs";
import { PathOrObjects } from "../PKCS-15/PathOrObjects.ta.mjs";
/**
* @summary Certificates
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* Certificates ::= PathOrObjects {CertificateType}
* ```
*/
export type Certificates = PathOrObjects<CertificateType>;
/**
* @summary Decodes an ASN.1 element into a(n) Certificates
* @function
* @param {_Element} el The element being decoded.
* @returns {Certificates} The decoded data structure.
*/
export declare function _decode_Certificates(el: _Element): Certificates;
/**
* @summary Encodes a(n) Certificates into an ASN.1 Element.
* @function
* @param value The element being encoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The Certificates, encoded as an ASN.1 Element.
*/
export declare function _encode_Certificates(value: Certificates, elGetter: $.ASN1Encoder<Certificates>): _Element;
//# sourceMappingURL=Certificates.ta.d.mts.map