UNPKG

@aws-amplify/auth

Version:
1 lines 1.32 kB
{"version":3,"file":"index.native.mjs","sources":["../../../../../../../src/providers/cognito/utils/srp/BigInteger/index.native.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { computeModPow } from '@aws-amplify/react-native';\nimport BigInteger from './BigInteger';\nBigInteger.prototype.modPow = function modPow(e, m, callback) {\n computeModPow({\n base: this.toString(16),\n exponent: e.toString(16),\n divisor: m.toString(16),\n })\n .then((result) => {\n callback(null, new BigInteger(result, 16));\n })\n .catch((error) => {\n callback(new Error(error), null);\n });\n};\nexport { BigInteger };\n"],"names":[],"mappings":";;;AAAA;AACA;AAGA,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE;AAC9D,IAAI,aAAa,CAAC;AAClB,QAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC/B,QAAQ,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC;AAChC,QAAQ,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC/B,KAAK;AACL,SAAS,IAAI,CAAC,CAAC,MAAM,KAAK;AAC1B,QAAQ,QAAQ,CAAC,IAAI,EAAE,IAAI,UAAU,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAClD,IAAI,CAAC;AACL,SAAS,KAAK,CAAC,CAAC,KAAK,KAAK;AAC1B,QAAQ,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;AACxC,IAAI,CAAC,CAAC;AACN,CAAC;;;;"}