Org.BouncyCastle.Crypto.Engines.Gost28147Engine.ProcessBlock C# (CSharp) Method

ProcessBlock() public method

public ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
input byte
inOff int
output byte
outOff int
return int
		public int ProcessBlock(
			byte[]	input,
			int		inOff,
			byte[]	output,
			int		outOff)
		{
			if (workingKey == null)
			{
				throw new InvalidOperationException("Gost28147 engine not initialised");
			}

			if ((inOff + BlockSize) > input.Length)
			{
				throw new DataLengthException("input buffer too short");
			}

			if ((outOff + BlockSize) > output.Length)
			{
				throw new DataLengthException("output buffer too short");
			}

			Gost28147Func(workingKey, input, inOff, output, outOff);

			return BlockSize;
		}