define hmac_buffer and hmac_binary