/// <summary> /// Initializes the new object. /// </summary> /// <param name="seed">Encryption seed in Little Endian!!</param> /// <param name="key1"></param> /// <param name="key2"></param> public LoginEncryption(uint seed, uint key1, uint key2) { obj = new LoginCryptObj(); obj.pseed = seed; obj.k1 = key1; obj.k2 = key2; NativeEncryption.LoginCryptInit(ref obj); }
public static extern void LoginCryptEncrypt(ref LoginCryptObj obj, byte[] input, byte[] output, int len);
public static extern void LoginCryptInit(ref LoginCryptObj obj);