neobytes/src/support
Alexander Block d1debfc267
Implement mt_pooled_secure_allocator and use it for BLS secure allocation (#2375)
* Add pooled_secure_allocator and mt_pooled_secure_allocator

* Use mt_pooled_secure_allocator for BLS secure allocation

The old solution relied on thread-local-storage and was thus not compatible
to libc6 2.11 (which is the minimum supported version we use).

Also, the old solution turned out to be erroneous. It would have crashed
or memory leaked when ownership of CBLSPrivateKey would be handled over
to another thread.

* Add new header files to Makefile.am

* Fix copyright headers of new files

* Bail out early from secure deallocation

* Clean up global BLS keys when shutting down
2018-10-26 07:04:22 +02:00
..
allocators Implement mt_pooled_secure_allocator and use it for BLS secure allocation (#2375) 2018-10-26 07:04:22 +02:00
cleanse.cpp
cleanse.h Merge #10308: [wallet] Securely erase potentially sensitive keys/values 2018-01-26 12:59:29 +01:00
events.h Merge #9387: [Refactor] RAII of libevent stuff using unique ptrs with deleters 2018-01-18 07:33:44 +01:00
lockedpool.cpp
lockedpool.h