crypto-tk
crypto-tk copied to clipboard
Memory locking is not thread safe
The memory locking on cryptographic keys (through libsodium) is not thread safe, making it hard to use on real use cases, without cheating (ie. copying the buffers meant to initialize keys).
We should implement a fix that is efficient: relying on locks seams too expensive, lock-free mechanisms seem necessary, yet not trivial to implement.