cryptsetup API
Public cryptsetup API
|
Functions | |
void * | crypt_safe_alloc (size_t size) |
void | crypt_safe_free (void *data) |
void * | crypt_safe_realloc (void *data, size_t size) |
void | crypt_safe_memzero (void *data, size_t size) |
void * crypt_safe_alloc | ( | size_t | size | ) |
Allocate safe memory (content is safely wiped on deallocation).
size | size of memory in bytes |
void crypt_safe_free | ( | void * | data | ) |
Release safe memory, content is safely wiped. The pointer must be allocated with crypt_safe_alloc
data | pointer to memory to be deallocated |
void crypt_safe_memzero | ( | void * | data, |
size_t | size | ||
) |
Safe clear memory area (compile should not compile this call out).
data | pointer to memory to be cleared |
size | size of memory in bytes |
void * crypt_safe_realloc | ( | void * | data, |
size_t | size | ||
) |
Reallocate safe memory (content is copied and safely wiped on deallocation).
data | pointer to memory to be deallocated |
size | new size of memory in bytes |