Truncate hash values for ECDSA signature scheme