Org.BouncyCastle.Crypto.Digests.WhirlpoolDigest.BlockUpdate C# (CSharp) Method

BlockUpdate() public method

public BlockUpdate ( byte input, int inOff, int length ) : void
input byte
inOff int
length int
return void
		public void BlockUpdate(byte[] input, int inOff, int length)
		{
			while (length > 0)
			{
				Update(input[inOff]);
				++inOff;
				--length;
			}

		}

Usage Example

コード例 #1
0
		private string createHexOutputFromDigest(byte[] digestBytes)
		{
			string resStr;
			IDigest digest = new WhirlpoolDigest();
			byte[] resBuf = new byte[digest.GetDigestSize()];
			digest.BlockUpdate(digestBytes, 0, digestBytes.Length);
			digest.DoFinal(resBuf, 0);
			resStr = Hex.ToHexString(resBuf);
			return resStr;
		}
All Usage Examples Of Org.BouncyCastle.Crypto.Digests.WhirlpoolDigest::BlockUpdate