@aws-amplify/auth
Version:
Auth category of aws-amplify
20 lines (17 loc) • 598 B
JavaScript
import { computeS } from '@aws-amplify/react-native';
import BigInteger from '../BigInteger/BigInteger.mjs';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const calculateS = async ({ a, g, k, x, B, N: _, U, }) => {
const result = await computeS({
a: a.toString(16),
g: g.toString(16),
k: k.toString(16),
x: x.toString(16),
b: B.toString(16),
u: U.toString(16),
});
return new BigInteger(result, 16);
};
export { calculateS };
//# sourceMappingURL=calculateS.native.mjs.map