@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
29 lines (28 loc) • 969 B
TypeScript
import { ASN1Element as _Element, NumericString } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary X121Address
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* X121Address ::= NumericString(SIZE (1..ub-x121-address-length))
* ```
*/
export declare type X121Address = NumericString;
/**
* @summary Decodes an ASN.1 element into a(n) X121Address
* @function
* @param {_Element} el The element being decoded.
* @returns {X121Address} The decoded data structure.
*/
export declare function _decode_X121Address(el: _Element): string;
/**
* @summary Encodes a(n) X121Address 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 X121Address, encoded as an ASN.1 Element.
*/
export declare function _encode_X121Address(value: X121Address, elGetter: $.ASN1Encoder<X121Address>): _Element;