Avoid crypto:hmac/3 call for R15B compatibility

This commit is contained in:
Holger Weiss 2015-03-21 22:56:23 +01:00
parent a5d6044448
commit 31e356c126
1 changed files with 3 additions and 1 deletions

View File

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