UNPKG

@wildboar/pkcs

Version:
41 lines (40 loc) 1.5 kB
import { ASN1Element as _Element, INTEGER } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary CertificationRequestInfo_version * @description * * ### ASN.1 Definition: * * ```asn1 * CertificationRequestInfo-version ::= INTEGER { -- REMOVED_FROM_UNNESTING -- } * ``` */ export declare type CertificationRequestInfo_version = INTEGER; /** * @summary CertificationRequestInfo_version_v1 * @constant * @type {number} */ export declare const CertificationRequestInfo_version_v1: CertificationRequestInfo_version; /** * @summary CertificationRequestInfo_version_v1 * @constant * @type {number} */ export declare const v1: CertificationRequestInfo_version; /** * @summary Decodes an ASN.1 element into a(n) CertificationRequestInfo_version * @function * @param {_Element} el The element being decoded. * @returns {CertificationRequestInfo_version} The decoded data structure. */ export declare function _decode_CertificationRequestInfo_version(el: _Element): INTEGER; /** * @summary Encodes a(n) CertificationRequestInfo_version 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 CertificationRequestInfo_version, encoded as an ASN.1 Element. */ export declare function _encode_CertificationRequestInfo_version(value: CertificationRequestInfo_version, elGetter: $.ASN1Encoder<CertificationRequestInfo_version>): _Element;