View Source ExSha3 (ex_sha3 v0.1.4)

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.

Link to this section Summary

Link to this section Functions

Link to this macro

calc(args \\ [])

View Source (macro)
Link to this macro

calc(record, args)

View Source (macro)
@spec keccak_224(binary()) :: binary()
@spec keccak_256(binary()) :: binary()
@spec keccak_384(binary()) :: binary()
@spec keccak_512(binary()) :: binary()
@spec sha3_224(binary()) :: binary()
@spec sha3_256(binary()) :: binary()
@spec sha3_384(binary()) :: binary()
@spec sha3_512(binary()) :: binary()
Link to this function

shake_128(source, outlen)

View Source
@spec shake_128(binary(), number()) :: binary()
Link to this function

shake_256(source, outlen)

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