UNPKG

@wildboar/pki-stub

Version:
31 lines (30 loc) 992 B
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { SIGNED } from "../PKI-Stub/SIGNED.ta"; import { TBSCertAVL } from "../PKI-Stub/TBSCertAVL.ta"; /** * @summary CertAVL * @description * * ### ASN.1 Definition: * * ```asn1 * CertAVL ::= SIGNED {TBSCertAVL} * ``` */ export declare type CertAVL = SIGNED<TBSCertAVL>; /** * @summary Decodes an ASN.1 element into a(n) CertAVL * @function * @param {_Element} el The element being decoded. * @returns {CertAVL} The decoded data structure. */ export declare function _decode_CertAVL(el: _Element): CertAVL; /** * @summary Encodes a(n) CertAVL 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 CertAVL, encoded as an ASN.1 Element. */ export declare function _encode_CertAVL(value: CertAVL, elGetter: $.ASN1Encoder<CertAVL>): _Element;