UNPKG

@wildboar/pkcs

Version:
96 lines (95 loc) 2.21 kB
import { ASN1Element as _Element, ENUMERATED } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; export declare enum _enum_for_PinType { bcd = 0, ascii_numeric = 1, utf8 = 2, half_nibble_bcd = 3, iso9564_1 = 3 } /** * @summary PinType * @description * * ### ASN.1 Definition: * * ```asn1 * PinType ::= ENUMERATED {bcd, ascii-numeric, utf8, ..., half-nibble-bcd, iso9564-1} * ```@enum {number} */ export declare type PinType = _enum_for_PinType | ENUMERATED; /** * @summary PinType_bcd * @constant * @type {number} */ export declare const PinType_bcd: PinType; /** * @summary bcd * @constant * @type {number} */ export declare const bcd: PinType; /** * @summary PinType_ascii_numeric * @constant * @type {number} */ export declare const PinType_ascii_numeric: PinType; /** * @summary ascii_numeric * @constant * @type {number} */ export declare const ascii_numeric: PinType; /** * @summary PinType_utf8 * @constant * @type {number} */ export declare const PinType_utf8: PinType; /** * @summary utf8 * @constant * @type {number} */ export declare const utf8: PinType; /** * @summary PinType_half_nibble_bcd * @constant * @type {number} */ export declare const PinType_half_nibble_bcd: PinType; /** * @summary half_nibble_bcd * @constant * @type {number} */ export declare const half_nibble_bcd: PinType; /** * @summary PinType_iso9564_1 * @constant * @type {number} */ export declare const PinType_iso9564_1: PinType; /** * @summary iso9564_1 * @constant * @type {number} */ export declare const iso9564_1: PinType; /** * @summary Decodes an ASN.1 element into a(n) PinType * @function * @param {_Element} el The element being decoded. * @returns {PinType} The decoded data structure. */ export declare function _decode_PinType(el: _Element): number; /** * @summary Encodes a(n) PinType 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 PinType, encoded as an ASN.1 Element. */ export declare function _encode_PinType(value: PinType, elGetter: $.ASN1Encoder<PinType>): _Element;