From b4b09ba2c4e82530607f544126c6d412afbe7f01 Mon Sep 17 00:00:00 2001 From: Tau Date: Mon, 22 Apr 2019 00:07:36 -0400 Subject: [PATCH] Remove test logging statement I think we can be reasonably confident that the RSA calculations yield the correct answer at this point. --- src/idz/setup.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/idz/setup.ts b/src/idz/setup.ts index bf023c6..29c1107 100644 --- a/src/idz/setup.ts +++ b/src/idz/setup.ts @@ -26,14 +26,6 @@ const key = { // Proof-of-concept, so we only use one fixed session key const sessionKey = 0xffddeeccbbaa99887766554433221100n; -// -- TEST -- -const test1 = modPow(sessionKey, key.e, key.N); -const test2 = modPow(test1, key.d, key.N); - -console.log("RSA ENC :", byteString(test1, 0x40).toString("hex")); -console.log("RSA ENCDEC :", byteString(test2, 0x40).toString("hex")); -// -- TEST -- - interface Session { input: AsyncIterable & { end: () => void;