Org.BouncyCastle.Crypto.Engines.BlowfishEngine.ProcessBuffer C# (CSharp) Method

ProcessBuffer() public method

public ProcessBuffer ( byte input, int inOff, byte output, int outOff, int length ) : void
input byte
inOff int
output byte
outOff int
length int
return void
        public void ProcessBuffer(byte[] input, int inOff, byte[] output, int outOff, int length)
        {
            int numBlocks = length >> 3;
            int offset = 0;
            for (var i = 0; i < numBlocks; ++i, offset += 8)
            {
                this.ProcessBlock(input, inOff + offset, output, outOff+offset);
            }

            if (length != offset)
            {
                Array.Copy(input, inOff + offset, output, outOff + offset, length - offset);
            }
        }