@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
30 lines (29 loc) • 918 B
JavaScript
import * as $ from "@wildboar/asn1/functional";
/**
* @summary AttCertVersion_v2
* @constant
* @type {number}
*/
export const AttCertVersion_v2 = 1; /* LONG_NAMED_INTEGER_VALUE */
/**
* @summary AttCertVersion_v2
* @constant
* @type {number}
*/
export const v2 = AttCertVersion_v2; /* SHORT_NAMED_INTEGER_VALUE */
/**
* @summary Decodes an ASN.1 element into a(n) AttCertVersion
* @function
* @param {_Element} el The element being decoded.
* @returns {AttCertVersion} The decoded data structure.
*/
export const _decode_AttCertVersion = $._decodeInteger;
/**
* @summary Encodes a(n) AttCertVersion 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 AttCertVersion, encoded as an ASN.1 Element.
*/
export const _encode_AttCertVersion = $._encodeInteger;
/* eslint-enable */