CASCExplorer.Salsa20.Salsa20CryptoTransform.Salsa20CryptoTransform C# (CSharp) Method

Salsa20CryptoTransform() public method

public Salsa20CryptoTransform ( byte key, byte iv, int rounds ) : System
key byte
iv byte
rounds int
return System
            public Salsa20CryptoTransform(byte[] key, byte[] iv, int rounds)
            {
                Debug.Assert(key.Length == 16 || key.Length == 32, "abyKey.Length == 16 || abyKey.Length == 32", "Invalid key size.");
                Debug.Assert(iv.Length == 8, "abyIV.Length == 8", "Invalid IV size.");
                Debug.Assert(rounds == 8 || rounds == 12 || rounds == 20, "rounds == 8 || rounds == 12 || rounds == 20", "Invalid number of rounds.");

                Initialize(key, iv);
                m_rounds = rounds;
            }