Ejemplo n.º 1
0
        public void Initialize()
        {
            Log.Info("Loading client manager.");

            Log.Info("Scrambling keypairs.");

            _scrambledPairs = new ScrambledKeyPair[ScrambleCount];

            for (int i = 0; i < ScrambleCount; i++)
            {
                _scrambledPairs[i] = new ScrambledKeyPair(ScrambledKeyPair.genKeyPair());
            }

            Log.Info($"Scrambled {_scrambledPairs.Length} keypairs.");
            Log.Info("Randomize blowfish keys.");

            _blowfishKeys = new byte[BlowfishCount][];

            for (int i = 0; i < BlowfishCount; i++)
            {
                _blowfishKeys[i] = new byte[16];
                new Random().NextBytes(_blowfishKeys[i]);
            }

            Log.Info($"Randomized {_blowfishKeys.Length} blowfish keys.");
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            CLogger.info("Loading client manager.");

            CLogger.info("Scrambling keypairs.");

            ScrambledPairs = new ScrambledKeyPair[ScrambleCount];

            for (int i = 0; i < ScrambleCount; i++)
            {
                ScrambledPairs[i] = new ScrambledKeyPair(ScrambledKeyPair.genKeyPair());
            }

            CLogger.info("Scrambled " + ScrambledPairs.Length + " keypairs.");
            CLogger.info("Randomize blowfish keys.");

            BlowfishKeys = new Byte[BlowfishCount][];

            for (int i = 0; i < BlowfishCount; i++)
            {
                BlowfishKeys[i] = new Byte[16];
                new Random().NextBytes(BlowfishKeys[i]);
            }

            CLogger.info("Randomized " + BlowfishKeys.Length + " blowfish keys.");
        }
Ejemplo n.º 3
0
        private void GenerateScrambledKeys()
        {
            Log.Info("Scrambling keypairs.");

            _scrambledPairs = new ScrambledKeyPair[ScrambleCount];

            for (int i = 0; i < ScrambleCount; i++)
            {
                _scrambledPairs[i] = new ScrambledKeyPair(ScrambledKeyPair.genKeyPair());
            }

            Log.Info($"Scrambled {_scrambledPairs.Length} keypairs.");
        }