merkle v0.2.2 Merkle.Mixers.Bin

Different crypto Mixers for binary mode Merkle Trees.

Mixers in binary mode process hashes as binary strings (<<255, 186, 218>>).

Summary

Functions

Commutable version of SHA-2 with 256 bits output size

Commutable version of SHA3 (FIPS-202) with 256 bits output size

Commutable version of SHA3 (FIPS-202) with 512 bits output size

Good old SHA-2 with 256 bits output size

SHA-3 (FIPS-202)

SHA-3 (FIPS-202) with 512 bits output size

Functions

commutable_sha256(a, b)
commutable_sha256(Merkle.hash, Merkle.hash) :: Merkle.hash

Commutable version of SHA-2 with 256 bits output size.

commutable_sha3_256(a, b)
commutable_sha3_256(Merkle.hash, Merkle.hash) :: Merkle.hash

Commutable version of SHA3 (FIPS-202) with 256 bits output size.

commutable_sha3_512(a, b)
commutable_sha3_512(Merkle.hash, Merkle.hash) :: Merkle.hash

Commutable version of SHA3 (FIPS-202) with 512 bits output size.

sha256(a, b)

Good old SHA-2 with 256 bits output size.

sha3(a, b, size \\ 256)

SHA-3 (FIPS-202)

sha3_512(a, b)

SHA-3 (FIPS-202) with 512 bits output size.