Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::crypto::detail::secure_mem Namespace Reference

Functions

bool lock_memory (void *ptr, size_t size)
 Lock a memory region so it is not paged to swap.
 
void unlock_memory (void *ptr, size_t size)
 Unlock a previously locked memory region.
 
void secure_zero (void *ptr, size_t size)
 Securely zero a memory region (not optimized out by the compiler).
 

Function Documentation

◆ lock_memory()

bool signet::forge::crypto::detail::secure_mem::lock_memory ( void *  ptr,
size_t  size 
)
inline

Lock a memory region so it is not paged to swap.

Returns
true if the lock succeeded, false on failure (non-fatal).

Definition at line 273 of file cipher_interface.hpp.

◆ secure_zero()

void signet::forge::crypto::detail::secure_mem::secure_zero ( void *  ptr,
size_t  size 
)
inline

Securely zero a memory region (not optimized out by the compiler).

Definition at line 303 of file cipher_interface.hpp.

◆ unlock_memory()

void signet::forge::crypto::detail::secure_mem::unlock_memory ( void *  ptr,
size_t  size 
)
inline

Unlock a previously locked memory region.

Definition at line 289 of file cipher_interface.hpp.