Org.BouncyCastle.Crypto.Engines.RC6Engine.ProcessBlock C# (CSharp) Метод

ProcessBlock() публичный Метод

public ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
input byte
inOff int
output byte
outOff int
Результат int
        public int ProcessBlock(
            byte[]	input,
            int		inOff,
            byte[]	output,
            int		outOff)
        {
			int blockSize = GetBlockSize();
			if (_S == null)
				throw new InvalidOperationException("RC6 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");

			return (forEncryption)
				?	EncryptBlock(input, inOff, output, outOff)
				:	DecryptBlock(input, inOff, output, outOff);
        }