support pyelliptic's updated HMAC algorithm