Make it obvious the variable is a const.
Move file length finding to a function.
Specify that some ints are unsigned.
Rename variable.
Make chunk reading/hashing more generic.
Move chunk loading to it's own function.