diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-05-07 07:57:13 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-05-07 07:57:13 +0100 |
commit | 195801b69f3814d9d6d3fc7110fef32b64d44224 (patch) | |
tree | c05f915017989b09a62455ee8e895092e7fe92c4 /src | |
parent | bc6993f2dc7448c808605647e3eac14213441bfb (diff) |
Remove support for crypto:sha().
We're not on R15 any more.
Diffstat (limited to 'src')
-rw-r--r-- | src/ht.erl | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -111,17 +111,7 @@ mkhead(Head, [H|T]) -> -spec hashfun(iolist() | binary()) -> binary(). hashfun(Data) -> - code:ensure_loaded(crypto), - case erlang:function_exported(crypto, hash, 2) of - true -> crypto:hash(sha256, Data); - _ -> crypto:sha(Data) - end. -%% hashfun_init() -> -%% sha_init(). -%% hashfun_update(C, D) -> -%% sha_update(C, D). -%% hashfun_final(C) -> -%% sha_final(C). + crypto:hash(sha256, Data). -spec mkleaf(iolist() | binary()) -> leaf(). mkleaf(Data) -> |