NBitcoin.BouncyCastle.Crypto.Digests.RipeMD160Digest.ProcessBlock()

Here are the examples of the csharp api class NBitcoin.BouncyCastle.Crypto.Digests.RipeMD160Digest.ProcessBlock() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: NBitcoin
Source File: RipeMD160Digest.cs
View license
internal override void ProcessLength(
			long bitLength)
		{
			if(xOff > 14)
			{
				ProcessBlock();
			}

			X[14] = (int)(bitLength & 0xffffffff);
			X[15] = (int)((ulong)bitLength >> 32);
		}

2. Example

Project: NBitcoin
Source File: RipeMD160Digest.cs
View license
internal override void ProcessWord(
			byte[] input,
			int inOff)
		{
			X[xOff++] = (input[inOff] & 0xff) | ((input[inOff + 1] & 0xff) << 8)
				| ((input[inOff + 2] & 0xff) << 16) | ((input[inOff + 3] & 0xff) << 24);

			if(xOff == 16)
			{
				ProcessBlock();
			}
		}

3. Example

View license
internal override void ProcessLength(
			long bitLength)
		{
			if(xOff > 14)
			{
				ProcessBlock();
			}

			X[14] = (int)(bitLength & 0xffffffff);
			X[15] = (int)((ulong)bitLength >> 32);
		}

4. Example

View license
internal override void ProcessWord(
			byte[] input,
			int inOff)
		{
			X[xOff++] = (input[inOff] & 0xff) | ((input[inOff + 1] & 0xff) << 8)
				| ((input[inOff + 2] & 0xff) << 16) | ((input[inOff + 3] & 0xff) << 24);

			if(xOff == 16)
			{
				ProcessBlock();
			}
		}