From 6eb1ae1314461fd19d04445c67d53117ff1cb943 Mon Sep 17 00:00:00 2001 From: Kamil Ciemniewski Date: Thu, 30 Sep 2021 15:15:00 +0200 Subject: [PATCH] Make the library compatible with OTP 24 by switching from crypto.hmac to crypto.mac --- lib/aws_auth/utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aws_auth/utils.ex b/lib/aws_auth/utils.ex index bd188ce..cbd0d95 100644 --- a/lib/aws_auth/utils.ex +++ b/lib/aws_auth/utils.ex @@ -49,7 +49,7 @@ defmodule AWSAuth.Utils do end def hmac_sha256(key, data) do - :crypto.hmac(:sha256, key, data) + :crypto.mac(:hmac, :sha256, key, data) end def bytes_to_string(bytes) do