Added backend check to hmac primitives