Fixed world login

This commit is contained in:
Hondacrx
2025-08-26 22:37:42 -04:00
parent 7bb4769eee
commit ec4f2a49d4
20 changed files with 80 additions and 74 deletions
@@ -2137,8 +2137,8 @@ namespace Framework.Constants
// Opcodes That Are Not Generated Automatically
AccountHeirloomUpdate = AccountToyUpdate + 1, // No Client Handler
CompressedPacket = 0x3E000A,
MultiplePackets = 0x3E0009,
CompressedPacket = AuthChallenge + 0xA,
MultiplePackets = AuthChallenge + 0x9,
Unknown = 0xbadd,
None = 0
@@ -29,7 +29,7 @@ namespace Framework.Cryptography
{
for (uint i = 0; i < sz; ++i)
{
if (taken == 32)
if (taken == 64)
FillUp();
buf[i] = o0[taken];
@@ -40,9 +40,9 @@ namespace Framework.Cryptography
void FillUp()
{
sh.Initialize();
sh.TransformBlock(o1, 0, 32, o1, 0);
sh.TransformBlock(o0, 0, 32, o0, 0);
sh.TransformFinalBlock(o2, 0, 32);
sh.TransformBlock(o1, 0, 64, o1, 0);
sh.TransformBlock(o0, 0, 64, o0, 0);
sh.TransformFinalBlock(o2, 0, 64);
o0 = sh.Hash;
taken = 0;
@@ -50,9 +50,9 @@ namespace Framework.Cryptography
SHA512 sh;
uint taken;
byte[] o0 = new byte[32];
byte[] o1 = new byte[32];
byte[] o2 = new byte[32];
byte[] o0 = new byte[64];
byte[] o1 = new byte[64];
byte[] o2 = new byte[64];
}
public class SessionKeyGenerator