Remove test logging statement

I think we can be reasonably confident that the RSA calculations
yield the correct answer at this point.
This commit is contained in:
Tau 2019-04-22 00:07:36 -04:00
parent a30c37a794
commit b4b09ba2c4

View File

@ -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<Request> & {
end: () => void;