Fix file SHA1 calculation.

sha1::digest_type is a reference, so cast the BYTE and not the pointer. SHA1 calculation of file contents is required for league.