UNPKG

@wildboar/pc

Version:

Trusted Computing Group Platform Certificate ASN.1 data structures in TypeScript

128 lines 4.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_StrengthOfFunction = exports._decode_StrengthOfFunction = exports.high = exports.StrengthOfFunction_high = exports.medium = exports.StrengthOfFunction_medium = exports.basic = exports.StrengthOfFunction_basic = exports.StrengthOfFunction = exports._enum_for_StrengthOfFunction = void 0; const $ = require("asn1-ts/dist/node/functional"); /* START_OF_SYMBOL_DEFINITION _enum_for_StrengthOfFunction */ /** * @summary StrengthOfFunction * @description * * ### ASN.1 Definition: * * ```asn1 * StrengthOfFunction ::= ENUMERATED { * basic (0), * medium (1), * high (2) } * ```@enum {number} */ var _enum_for_StrengthOfFunction; (function (_enum_for_StrengthOfFunction) { _enum_for_StrengthOfFunction[_enum_for_StrengthOfFunction["basic"] = 0] = "basic"; _enum_for_StrengthOfFunction[_enum_for_StrengthOfFunction["medium"] = 1] = "medium"; _enum_for_StrengthOfFunction[_enum_for_StrengthOfFunction["high"] = 2] = "high"; })(_enum_for_StrengthOfFunction = exports._enum_for_StrengthOfFunction || (exports._enum_for_StrengthOfFunction = {})); /* END_OF_SYMBOL_DEFINITION StrengthOfFunction */ /* START_OF_SYMBOL_DEFINITION StrengthOfFunction */ /** * @summary StrengthOfFunction * @description * * ### ASN.1 Definition: * * ```asn1 * StrengthOfFunction ::= ENUMERATED { * basic (0), * medium (1), * high (2) } * ```@enum {number} */ exports.StrengthOfFunction = _enum_for_StrengthOfFunction; /* END_OF_SYMBOL_DEFINITION StrengthOfFunction */ /* START_OF_SYMBOL_DEFINITION StrengthOfFunction_basic */ /** * @summary StrengthOfFunction_basic * @constant * @type {number} */ exports.StrengthOfFunction_basic = exports.StrengthOfFunction.basic; /* LONG_NAMED_ENUMERATED_VALUE */ /* END_OF_SYMBOL_DEFINITION StrengthOfFunction_basic */ /* START_OF_SYMBOL_DEFINITION basic */ /** * @summary basic * @constant * @type {number} */ exports.basic = exports.StrengthOfFunction.basic; /* SHORT_NAMED_ENUMERATED_VALUE */ /* END_OF_SYMBOL_DEFINITION basic */ /* START_OF_SYMBOL_DEFINITION StrengthOfFunction_medium */ /** * @summary StrengthOfFunction_medium * @constant * @type {number} */ exports.StrengthOfFunction_medium = exports.StrengthOfFunction.medium; /* LONG_NAMED_ENUMERATED_VALUE */ /* END_OF_SYMBOL_DEFINITION StrengthOfFunction_medium */ /* START_OF_SYMBOL_DEFINITION medium */ /** * @summary medium * @constant * @type {number} */ exports.medium = exports.StrengthOfFunction.medium; /* SHORT_NAMED_ENUMERATED_VALUE */ /* END_OF_SYMBOL_DEFINITION medium */ /* START_OF_SYMBOL_DEFINITION StrengthOfFunction_high */ /** * @summary StrengthOfFunction_high * @constant * @type {number} */ exports.StrengthOfFunction_high = exports.StrengthOfFunction.high; /* LONG_NAMED_ENUMERATED_VALUE */ /* END_OF_SYMBOL_DEFINITION StrengthOfFunction_high */ /* START_OF_SYMBOL_DEFINITION high */ /** * @summary high * @constant * @type {number} */ exports.high = exports.StrengthOfFunction.high; /* SHORT_NAMED_ENUMERATED_VALUE */ /* END_OF_SYMBOL_DEFINITION high */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_StrengthOfFunction */ let _cached_decoder_for_StrengthOfFunction = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_StrengthOfFunction */ /* START_OF_SYMBOL_DEFINITION _decode_StrengthOfFunction */ /** * @summary Decodes an ASN.1 element into a(n) StrengthOfFunction * @function * @param {_Element} el The element being decoded. * @returns {StrengthOfFunction} The decoded data structure. */ function _decode_StrengthOfFunction(el) { if (!_cached_decoder_for_StrengthOfFunction) { _cached_decoder_for_StrengthOfFunction = $._decodeEnumerated; } return _cached_decoder_for_StrengthOfFunction(el); } exports._decode_StrengthOfFunction = _decode_StrengthOfFunction; /* END_OF_SYMBOL_DEFINITION _decode_StrengthOfFunction */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_StrengthOfFunction */ let _cached_encoder_for_StrengthOfFunction = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_StrengthOfFunction */ /* START_OF_SYMBOL_DEFINITION _encode_StrengthOfFunction */ /** * @summary Encodes a(n) StrengthOfFunction 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 StrengthOfFunction, encoded as an ASN.1 Element. */ function _encode_StrengthOfFunction(value, elGetter) { if (!_cached_encoder_for_StrengthOfFunction) { _cached_encoder_for_StrengthOfFunction = $._encodeEnumerated; } return _cached_encoder_for_StrengthOfFunction(value, elGetter); } exports._encode_StrengthOfFunction = _encode_StrengthOfFunction; /* END_OF_SYMBOL_DEFINITION _encode_StrengthOfFunction */ /* eslint-enable */ //# sourceMappingURL=StrengthOfFunction.ta.js.map