@wildboar/pc
Version:
Trusted Computing Group Platform Certificate ASN.1 data structures in TypeScript
93 lines (92 loc) • 2.36 kB
JavaScript
import * as $ from "@wildboar/asn1/functional";
/**
* @summary SecurityLevel
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* SecurityLevel ::= ENUMERATED {
* level1 (1),
* level2 (2),
* level3 (3),
* level4 (4) }
* ```
*
* @enum {number}
*/
export var _enum_for_SecurityLevel;
(function (_enum_for_SecurityLevel) {
_enum_for_SecurityLevel[_enum_for_SecurityLevel["level1"] = 1] = "level1";
_enum_for_SecurityLevel[_enum_for_SecurityLevel["level2"] = 2] = "level2";
_enum_for_SecurityLevel[_enum_for_SecurityLevel["level3"] = 3] = "level3";
_enum_for_SecurityLevel[_enum_for_SecurityLevel["level4"] = 4] = "level4";
})(_enum_for_SecurityLevel || (_enum_for_SecurityLevel = {}));
/**
* @summary SecurityLevel
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* SecurityLevel ::= ENUMERATED {
* level1 (1),
* level2 (2),
* level3 (3),
* level4 (4) }
* ```
*
* @enum {number}
*/
export const SecurityLevel = _enum_for_SecurityLevel;
/**
* @summary SecurityLevel_level1
* @constant
* @type {number}
*/
export const SecurityLevel_level1 = SecurityLevel.level1; /* LONG_NAMED_ENUMERATED_VALUE */
/**
* @summary level1
* @constant
* @type {number}
*/
export const level1 = SecurityLevel.level1; /* SHORT_NAMED_ENUMERATED_VALUE */
/**
* @summary SecurityLevel_level2
* @constant
* @type {number}
*/
export const SecurityLevel_level2 = SecurityLevel.level2; /* LONG_NAMED_ENUMERATED_VALUE */
/**
* @summary level2
* @constant
* @type {number}
*/
export const level2 = SecurityLevel.level2; /* SHORT_NAMED_ENUMERATED_VALUE */
/**
* @summary SecurityLevel_level3
* @constant
* @type {number}
*/
export const SecurityLevel_level3 = SecurityLevel.level3; /* LONG_NAMED_ENUMERATED_VALUE */
/**
* @summary level3
* @constant
* @type {number}
*/
export const level3 = SecurityLevel.level3; /* SHORT_NAMED_ENUMERATED_VALUE */
/**
* @summary SecurityLevel_level4
* @constant
* @type {number}
*/
export const SecurityLevel_level4 = SecurityLevel.level4; /* LONG_NAMED_ENUMERATED_VALUE */
/**
* @summary level4
* @constant
* @type {number}
*/
export const level4 = SecurityLevel.level4; /* SHORT_NAMED_ENUMERATED_VALUE */
export const _decode_SecurityLevel = $._decodeEnumerated;
export const _encode_SecurityLevel = $._encodeEnumerated;
/* eslint-enable */