Add hash_hmac fallback and unit test