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
1 changed files with 1 additions and 3 deletions

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).