crypto-tk icon indicating copy to clipboard operation
crypto-tk copied to clipboard

Memory locking is not thread safe

Open rbost opened this issue 6 years ago • 0 comments

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.

rbost avatar Dec 21 '18 19:12 rbost