paixaop / node-sodium

Port of the lib sodium encryption library to Node.js
MIT License
351 stars 126 forks source link

Allow passing a `null` key to `crypto_generichash_blake2b_init` #139

Closed cakoose closed 5 years ago

cakoose commented 5 years ago

[Edit: fixed the details of which functions accept null and which ones don't.]

In node-sodium

In the underlying libsodium, the docs say that you can pass a null key: https://libsodium.gitbook.io/doc/hashing/generic_hashing

Is it ok to change node-sodium's and crypto_generichash_init and crypto_generichash_blake2b_init to accept a null key as well?