Org.BouncyCastle.Crypto.Digests.Gost3411Digest.LongToBytes C# (CSharp) Method

LongToBytes() private static method

private static LongToBytes ( long r, byte output, int outOff ) : void
r long
output byte
outOff int
return void
		private static void LongToBytes(
			long	r,
			byte[]	output,
			int		outOff)
		{
			output[outOff + 7] = (byte)(r >> 56);
			output[outOff + 6] = (byte)(r >> 48);
			output[outOff + 5] = (byte)(r >> 40);
			output[outOff + 4] = (byte)(r >> 32);
			output[outOff + 3] = (byte)(r >> 24);
			output[outOff + 2] = (byte)(r >> 16);
			output[outOff + 1] = (byte)(r >> 8);
			output[outOff] = (byte)r;
		}