Пример #1
0
 public GOAEncryption(string secKey, string clientChallenge, string serverChallenge)
 {
     State            = new GOACryptState();
     _clientChallenge = Encoding.ASCII.GetBytes(clientChallenge);
     _serverChallenge = Encoding.ASCII.GetBytes(serverChallenge);
     InitCryptKey(Encoding.ASCII.GetBytes(secKey));
 }
Пример #2
0
 /// <summary>
 /// Initialize permutation table
 /// </summary>
 /// <param name="secKey">game secret key</param>
 /// <param name="serverChallenge">can be null</param>
 public GOAEncryption(byte[] secKey, byte[] clientChallenge, byte[] serverChallenge)
 {
     State            = new GOACryptState();
     _clientChallenge = clientChallenge;
     _serverChallenge = serverChallenge;
     InitCryptKey(secKey);
 }
Пример #3
0
 public GOAEncryption(GOACryptState state)
 {
     State = state;
 }