Org.BouncyCastle.Crypto.Modes.GcmBlockCipher.Process C# (CSharp) Method

Process() private method

private Process ( byte input, byte output, int outOff ) : int
input byte
output byte
outOff int
return int
		private int Process(
			byte	input,
			byte[]	output,
			int		outOff)
		{
			bufBlock[bufOff++] = input;

			if (bufOff == bufBlock.Length)
			{
				gCTRBlock(bufBlock, BlockSize, output, outOff);
				if (!forEncryption)
				{
					Array.Copy(bufBlock, BlockSize, bufBlock, 0, BlockSize);
				}
	//            bufOff = 0;
				bufOff = bufBlock.Length - BlockSize;
	//            return bufBlock.Length;
				return BlockSize;
			}

			return 0;
		}