NBitcoin.BouncyCastle.Crypto.Digests.LongDigest.BlockUpdate C# (CSharp) 메소드

BlockUpdate() 공개 메소드

public BlockUpdate ( byte input, int inOff, int length ) : void
input byte
inOff int
length int
리턴 void
		public void BlockUpdate(
			byte[] input,
			int inOff,
			int length)
		{
			//
			// fill the current word
			//
			while((xBufOff != 0) && (length > 0))
			{
				Update(input[inOff]);

				inOff++;
				length--;
			}

			//
			// process whole words.
			//
			while(length > xBuf.Length)
			{
				ProcessWord(input, inOff);

				inOff += xBuf.Length;
				length -= xBuf.Length;
				byteCount1 += xBuf.Length;
			}

			//
			// load in the remainder.
			//
			while(length > 0)
			{
				Update(input[inOff]);

				inOff++;
				length--;
			}
		}