Closed vitock closed 1 year ago
Good catch.
The type for these parameters is buf
. I guess it should be something like buf_optional
.
It's quite surprising to see that such type is not implemented yet, as there are other functions with nullable fixed-size buffers.
in blake2b-ref.c I found that both salt and personal could be null.
how could I set salt without setting ctx ?
OR, blake2b has a default salt or ctx ? I tried Uint8Array filled with 0, it did not generate correct hash