Being struggling with my proxy for a while now. Still can't get past DH Key exchange. My worst night mare is that I don't even know where the problem lie, lol. I've re-trace my program over and over, and even re coded it 2 times. Still the exact same problem.
Since i cannot google enough information about my topic, I thought it would be easier if I can leech a bit of programming experience off the pros here.
Problem: Cannot decrypt client's Date packet after DH exchange.
Deduction: I failed to established a common shared key with client.
What i have tried:
I came up with a smaller model of my problem, that is, i wrote a test server and client that simply performs DH exchange using TQ's default P and G as my DH parameters. After DH exchange, server encrypts a message using the established shared key and send to client. Client decrypts and displays the message, then terminates. This test model is a success.
This makes me wonder, why is it that i can perform DH key exchange on my own test model but not with the TQClient/Server?
My blowfish cipher cannot be wrong, else i wont be able to extract out the server DH information correctly. At the same time, there is also little room to get wrong when performing DH exchange. Am i missing out on something? Please enlighten me on the possible errors I could have made.
If my question is vague to you, i'm glad to provide any additional info to make it clear. Btw, i wrote it in java.
Since i cannot google enough information about my topic, I thought it would be easier if I can leech a bit of programming experience off the pros here.
Problem: Cannot decrypt client's Date packet after DH exchange.
Deduction: I failed to established a common shared key with client.
What i have tried:
I came up with a smaller model of my problem, that is, i wrote a test server and client that simply performs DH exchange using TQ's default P and G as my DH parameters. After DH exchange, server encrypts a message using the established shared key and send to client. Client decrypts and displays the message, then terminates. This test model is a success.
This makes me wonder, why is it that i can perform DH key exchange on my own test model but not with the TQClient/Server?
My blowfish cipher cannot be wrong, else i wont be able to extract out the server DH information correctly. At the same time, there is also little room to get wrong when performing DH exchange. Am i missing out on something? Please enlighten me on the possible errors I could have made.
If my question is vague to you, i'm glad to provide any additional info to make it clear. Btw, i wrote it in java.