UNPKG

@wildboar/pkcs

Version:
63 lines 5.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_PublicKeyOperations = exports._decode_PublicKeyOperations = exports._encode_Operations = exports._decode_Operations = exports.verify_signature = exports.verify_checksum = exports.Operations_verify_signature = exports.Operations_verify_checksum = exports.Operations_hash = exports.Operations_generate_key = exports.Operations_encipher = exports.Operations_decipher = exports.Operations_compute_signature = exports.Operations_compute_checksum = exports.hash = exports.generate_key = exports.encipher = exports.decipher = exports.compute_signature = exports.compute_checksum = void 0; const Operations_ta_1 = require("../PKCS-15/Operations.ta"); var Operations_ta_2 = require("../PKCS-15/Operations.ta"); Object.defineProperty(exports, "compute_checksum", { enumerable: true, get: function () { return Operations_ta_2.compute_checksum; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "compute_signature", { enumerable: true, get: function () { return Operations_ta_2.compute_signature; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "decipher", { enumerable: true, get: function () { return Operations_ta_2.decipher; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "encipher", { enumerable: true, get: function () { return Operations_ta_2.encipher; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "generate_key", { enumerable: true, get: function () { return Operations_ta_2.generate_key; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "hash", { enumerable: true, get: function () { return Operations_ta_2.hash; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "Operations_compute_checksum", { enumerable: true, get: function () { return Operations_ta_2.Operations_compute_checksum; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_compute_signature", { enumerable: true, get: function () { return Operations_ta_2.Operations_compute_signature; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_decipher", { enumerable: true, get: function () { return Operations_ta_2.Operations_decipher; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_encipher", { enumerable: true, get: function () { return Operations_ta_2.Operations_encipher; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_generate_key", { enumerable: true, get: function () { return Operations_ta_2.Operations_generate_key; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_hash", { enumerable: true, get: function () { return Operations_ta_2.Operations_hash; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_verify_checksum", { enumerable: true, get: function () { return Operations_ta_2.Operations_verify_checksum; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "Operations_verify_signature", { enumerable: true, get: function () { return Operations_ta_2.Operations_verify_signature; } }); /* IMPORTED_LONG_NAMED_BIT */ Object.defineProperty(exports, "verify_checksum", { enumerable: true, get: function () { return Operations_ta_2.verify_checksum; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "verify_signature", { enumerable: true, get: function () { return Operations_ta_2.verify_signature; } }); /* IMPORTED_SHORT_NAMED_BIT */ Object.defineProperty(exports, "_decode_Operations", { enumerable: true, get: function () { return Operations_ta_2._decode_Operations; } }); Object.defineProperty(exports, "_encode_Operations", { enumerable: true, get: function () { return Operations_ta_2._encode_Operations; } }); /* END_OF_SYMBOL_DEFINITION PublicKeyOperations */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_PublicKeyOperations */ let _cached_decoder_for_PublicKeyOperations = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_PublicKeyOperations */ /* START_OF_SYMBOL_DEFINITION _decode_PublicKeyOperations */ /** * @summary Decodes an ASN.1 element into a(n) PublicKeyOperations * @function * @param {_Element} el The element being decoded. * @returns {PublicKeyOperations} The decoded data structure. */ function _decode_PublicKeyOperations(el) { if (!_cached_decoder_for_PublicKeyOperations) { _cached_decoder_for_PublicKeyOperations = Operations_ta_1._decode_Operations; } return _cached_decoder_for_PublicKeyOperations(el); } exports._decode_PublicKeyOperations = _decode_PublicKeyOperations; /* END_OF_SYMBOL_DEFINITION _decode_PublicKeyOperations */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_PublicKeyOperations */ let _cached_encoder_for_PublicKeyOperations = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_PublicKeyOperations */ /* START_OF_SYMBOL_DEFINITION _encode_PublicKeyOperations */ /** * @summary Encodes a(n) PublicKeyOperations 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 PublicKeyOperations, encoded as an ASN.1 Element. */ function _encode_PublicKeyOperations(value, elGetter) { if (!_cached_encoder_for_PublicKeyOperations) { _cached_encoder_for_PublicKeyOperations = Operations_ta_1._encode_Operations; } return _cached_encoder_for_PublicKeyOperations(value, elGetter); } exports._encode_PublicKeyOperations = _encode_PublicKeyOperations; /* END_OF_SYMBOL_DEFINITION _encode_PublicKeyOperations */ /* eslint-enable */ //# sourceMappingURL=PublicKeyOperations.ta.js.map