Example #1
0
        public TripleDESCipher2(byte[] key, byte[] iv)
        {
            _DESCipher1 = new DES();
            _DESCipher1.SetIV(iv);
            _DESCipher2 = new DES();
            _DESCipher2.SetIV(iv);
            _DESCipher3 = new DES();
            _DESCipher3.SetIV(iv);

            _DESCipher1.InitializeKey(key, 0);
            _DESCipher2.InitializeKey(key, 8);
            _DESCipher3.InitializeKey(key,16);
        }
Example #2
0
        public TripleDESCipher1(byte[] key)
        {
            _DESCipher1 = new DES();
            _DESCipher2 = new DES();
            _DESCipher3 = new DES();

            _DESCipher1.InitializeKey(key, 0);
            _DESCipher2.InitializeKey(key, 8);
            _DESCipher3.InitializeKey(key,16);
        }