This will make it easier to add support for differen hmac algorithms, because we can reuse the method.