Added compatibility with HMAC