crypto_generichash()
(BLAKE2b) might be a better choice.crypto_hash_sha*_init()
before updating or finalizing it.crypto_hash_sha*_final()
, the state should not be used any more, unless it is reinitialized using crypto_hash_sha*_init()
.crypto_hash()
.crypto_hash_sha256_BYTES
crypto_hash_sha512_BYTES
crypto_hash_sha256_state
crypto_hash_sha512_state