Esempio n. 1
0
 public GameCrypto(byte[] key)
 {
     DHKeySequence = new DHKeyExchange.ServerKeyExchange();
     _blowfish = new BlowfishCryptography(BlowfishAlgorithm.CFB64);
     lock(key)
         _blowfish.SetKey(key);
 }
Esempio n. 2
0
 public GameCrypto(byte[] key)
 {
     DHKeySequence = new DHKeyExchange.ServerKeyExchange();
     _blowfish     = new BlowfishCryptography(BlowfishAlgorithm.CFB64);
     lock (key)
         _blowfish.SetKey(key);
 }
Esempio n. 3
0
 public void SetKey(byte[] k)
 {
     _blowfish.SetKey(k);
 }