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:
parent
6a23cad454
commit
f938c2a5e2
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user