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