Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 19:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



DH - Shared Key Mismatch

Discussion on DH - Shared Key Mismatch within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
DH - Shared Key Mismatch

Part of Edit 2: Solved my issue, see bottom edits.

Hello,

I have an issue that is not really making much sense to me and am hoping a second set of eyes might spot something I'm not catching. I'm in the key exchange phase of the login sequence and am unable to come to a common shared key despite all shared values matching on both ends. I'm using the Diffie Hellman implementation by CptSky provided on the development wiki ().

I am successfully exchanging keys with the client, as I'm able to correctly decipher the 1052 packet sent from the client to the server. This tells me that the GenerateRequest and the HandleResponse functions are correctly implemented, other wise I would not be able to decipher that packet. (Is this a correct assumption?)

I am not successfully able to decipher that same packet on the server I have setup and I've traced that back to a mis-match in the shared key.

Here is an output from both my Proxy and my Server - This tells me that both the A and the B keys are being transmitted correctly between the proxy and the server.
Keys as seen by Proxy:

Keys as seen by Server:

Here is my code handling the DH Packet From Server to Client

Here is my code handling the DH Packet From Client to Server

Based on everything I've read, the S-Key is supposed to be the same. And from the simple explanation on the wiki about Diffie Hellman, the GenerateReponse is correctly implemented, not sure where else I can be going wrong.

Any help is appreciated.

Edit:
Forget everything I said above. My shared keys are correct, I was accidentally comparing the shared key between the client and proxy to the one generated server side....stupid. Brings me back to trying to figure out why I'm not able to decipher a packet sent from the proxy to the server.. The ciphers were both initialized with the same shared key (verified properly this time) and I've setup the IV's on the server to be all zeros, so I can't get those mixed up.

Not really sure what could be wrong if the cipher between Client and Proxy is functioning properly and my Server and Proxy cipher was instanced with the same Shared key...at a loss.

Edit 2:
Rubber-duckied my way out of this one. I was doing everything correctly except pointing my server facing cipher to my new instance...This took ~15 hours over the last two days...but hey, I'm pretty comfortable with it now.
Santa is offline  
Reply


Similar Threads Similar Threads
Error beim 2010er: mismatch 0xaf etc.
01/25/2012 - Metin2 Private Server - 3 Replies
Hat jemand von euch ne Idee, woher dieser Error stammen könnte? Er bringt den gameserver nicht zu crashen, aber er taucht in der syserr auf und ich würd gern wissen woher der kommt^^ SYSERR: Feb 22 14:44:25 :: Process: SEQUENCE 369ca500 mismatch 0xaf != 0x0 header 254 SYSERR: Feb 22 14:44:25 :: Process: SEQUENCE_LOG -------------
[ Prozess Sequence ***** mismatch ]
08/24/2011 - Metin2 Private Server - 3 Replies
Hallo EPvP, ich bekomme seit geraumer Zeit folgende Error's in der syserr SYSERR: Jan 20 21:19:52 :: Process: SEQUENCE 41ec2800 mismatch 0xca != 0x2f header 3 SYSERR: Jan 20 21:19:52 :: Process: SEQUENCE_LOG -------------
Rsro Ribut Runtime error 13 "Type Mismatch"
07/14/2010 - Silkroad Online - 3 Replies
Hello guys, for some reason when im lvling my first char with ribot, everything works fine. But my second char always gets this annoying runtime error after some time and ribot + sro window crashes. Im having the newest ribot, newest sro so what can i do to stop this error? Googled like an hour for now ^^" Thanks PuppetMaster
[Ribot] Error 13 type mismatch
02/05/2010 - Silkroad Online - 2 Replies
If got the 'error 13 type mismatch'. I didn't got it before but I logged in to my char (I normally use clientless) and then I wanted to do clientless again and it gives that error. When I try to use bot + client it says error 6 overflow. I tried to install the ocx files again and reinstalled the bot. Still doesn't work! Anybody got the answer for this? Thanks in advance!



All times are GMT +1. The time now is 19:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.