Exemple #1
0
 /// <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);
 }
 /// <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);
 }
Exemple #3
0
 public static extern void LoginCryptEncrypt(ref LoginCryptObj obj, byte[] input, byte[] output, int len);
Exemple #4
0
 public static extern void LoginCryptInit(ref LoginCryptObj obj);
 public static extern void LoginCryptInit(ref LoginCryptObj obj);
 public static extern void LoginCryptEncrypt(ref LoginCryptObj obj, byte[] input, byte[] output, int len);