UNPKG

pkcs-ts

Version:

PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More

40 lines 2.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_PinType = exports._decode_PinType = exports.iso9564_1 = exports.PinType_iso9564_1 = exports.half_nibble_bcd = exports.PinType_half_nibble_bcd = exports.utf8 = exports.PinType_utf8 = exports.ascii_numeric = exports.PinType_ascii_numeric = exports.bcd = exports.PinType_bcd = exports._enum_for_PinType = void 0; const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional")); var _enum_for_PinType; (function (_enum_for_PinType) { _enum_for_PinType[_enum_for_PinType["bcd"] = 0] = "bcd"; _enum_for_PinType[_enum_for_PinType["ascii_numeric"] = 1] = "ascii_numeric"; _enum_for_PinType[_enum_for_PinType["utf8"] = 2] = "utf8"; _enum_for_PinType[_enum_for_PinType["half_nibble_bcd"] = 3] = "half_nibble_bcd"; _enum_for_PinType[_enum_for_PinType["iso9564_1"] = 3] = "iso9564_1"; })(_enum_for_PinType = exports._enum_for_PinType || (exports._enum_for_PinType = {})); exports.PinType_bcd = 0; exports.bcd = exports.PinType_bcd; exports.PinType_ascii_numeric = 1; exports.ascii_numeric = exports.PinType_ascii_numeric; exports.PinType_utf8 = 2; exports.utf8 = exports.PinType_utf8; exports.PinType_half_nibble_bcd = 3; exports.half_nibble_bcd = exports.PinType_half_nibble_bcd; exports.PinType_iso9564_1 = 3; exports.iso9564_1 = exports.PinType_iso9564_1; let _cached_decoder_for_PinType = null; function _decode_PinType(el) { if (!_cached_decoder_for_PinType) { _cached_decoder_for_PinType = $._decodeEnumerated; } return _cached_decoder_for_PinType(el); } exports._decode_PinType = _decode_PinType; let _cached_encoder_for_PinType = null; function _encode_PinType(value, elGetter) { if (!_cached_encoder_for_PinType) { _cached_encoder_for_PinType = $._encodeEnumerated; } return _cached_encoder_for_PinType(value, elGetter); } exports._encode_PinType = _encode_PinType; //# sourceMappingURL=PinType.ta.js.map