I rebased and added a patch to make this change. I also folded digest into sha1.