We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9499f commit 9831c96Copy full SHA for 9831c96
src/srp/littleK.test.ts
@@ -3,6 +3,7 @@ import { BigInteger } from "jsbn";
3
import { hexToBigInt } from "../utils/hex";
4
import { knownGroups } from "./srpGroup";
5
import { bigIntToBytes } from "../utils/bigint";
6
+import assert from "assert";
7
8
const makeLittleK = (N: BigInteger, g: BigInteger) => {
9
const hash = createHash("sha256");
@@ -18,4 +19,7 @@ const k = makeLittleK(
18
19
knownGroups[8192].getN(),
20
knownGroups[8192].getGenerator()
21
);
-console.log(k.toString());
22
+assert.deepStrictEqual(
23
+ k.toString(),
24
+ "41355140986095207529712434517822669449058164734798422081556677809506232522678"
25
+);
0 commit comments