Expand description
Tiered pool of mlock’d slab slots and standalone guard-paged buffers.
§Initialization
The global memory pool is lazily initialized on first use. For reliable startup-time
error reporting, call init_pool() explicitly before using any [MemoryEnclave] or
pool_acquire() operations.
Structs§
- Pool
Slot - A handle to a locked memory region containing secret data.
- Tiered
Pool - Statically-owned tiered pool.
- Tiered
Pool Config - Configuration for the tiered pool.
Functions§
- coffer_
view - Get a
PoolSlotcontaining the Coffer master key. Release promptly after use; the slot is from the pool and blocks that slot while held. - init_
pool - Initialize the global pool with a custom config.
- pool_
acquire - Acquire a pool slot for
sizebytes. - pool_
release - Release a pool slot. The slot’s contents are zeroized.
Prefer dropping the
PoolSlotdirectly; this is provided for explicit release.