Remove SymmetricState log

This commit is contained in:
Matija Petrunic 2020-04-17 12:52:54 +02:00
parent f406bcfa6d
commit 55b906cd02
3 changed files with 1 additions and 8 deletions

View File

@ -14,7 +14,7 @@ import {
logRemoteStaticKey,
logLocalEphemeralKeys,
logRemoteEphemeralKey,
logSymmetricCipherState, logCipherState
logCipherState
} from "./logger";
import PeerId from "peer-id";
@ -81,7 +81,6 @@ export class IKHandshake implements IHandshake {
throw new FailedIKError(receivedMsg, `Error occurred while verifying initiator's signed payload: ${e.message}`);
}
}
logSymmetricCipherState(this.session.hs.ss)
}
public async stage1(): Promise<void> {

View File

@ -17,7 +17,6 @@ import {
logRemoteEphemeralKey,
logRemoteStaticKey,
logCipherState,
logSymmetricCipherState
} from "./logger";
import {decode0, decode1, decode2, encode0, encode1, encode2} from "./encoder";
import { WrappedConnection } from "./noise";
@ -132,7 +131,6 @@ export class XXHandshake implements IHandshake {
throw new Error(`Error occurred while verifying signed payload: ${e.message}`);
}
}
logSymmetricCipherState(this.session.hs.ss)
logCipherState(this.session)
}

View File

@ -45,7 +45,3 @@ export function logCipherState(session: NoiseSession): void {
keyLogger('Missing cipher state.')
}
}
export function logSymmetricCipherState(ss: SymmetricState): void {
keyLogger(`SYMMETRIC_CIPHER_STATE ${ss.cs.n} ${ss.cs.k.toString('hex')}`)
}