prozacchiwawa/elm-keccak/1.0.1

NOTE: this package is not compatible with Elm 0.19.1

Keccak

Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby denoted as "the implementer".

For more information, feedback or questions, please refer to our websites: http://keccak.noekeon.org/ http://keyak.noekeon.org/ http://ketje.noekeon.org/

To the extent possible under law, the implementer has waived all copyright and related or neighboring rights to the source code in this file. http://creativecommons.org/publicdomain/zero/1.0/

Ported to elm by Art Yerkes.

ethereum_keccak_256 is the hash function used in many places related to the ethereum cryptocurrency. It is different from sha3 in the padding used.

Functions

fips202_sha3_224 : List Int -> List Int

Compute the sha3 224 of a list of byte width integers (0-255) as a list of byte width integers.

fips202_sha3_256 : List Int -> List Int

Compute the sha3 256 of a list of byte width integers (0-255) as a list of byte width integers.

fips202_sha3_384 : List Int -> List Int

Compute the sha3 384 of a list of byte width integers (0-255) as a list of byte width integers.

fips202_sha3_512 : List Int -> List Int

Compute the sha3 512 of a list of byte width integers (0-255) as a list of byte width integers.

ethereum_keccak_256 : List Int -> List Int

Compute the ethereum style 256-bit hash of a list of byte width integers (0-255) as a list of byte width integers.