By default, it creates a hash with the first 32 bytes of data, but this is configurable.
This seems strange. Since BLAKE3 is an extendable output function it seems that it should instead say
By default, it creates a 32 byte long hash of the data, but this is configurable.
at least that's what the function probably should be doing, right? Unless I'm missing something, we want to compute the hash based on the whole data content, but the size of the hash might be variable (which is why it being XOF is good).
The API docs for the
hash(data, options)
function say:This seems strange. Since BLAKE3 is an extendable output function it seems that it should instead say
at least that's what the function probably should be doing, right? Unless I'm missing something, we want to compute the hash based on the whole data content, but the size of the hash might be variable (which is why it being XOF is good).