@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
133 lines • 4.83 kB
JavaScript
;
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 $ = require("asn1-ts/dist/node/functional");
/* START_OF_SYMBOL_DEFINITION _enum_for_PinType */
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 = {}));
/* END_OF_SYMBOL_DEFINITION PinType */
/* START_OF_SYMBOL_DEFINITION PinType_bcd */
/**
* @summary PinType_bcd
* @constant
* @type {number}
*/
exports.PinType_bcd = 0; /* LONG_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION PinType_bcd */
/* START_OF_SYMBOL_DEFINITION bcd */
/**
* @summary bcd
* @constant
* @type {number}
*/
exports.bcd = exports.PinType_bcd; /* SHORT_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION bcd */
/* START_OF_SYMBOL_DEFINITION PinType_ascii_numeric */
/**
* @summary PinType_ascii_numeric
* @constant
* @type {number}
*/
exports.PinType_ascii_numeric = 1; /* LONG_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION PinType_ascii_numeric */
/* START_OF_SYMBOL_DEFINITION ascii_numeric */
/**
* @summary ascii_numeric
* @constant
* @type {number}
*/
exports.ascii_numeric = exports.PinType_ascii_numeric; /* SHORT_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION ascii_numeric */
/* START_OF_SYMBOL_DEFINITION PinType_utf8 */
/**
* @summary PinType_utf8
* @constant
* @type {number}
*/
exports.PinType_utf8 = 2; /* LONG_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION PinType_utf8 */
/* START_OF_SYMBOL_DEFINITION utf8 */
/**
* @summary utf8
* @constant
* @type {number}
*/
exports.utf8 = exports.PinType_utf8; /* SHORT_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION utf8 */
/* START_OF_SYMBOL_DEFINITION PinType_half_nibble_bcd */
/**
* @summary PinType_half_nibble_bcd
* @constant
* @type {number}
*/
exports.PinType_half_nibble_bcd = 3; /* LONG_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION PinType_half_nibble_bcd */
/* START_OF_SYMBOL_DEFINITION half_nibble_bcd */
/**
* @summary half_nibble_bcd
* @constant
* @type {number}
*/
exports.half_nibble_bcd = exports.PinType_half_nibble_bcd; /* SHORT_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION half_nibble_bcd */
/* START_OF_SYMBOL_DEFINITION PinType_iso9564_1 */
/**
* @summary PinType_iso9564_1
* @constant
* @type {number}
*/
exports.PinType_iso9564_1 = 3; /* LONG_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION PinType_iso9564_1 */
/* START_OF_SYMBOL_DEFINITION iso9564_1 */
/**
* @summary iso9564_1
* @constant
* @type {number}
*/
exports.iso9564_1 = exports.PinType_iso9564_1; /* SHORT_NAMED_ENUMERATED_VALUE */
/* END_OF_SYMBOL_DEFINITION iso9564_1 */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_PinType */
let _cached_decoder_for_PinType = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_PinType */
/* START_OF_SYMBOL_DEFINITION _decode_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.
*/
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;
/* END_OF_SYMBOL_DEFINITION _decode_PinType */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_PinType */
let _cached_encoder_for_PinType = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_PinType */
/* START_OF_SYMBOL_DEFINITION _encode_PinType */
/**
* @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.
*/
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;
/* END_OF_SYMBOL_DEFINITION _encode_PinType */
/* eslint-enable */
//# sourceMappingURL=PinType.ta.js.map