import { ASN1Element as _Element, INTEGER, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "../AuthenticationFramework/AlgorithmIdentifier.ta.mjs"; import { Conf_Alg } from "../SpkmGssTokens/Conf-Alg.ta.mjs"; import { Random_Integer } from "../SpkmGssTokens/Random-Integer.ta.mjs"; import { SeqNum } from "../SpkmGssTokens/SeqNum.ta.mjs"; /** * @summary Wrap_Header * @description * * ### ASN.1 Definition: * * ```asn1 * Wrap-Header ::= SEQUENCE { * tok-id INTEGER(513), -- shall contain 0201 (hex) * context-id Random-Integer, * int-alg [0] AlgorithmIdentifier{{SupportedAlgorithms}} OPTIONAL, * conf-alg [1] Conf-Alg OPTIONAL, * snd-seq [2] SeqNum OPTIONAL * } * ``` * */ export declare class Wrap_Header { /** * @summary `tok_id`. * @public * @readonly */ readonly tok_id: INTEGER; /** * @summary `context_id`. * @public * @readonly */ readonly context_id: Random_Integer; /** * @summary `int_alg`. * @public * @readonly */ readonly int_alg?: OPTIONAL; /** * @summary `conf_alg`. * @public * @readonly */ readonly conf_alg?: OPTIONAL; /** * @summary `snd_seq`. * @public * @readonly */ readonly snd_seq?: OPTIONAL; constructor( /** * @summary `tok_id`. * @public * @readonly */ tok_id: INTEGER, /** * @summary `context_id`. * @public * @readonly */ context_id: Random_Integer, /** * @summary `int_alg`. * @public * @readonly */ int_alg?: OPTIONAL, /** * @summary `conf_alg`. * @public * @readonly */ conf_alg?: OPTIONAL, /** * @summary `snd_seq`. * @public * @readonly */ snd_seq?: OPTIONAL); /** * @summary Restructures an object into a Wrap_Header * @description * * This takes an `object` and converts it to a `Wrap_Header`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Wrap_Header`. * @returns {Wrap_Header} */ static _from_object(_o: { [_K in keyof Wrap_Header]: Wrap_Header[_K]; }): Wrap_Header; } /** * @summary The Leading Root Component Types of Wrap_Header * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_Wrap_Header: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Wrap_Header * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_Wrap_Header: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Wrap_Header * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_Wrap_Header: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Wrap_Header * @function * @param {_Element} el The element being decoded. * @returns {Wrap_Header} The decoded data structure. */ export declare function _decode_Wrap_Header(el: _Element): Wrap_Header; /** * @summary Encodes a(n) Wrap_Header 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 Wrap_Header, encoded as an ASN.1 Element. */ export declare function _encode_Wrap_Header(value: Wrap_Header, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=Wrap-Header.ta.d.mts.map