replaced deprecated crypto:sha_mac/2 with crypto:hmac/3

`crypto:sha_mac/2` is deprecated and will be removed in in a future Erlang release.