25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Revert "Avoid crypto:hmac/3 call for R15B compatibility"

This reverts commit 31e356c126.
This commit is contained in:
Christophe Romain 2015-10-07 00:19:42 +02:00
parent 6a23cad454
commit f938c2a5e2

View File

@ -86,6 +86,4 @@ hi_round(Password, UPrev, IterationCount) ->
IterationCount - 1)))).
sha_mac(Key, Data) ->
Context1 = crypto:hmac_init(sha, Key),
Context2 = crypto:hmac_update(Context1, Data),
crypto:hmac_final(Context2).
crypto:hmac(sha, Key, Data).