UNPKG

@wildboar/pki-stub

Version:
85 lines (84 loc) 3.25 kB
import * as $ from "@wildboar/asn1/functional"; /** * @summary ObjectDigestInfo_digestedObjectType * @description * * ### ASN.1 Definition: * * ```asn1 * ObjectDigestInfo-digestedObjectType ::= ENUMERATED { -- REMOVED_FROM_UNNESTING -- } * ``` * * @enum {number} */ export var _enum_for_ObjectDigestInfo_digestedObjectType; (function (_enum_for_ObjectDigestInfo_digestedObjectType) { _enum_for_ObjectDigestInfo_digestedObjectType[_enum_for_ObjectDigestInfo_digestedObjectType["publicKey"] = 0] = "publicKey"; _enum_for_ObjectDigestInfo_digestedObjectType[_enum_for_ObjectDigestInfo_digestedObjectType["publicKeyCert"] = 1] = "publicKeyCert"; _enum_for_ObjectDigestInfo_digestedObjectType[_enum_for_ObjectDigestInfo_digestedObjectType["otherObjectTypes"] = 2] = "otherObjectTypes"; })(_enum_for_ObjectDigestInfo_digestedObjectType || (_enum_for_ObjectDigestInfo_digestedObjectType = {})); /** * @summary ObjectDigestInfo_digestedObjectType * @description * * ### ASN.1 Definition: * * ```asn1 * ObjectDigestInfo-digestedObjectType ::= ENUMERATED { -- REMOVED_FROM_UNNESTING -- } * ``` * * @enum {number} */ export const ObjectDigestInfo_digestedObjectType = _enum_for_ObjectDigestInfo_digestedObjectType; /** * @summary ObjectDigestInfo_digestedObjectType_publicKey * @constant * @type {number} */ export const ObjectDigestInfo_digestedObjectType_publicKey = ObjectDigestInfo_digestedObjectType.publicKey; /* LONG_NAMED_ENUMERATED_VALUE */ /** * @summary publicKey * @constant * @type {number} */ export const publicKey = ObjectDigestInfo_digestedObjectType.publicKey; /* SHORT_NAMED_ENUMERATED_VALUE */ /** * @summary ObjectDigestInfo_digestedObjectType_publicKeyCert * @constant * @type {number} */ export const ObjectDigestInfo_digestedObjectType_publicKeyCert = ObjectDigestInfo_digestedObjectType.publicKeyCert; /* LONG_NAMED_ENUMERATED_VALUE */ /** * @summary publicKeyCert * @constant * @type {number} */ export const publicKeyCert = ObjectDigestInfo_digestedObjectType.publicKeyCert; /* SHORT_NAMED_ENUMERATED_VALUE */ /** * @summary ObjectDigestInfo_digestedObjectType_otherObjectTypes * @constant * @type {number} */ export const ObjectDigestInfo_digestedObjectType_otherObjectTypes = ObjectDigestInfo_digestedObjectType.otherObjectTypes; /* LONG_NAMED_ENUMERATED_VALUE */ /** * @summary otherObjectTypes * @constant * @type {number} */ export const otherObjectTypes = ObjectDigestInfo_digestedObjectType.otherObjectTypes; /* SHORT_NAMED_ENUMERATED_VALUE */ /** * @summary Decodes an ASN.1 element into a(n) ObjectDigestInfo_digestedObjectType * @function * @param {_Element} el The element being decoded. * @returns {ObjectDigestInfo_digestedObjectType} The decoded data structure. */ export const _decode_ObjectDigestInfo_digestedObjectType = $._decodeEnumerated; /** * @summary Encodes a(n) ObjectDigestInfo_digestedObjectType 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 ObjectDigestInfo_digestedObjectType, encoded as an ASN.1 Element. */ export const _encode_ObjectDigestInfo_digestedObjectType = $._encodeEnumerated; /* eslint-enable */