UNPKG

@wildboar/pkcs

Version:
124 lines 4.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_CMSVersion = exports._decode_CMSVersion = exports.v4 = exports.CMSVersion_v4 = exports.v3 = exports.CMSVersion_v3 = exports.v2 = exports.CMSVersion_v2 = exports.v1 = exports.CMSVersion_v1 = exports.v0 = exports.CMSVersion_v0 = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION CMSVersion */ /* START_OF_SYMBOL_DEFINITION CMSVersion_v0 */ /** * @summary CMSVersion_v0 * @constant * @type {number} */ exports.CMSVersion_v0 = 0; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION CMSVersion_v0 */ /* START_OF_SYMBOL_DEFINITION v0 */ /** * @summary CMSVersion_v0 * @constant * @type {number} */ exports.v0 = exports.CMSVersion_v0; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION v0 */ /* START_OF_SYMBOL_DEFINITION CMSVersion_v1 */ /** * @summary CMSVersion_v1 * @constant * @type {number} */ exports.CMSVersion_v1 = 1; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION CMSVersion_v1 */ /* START_OF_SYMBOL_DEFINITION v1 */ /** * @summary CMSVersion_v1 * @constant * @type {number} */ exports.v1 = exports.CMSVersion_v1; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION v1 */ /* START_OF_SYMBOL_DEFINITION CMSVersion_v2 */ /** * @summary CMSVersion_v2 * @constant * @type {number} */ exports.CMSVersion_v2 = 2; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION CMSVersion_v2 */ /* START_OF_SYMBOL_DEFINITION v2 */ /** * @summary CMSVersion_v2 * @constant * @type {number} */ exports.v2 = exports.CMSVersion_v2; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION v2 */ /* START_OF_SYMBOL_DEFINITION CMSVersion_v3 */ /** * @summary CMSVersion_v3 * @constant * @type {number} */ exports.CMSVersion_v3 = 3; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION CMSVersion_v3 */ /* START_OF_SYMBOL_DEFINITION v3 */ /** * @summary CMSVersion_v3 * @constant * @type {number} */ exports.v3 = exports.CMSVersion_v3; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION v3 */ /* START_OF_SYMBOL_DEFINITION CMSVersion_v4 */ /** * @summary CMSVersion_v4 * @constant * @type {number} */ exports.CMSVersion_v4 = 4; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION CMSVersion_v4 */ /* START_OF_SYMBOL_DEFINITION v4 */ /** * @summary CMSVersion_v4 * @constant * @type {number} */ exports.v4 = exports.CMSVersion_v4; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION v4 */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_CMSVersion */ let _cached_decoder_for_CMSVersion = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_CMSVersion */ /* START_OF_SYMBOL_DEFINITION _decode_CMSVersion */ /** * @summary Decodes an ASN.1 element into a(n) CMSVersion * @function * @param {_Element} el The element being decoded. * @returns {CMSVersion} The decoded data structure. */ function _decode_CMSVersion(el) { if (!_cached_decoder_for_CMSVersion) { _cached_decoder_for_CMSVersion = $._decodeInteger; } return _cached_decoder_for_CMSVersion(el); } exports._decode_CMSVersion = _decode_CMSVersion; /* END_OF_SYMBOL_DEFINITION _decode_CMSVersion */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_CMSVersion */ let _cached_encoder_for_CMSVersion = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_CMSVersion */ /* START_OF_SYMBOL_DEFINITION _encode_CMSVersion */ /** * @summary Encodes a(n) CMSVersion 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 CMSVersion, encoded as an ASN.1 Element. */ function _encode_CMSVersion(value, elGetter) { if (!_cached_encoder_for_CMSVersion) { _cached_encoder_for_CMSVersion = $._encodeInteger; } return _cached_encoder_for_CMSVersion(value, elGetter); } exports._encode_CMSVersion = _encode_CMSVersion; /* END_OF_SYMBOL_DEFINITION _encode_CMSVersion */ /* eslint-enable */ //# sourceMappingURL=CMSVersion.ta.js.map