Lock memory in crypt_safe alloc functions.
This patchset removes global memlockall() and replaces it with locking areas with keys.
Also it removes explicit proces priority increase (that works only for root) and moves it only for PBKDF benchmark (that is critical to calculate costs for PBKDF).
The original API function crypt_memory_lock is now empty and marked deprecated.
The patchset should fix issues #749 (closed), #755 (closed), #763 (closed).
Edited by Milan Broz