Here are the examples of the csharp api class PHP.Library.PhpHash.HashPhpResource.SHA256._HashData(byte[], int, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licenseprotected override byte[] _EndHash() { byte[] block = new byte[32]; int num = 0x40 - ((int)(this._count & 0x3fL)); if (num <= 8) num += 0x40; byte[] partIn = new byte[num]; partIn[0] = 0x80; long num2 = this._count * 8L; partIn[num - 8] = (byte)((num2 >> 0x38) & 0xffL); partIn[num - 7] = (byte)((num2 >> 0x30) & 0xffL); partIn[num - 6] = (byte)((num2 >> 40) & 0xffL); partIn[num - 5] = (byte)((num2 >> 0x20) & 0xffL); partIn[num - 4] = (byte)((num2 >> 0x18) & 0xffL); partIn[num - 3] = (byte)((num2 >> 0x10) & 0xffL); partIn[num - 2] = (byte)((num2 >> 8) & 0xffL); partIn[num - 1] = (byte)(num2 & 0xffL); this._HashData(partIn, 0, partIn.Length); DWORDToBigEndian(block, this._state, 8); //base.HashValue = block; return block; }