elm-cardano/blake2b/1.0.0

NOTE: the latest version is 2.0.0

Blake2b

Pure Elm BLAKE2b implementation (RFC 7693).

{ digestLength : Int
, key : Bytes
, data : Bytes
}
-> Bytes

Compute a BLAKE2b hash with the given digest length, key, and data.

- digestLength: 1 to 64 (number of output bytes)
- key: 0 to 64 bytes (use empty Bytes for unkeyed hashing)
- data: the message to hash
hash512 : Bytes -> Bytes

Compute a 512-bit (64-byte) BLAKE2b hash.

hash256 : Bytes -> Bytes

Compute a 256-bit (32-byte) BLAKE2b hash.

hash224 : Bytes -> Bytes

Compute a 224-bit (28-byte) BLAKE2b hash.