diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-03-21 22:56:23 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-03-21 22:56:23 +0100 |
commit | 31e356c126cd5b967df9e7b560ce63f2b3b1529b (patch) | |
tree | b97121b475f83bfefa2fed10791bac39ebb1e91c /src/scram.erl | |
parent | Fix compilation on Erlang R15B (diff) |
Avoid crypto:hmac/3 call for R15B compatibility
Diffstat (limited to 'src/scram.erl')
-rw-r--r-- | src/scram.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scram.erl b/src/scram.erl index 3069be466..8c7935210 100644 --- a/src/scram.erl +++ b/src/scram.erl @@ -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). |