Skip to content

What is missing for ETM algorithms to work #1202

Answered by Rob-Hague
juchom asked this question in Q&A
Discussion options

You must be logged in to vote

It is just that nobody has contributed the changes. I have looked into it briefly.

Because the EtM (encrypt-then-MAC) algorithms change the way the packets are created, there would need to be some refactoring around here:

if (_clientMac != null)
{
// write outbound packet sequence to start of packet data
Pack.UInt32ToBigEndian(_outboundPacketSequence, packetData);
// calculate packet hash
hash = _clientMac.ComputeHash(packetData);
}
// Encrypt packet data
if (_clientCipher != null)
{
packetData = _clientCipher.Encrypt(packetData, packetDataOffset, packe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juchom
Comment options

Answer selected by juchom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants