From d97efd29a7c54b6c600df4ac6107056da83f74fe Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 22 May 2021 15:30:16 +0200 Subject: [PATCH] JsonWebToken.Algorithm.Hmac: Use :crypto.mac --- lib/json_web_token/algorithm/hmac.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/json_web_token/algorithm/hmac.ex b/lib/json_web_token/algorithm/hmac.ex index 42952d7..66cfe1c 100644 --- a/lib/json_web_token/algorithm/hmac.ex +++ b/lib/json_web_token/algorithm/hmac.ex @@ -18,7 +18,7 @@ defmodule JsonWebToken.Algorithm.Hmac do """ def sign(sha_bits, shared_key, signing_input) do validate_params(sha_bits, shared_key) - :crypto.hmac(sha_bits, shared_key, signing_input) + :crypto.mac(:hmac, sha_bits, shared_key, signing_input) end @doc """