mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
These functions are a little bit special, because unlike everything else, they do dynamic memory allocations, and are more likely to fail. Applications are expected to check the return code, and these functions are tagged with ((warn_unused_result)) but applications may still ignore these. This is also an issue with JavaScript, when total memory hasn't been properly configured. To be safe, fill the buffer with non-deterministic bytes, that are unlikely to ever verify later.