Commit 539f714d authored by Nadim Kobeissi's avatar Nadim Kobeissi 💾
Browse files

Always add post-kex messages in Rust, Go, Wasm implementations

parent e427e380
......@@ -404,7 +404,6 @@ const NOISE2GO = {
`\t\tsession.hs = handshakestate{}`,
`\t}`
]);
} else {
sendMessage = sendMessage.concat([
`\tif session.mc > ${finalKex} {`,
`\t\tif session.i {`,
......@@ -423,7 +422,6 @@ const NOISE2GO = {
`\t\t}`,
`\t}`
]);
break;
}
}
sendMessage = sendMessage.concat([
......
......@@ -492,7 +492,6 @@ const NOISE2RS = {
`\t\t\tself.cs2 = ${isOneWayPattern? 'CipherState::new()' : 'temp.2'};`,
`\t\t\tself.hs.clear();`,
]);
} else {
sendMessage = sendMessage.concat([
`\t} else if self.i {`,
`\t\tself.cs1.write_message_regular(in_out)?;`,
......
......@@ -491,7 +491,6 @@ const NOISE2WASM = {
`\t\t\tself.cs2 = ${isOneWayPattern? 'CipherState::new()' : 'temp.2'};`,
`\t\t\tself.hs.clear();`,
]);
} else {
sendMessage = sendMessage.concat([
`\t} else if self.i {`,
`\t\tself.cs1.write_message_regular(in_out)?;`,
......@@ -510,7 +509,6 @@ const NOISE2WASM = {
`\tself.mc += 1;`,
`\tOk(())`
]);
break;
}
}
sendMessage = sendMessage.concat([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment