Finish all handshake stages

This commit is contained in:
morrigan
2019-11-06 15:49:20 +01:00
parent 87d7ed9c41
commit 051f0765f9
2 changed files with 15 additions and 4 deletions

View File

@ -375,7 +375,7 @@ export class XXHandshake {
return messageBuffer;
}
public async RecvMessage(session: NoiseSession, message: MessageBuffer) : Promise<bytes> {
public async recvMessage(session: NoiseSession, message: MessageBuffer) : Promise<bytes> {
let plaintext: bytes;
if (session.mc.eqn(0)) {
plaintext = await this.readMessageA(session.hs, message);