ExSha3 (ex_sha3 v0.1.5)

View Source

ExSha3 supports the three hash algorithms:

* KECCAK1600-f the original pre-fips version as used in Ethereum
* SHA3 the fips-202 approved final hash
* SHAKE

Keccak and SHA3 produce fixed length strings corresponding to their bit length, while shake produces an arbitary length output according to the provided outlen parameter.

Summary

Functions

calc(args \\ [])

(macro)

calc(record, args)

(macro)

keccak_224(source)

@spec keccak_224(binary()) :: binary()

keccak_256(source)

@spec keccak_256(binary()) :: binary()

keccak_384(source)

@spec keccak_384(binary()) :: binary()

keccak_512(source)

@spec keccak_512(binary()) :: binary()

sha3_224(source)

@spec sha3_224(binary()) :: binary()

sha3_256(source)

@spec sha3_256(binary()) :: binary()

sha3_384(source)

@spec sha3_384(binary()) :: binary()

sha3_512(source)

@spec sha3_512(binary()) :: binary()

shake_128(source, outlen)

@spec shake_128(binary(), number()) :: binary()

shake_256(source, outlen)

@spec shake_256(binary(), number()) :: binary()