8#ifndef BOTAN_MLOCK_ALLOCATOR_H_
9#define BOTAN_MLOCK_ALLOCATOR_H_
11#include <botan/types.h>
23 void*
allocate(
size_t num_elems,
size_t elem_size);
25 bool deallocate(
void* p,
size_t num_elems,
size_t elem_size)
noexcept;
36 std::unique_ptr<Memory_Pool> m_pool;
37 std::vector<void*> m_locked_pages;
static mlock_allocator & instance()
mlock_allocator & operator=(const mlock_allocator &)=delete
bool deallocate(void *p, size_t num_elems, size_t elem_size) noexcept
void * allocate(size_t num_elems, size_t elem_size)
mlock_allocator(const mlock_allocator &)=delete
int(* final)(unsigned char *, CTX *)