-
Active Member
SRP6 in C# w/o OpenSSL
Hiho,
atm i'm developing a logon server for learning purposes.
Sadly i stuck at the SRP-6 part, which i want to do without using OpenSSL, and i can't find my mistake.
I think i'm calculating something wrong, because my calculated MS is never the same as the client calculated M1.
Here's my SRP class: [C#] SRP.cs - Pastebin.com
Here are the important parts of my OpCodeHandler class: [C#] Parts of OpCodeHandler.cs - Pastebin.com
I can also upload my whole solution if someone wants to debug it.
You're my last hope.
Last edited by Kaev; 01-16-2016 at 05:12 AM.
-
Active Member
Shameless bump 
I found this: https://code.google.com/p/m-client/s.../Crypt/Srp6.cs
Calculations are looking like mine.. :/
EDIT: Oups, i think i do the client calculation at the end instead of the server calculation. Changed that in my local code, still not correct. :/
EDIT2: Updated the code in the pastebin. Fixed some things, sadly still something wrong.
Last edited by Kaev; 01-17-2016 at 08:15 AM.
-
Contributor
You were well on your way, however you made some common misstakes. I have pointed them out right in your source and re-pasted it here.
By the way - M1 and M2 will never match; they're two very different things.
-
Post Thanks / Like - 2 Thanks
stoneharry,
Kaev (2 members gave Thanks to Glusk for this useful post)