Avoid crypto:hmac/3 call for R15B compatibility
This commit is contained in:
parent
a5d6044448
commit
31e356c126
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue