public void BlockUpdate(byte[] input, int inOff, int len) { if (len < 0) { throw new ArgumentException("Can't have a negative input length!"); } int blockSize = cipher.GetBlockSize(); int num = 0; int num2 = blockSize - bufOff; if (len > num2) { Array.Copy(input, inOff, Buffer, bufOff, num2); num += cipher.ProcessBlock(Buffer, 0, mac, 0); bufOff = 0; len -= num2; inOff += num2; while (len > blockSize) { num += cipher.ProcessBlock(input, inOff, mac, 0); len -= blockSize; inOff += blockSize; } } Array.Copy(input, inOff, Buffer, bufOff, len); bufOff += len; }
public void BlockUpdate(byte[] input, int inOff, int len) { //IL_0009: Unknown result type (might be due to invalid IL or missing references) if (len < 0) { throw new ArgumentException("Can't have a negative input length!"); } int blockSize = cipher.GetBlockSize(); int num = 0; int num2 = blockSize - bufOff; if (len > num2) { global::System.Array.Copy((global::System.Array)input, inOff, (global::System.Array)Buffer, bufOff, num2); num += cipher.ProcessBlock(Buffer, 0, mac, 0); bufOff = 0; len -= num2; inOff += num2; while (len > blockSize) { num += cipher.ProcessBlock(input, inOff, mac, 0); len -= blockSize; inOff += blockSize; } } global::System.Array.Copy((global::System.Array)input, inOff, (global::System.Array)Buffer, bufOff, len); bufOff += len; }
public void BlockUpdate( byte[] input, int inOff, int len) { if (len < 0) { throw new ArgumentException("Can't have a negative input length!"); } int blockSize = cipher.GetBlockSize(); int resultLen = 0; int gapLen = blockSize - bufOff; if (len > gapLen) { Array.Copy(input, inOff, Buffer, bufOff, gapLen); resultLen += cipher.ProcessBlock(Buffer, 0, mac, 0); bufOff = 0; len -= gapLen; inOff += gapLen; while (len > blockSize) { resultLen += cipher.ProcessBlock(input, inOff, mac, 0); len -= blockSize; inOff += blockSize; } } Array.Copy(input, inOff, Buffer, bufOff, len); bufOff += len; }