Updated digital signature hashing scheme to match implementations.