Has anyone managed to make this class work with WoW's SRP implementation?
Has anyone managed to make this class work with WoW's SRP implementation?
Just add one byte 0x00 at the end of source byte array (if you creating instances of this class from byte array ofc) and it should work fine. Something like that:
Code:using System.Linq; using System.Numerics; BigInteger _bn; var newdata = new byte[0] .Concat(source) .Concat(new byte[] { 0 }) .ToArray(); _bn = new BigInteger(newdata);
OK, and after that, I can just do operations on it without "patching" the array anymore?
Also, what if I'm parsing a string? Any precautions there?
Last edited by XTZGZoReX; 12-11-2010 at 11:56 PM.