s365b.modules.onedrive.quickxor¶
Microsoft’s QuickXorHash, the content hash OneDrive for Business reports.
Byte k of the content is XORed into a 160-bit value at bit
(k * 11) % 160, wrapping around; the length is then XORed into the last
8 bytes. Because the bit position repeats every 160 bytes, the content is
first folded into one 160-byte block (bytes 160 apart XORed together),
which big-integer XOR does at bulk speed; only that block is placed bit by
bit.
Attributes¶
Classes¶
Incremental QuickXorHash: |
Functions¶
|
Hash content in one go. |