[checksums.py] Add 'rotatedXOR' and helper functions.