blake3Of

Compute the BLAKE3 hash value of data.

  1. ubyte[L] blake3Of(void[] data)
    @safe
    ubyte[L]
    blake3Of
    (
    size_t L = BLAKE3_OUT_LEN
    )
    (
    in void[] data
    )
    if (
    L > 0 &&
    L < 4096
    )
  2. ubyte[L] blake3Of(void[] data, ubyte[32] key)

Examples

assert(blake3Of([]) == emptyHash);
assert(blake3Of("Hello world!") == x"793c10bc0b28c378330d39edace7260af9da81d603b8ffede2706a21eda893f4");

Meta