@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
80 lines • 2.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_Version = exports._decode_Version = exports.v3 = exports.Version_v3 = exports.v2 = exports.Version_v2 = exports.v1 = exports.Version_v1 = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION Version */
/* START_OF_SYMBOL_DEFINITION Version_v1 */
/**
* @summary Version_v1
* @constant
* @type {number}
*/
exports.Version_v1 = 0; /* LONG_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION Version_v1 */
/* START_OF_SYMBOL_DEFINITION v1 */
/**
* @summary Version_v1
* @constant
* @type {number}
*/
exports.v1 = exports.Version_v1; /* SHORT_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION v1 */
/* START_OF_SYMBOL_DEFINITION Version_v2 */
/**
* @summary Version_v2
* @constant
* @type {number}
*/
exports.Version_v2 = 1; /* LONG_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION Version_v2 */
/* START_OF_SYMBOL_DEFINITION v2 */
/**
* @summary Version_v2
* @constant
* @type {number}
*/
exports.v2 = exports.Version_v2; /* SHORT_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION v2 */
/* START_OF_SYMBOL_DEFINITION Version_v3 */
/**
* @summary Version_v3
* @constant
* @type {number}
*/
exports.Version_v3 = 2; /* LONG_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION Version_v3 */
/* START_OF_SYMBOL_DEFINITION v3 */
/**
* @summary Version_v3
* @constant
* @type {number}
*/
exports.v3 = exports.Version_v3; /* SHORT_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION v3 */
/* START_OF_SYMBOL_DEFINITION _decode_Version */
/**
* @summary Decodes an ASN.1 element into a(n) Version
* @function
* @param {_Element} el The element being decoded.
* @returns {Version} The decoded data structure.
*/
function _decode_Version(el) {
return $._decodeInteger(el);
}
exports._decode_Version = _decode_Version;
/* END_OF_SYMBOL_DEFINITION _decode_Version */
/* START_OF_SYMBOL_DEFINITION _encode_Version */
/**
* @summary Encodes a(n) 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 Version, encoded as an ASN.1 Element.
*/
function _encode_Version(value, elGetter) {
return $._encodeInteger(value, elGetter);
}
exports._encode_Version = _encode_Version;
/* END_OF_SYMBOL_DEFINITION _encode_Version */
/* eslint-enable */
//# sourceMappingURL=Version.ta.js.map