"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCrypto=getCrypto,exports.loadCryptoPackage=loadCryptoPackage,exports.setMockCrypto=setMockCrypto,exports.clearCryptoCache=clearCryptoCache,exports.isCryptoLoaded=isCryptoLoaded,exports.getCryptoVersion=getCryptoVersion;const crypto_utils_js_1=require("./crypto-utils.js");let mockCrypto=null,mockVersion=null;function getCrypto(){return mockCrypto||{splitXorIDA:crypto_utils_js_1.splitXorIDA,reconstructXorIDA:crypto_utils_js_1.reconstructXorIDA,nextOddPrime:crypto_utils_js_1.nextOddPrime,pkcs7Pad:crypto_utils_js_1.pkcs7Pad,pkcs7Unpad:crypto_utils_js_1.pkcs7Unpad,generateHMAC:crypto_utils_js_1.generateHMAC,verifyHMAC:crypto_utils_js_1.verifyHMAC}}async function loadCryptoPackage(){"test"!==process.env.NODE_ENV&&console.warn("loadCryptoPackage() is deprecated as of xBind v3.1.1. Crypto is now bundled and always available. Remove this call.")}function setMockCrypto(t,o){mockCrypto=t,mockVersion=o}function clearCryptoCache(){mockCrypto=null,mockVersion=null}function isCryptoLoaded(){return!0}function getCryptoVersion(){return mockVersion||"bundled"}