chsvlib
chsv helper source code
AutoDataSec< ValueType > Struct Template Reference

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>

Inheritance diagram for AutoDataSec< ValueType >:
Collaboration diagram for AutoDataSec< ValueType >:

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.
 
AutoDataSecoperator= (AutoDataSec &&rrRight)
 Standard move assignment operator.
 

Detailed Description

template<class ValueType = void>
struct Chusov::Memory::AutoDataSec< ValueType >

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.

Template Parameters
ValueTypeis a type of objects a managed pointer is to point to.

The documentation for this struct was generated from the following file: