Ejemplo n.º 1
0
        public object Clone()
        {
            PrngXorCrypt clone = new PrngXorCrypt(_cryptMode);

            for (int i = 0; i < _seeds.Length; i++)
            {
                clone._seeds[i] = _seeds[i];
            }
            return(clone);
        }
Ejemplo n.º 2
0
 void InitializeCrypts()
 {
     _recvCryptSeedCount = -1;
     _recvCrypt          = new PrngXorCrypt(PrngXorCryptMode.Decrypt);
     _sendCrypt          = new PrngXorCrypt(PrngXorCryptMode.Encrypt);
 }