Merge pull request #6265 from libgit2/ethomson/sha256_two sha256: refactoring in preparation for sha256