Added backend check to hmac primitives
Fixed style nitpick
Merge pull request #805 from Ayrx/add-backend-check-to-hmac

Added backend check to hmac primitives