Compute MD5 or SHA hash of large file efficiently on iOS and Mac OS X