CASCExplorer.Salsa20.CreateDecryptor C# (CSharp) Method

CreateDecryptor() public method

Creates a symmetric decryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).
public CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
rgbKey byte The secret key to use for the symmetric algorithm.
rgbIV byte The initialization vector to use for the symmetric algorithm.
return ICryptoTransform
        public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
        {
            // decryption and encryption are symmetrical
            return CreateEncryptor(rgbKey, rgbIV);
        }