Closed tel closed 7 years ago
Is this still accurate? I read:
sodium_init() initializes the library and should be called before any other function provided by Sodium. The function can be called more than once, and can be called simultaneously from multiple threads since version 1.0.11. After this function returns, all of the other functions provided by Sodium will be thread-safe.
Yep, this is quite outdated. All functions are thread-safe nowadays.
The random generation functions are not threadsafe, so it's unclear what their behavior will be in concurrent settings.
randombytes_random
randombytes_uniform
randombytes_buf
randombytes_close
crypto_sign_keypair
, andcrypto_box_keypair