support SHA1 in addition to SHA256 for patches