Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (21 sloc) 1.205 kB
475111d @vinoski revamp the original pure Erlang implementation
authored
1 # SHA-224, SHA-256, SHA-384, SHA-512 implemented in Erlang NIFs.
2
3 ## Description
4
5 The **erlsha2** library application implements the SHA-2 Secure Hash Standard
6 (SHA-224, SHA-256, SHA-384, SHA-512) using Erlang NIFs. It also
7 provides pure Erlang implementations, though they are much slower than
8 the C NIF implementations.
9
10 See the following links for details:
11
12 * (Secure Hash Standard)[href="http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf"]
13 * (Wikipedia SHA1 article)[href="http://en.wikipedia.org/wiki/SHA1"]
14
15 The code implemented here was written by simply following the
16 algorithm descriptions provided in the standard. Provided functions
17 follow the same style as those found in the standard Erlang `crypto`
18 module: for each hash variant there's a simple function returning a
19 binary digest and a set of three functions for initializing a digest
20 context, updating the context with additional data to be hashed, and
21 finalizing the context to get a binary digest result.
22
23 ## Building and Installing
24
25 The **erlsha2** app is built with
26 [rebar](https://github.com/basho/rebar), which must be in the command `PATH`.
27
28 ### Erlang Version
29
30 The **erlsha2** app requires Erlang R14B or later.
Something went wrong with that request. Please try again.