A template of a class specifying std::unique_ptr to manage pointers to sensitive data allocated using one of the allocation functions of the chsvmem.h header, such as AllocateData or AllocateString, deallocating memory, pointed to by the managed pointers, using the SecureFreeData function randomizing data before the actual deallocation. More...
#include <chsvmem.h>
Public Types | |
typedef std::remove_pointer< ValueType >::type | element_type |
Public Member Functions | |
AutoDataSec (element_type *p=NULL) | |
constructs an AutoDataSec object, possibly initializing it with a pointer to manage. More... | |
AutoDataSec (AutoDataSec &&rrRight) | |
Standard move constructor. | |
AutoDataSec & | operator= (AutoDataSec &&rrRight) |
Standard move assignment operator. | |
A template of a class specifying std::unique_ptr to manage pointers to sensitive data allocated using one of the allocation functions of the chsvmem.h header, such as AllocateData or AllocateString, deallocating memory, pointed to by the managed pointers, using the SecureFreeData function randomizing data before the actual deallocation.
ValueType | is a type of objects a managed pointer is to point to. |