@wildboar/acse
Version:
Association Control Service Element PDUs in TypeScript
48 lines • 1.77 kB
text/typescript
import { BIT_STRING, EXTERNAL, GraphicString, ASN1Element as _Element } from '@wildboar/asn1';
import * as $ from '@wildboar/asn1/functional';
import { Authentication_value_other } from '../ACSE-1/Authentication-value-other.ta.mjs';
/**
* @summary Authentication_value
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* Authentication-value ::= CHOICE {
* charstring [0] IMPLICIT GraphicString,
* bitstring [1] IMPLICIT BIT STRING,
* external [2] IMPLICIT EXTERNAL,
* other
* [3] IMPLICIT SEQUENCE {other-mechanism-name
* MECHANISM-NAME.&id({ObjectSet}),
* other-mechanism-value
* MECHANISM-NAME.&Type
* ({ObjectSet}{@.other-mechanism-name})}
* }
* ```
*/
export type Authentication_value = {
charstring: GraphicString;
} | {
bitstring: BIT_STRING;
} | {
external: EXTERNAL;
} | {
other: Authentication_value_other;
};
/**
* @summary Decodes an ASN.1 element into a(n) Authentication_value
* @function
* @param {_Element} el The element being decoded.
* @returns {Authentication_value} The decoded data structure.
*/
export declare function _decode_Authentication_value(el: _Element): Authentication_value;
/**
* @summary Encodes a(n) Authentication_value 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 Authentication_value, encoded as an ASN.1 Element.
*/
export declare function _encode_Authentication_value(value: Authentication_value, elGetter: $.ASN1Encoder<Authentication_value>): _Element;
//# sourceMappingURL=Authentication-value.ta.d.mts.map