Crypto++
5.6.3
Free C++ class library of cryptographic schemes
|
Classes and functions for secure memory allocations. More...
Go to the source code of this file.
Classes | |
class | AllocatorBase< T > |
Base class for all allocators used by SecBlock. More... | |
class | AllocatorWithCleanup< T, T_Align16 > |
Allocates a block of memory with cleanup. More... | |
struct | AllocatorWithCleanup< T, T_Align16 >::rebind< U > |
class | NullAllocator< T > |
NULL allocator. More... | |
class | FixedSizeAllocatorWithCleanup< T, S, A, T_Align16 > |
Static secure memory block with cleanup. More... | |
class | SecBlock< T, A > |
Secure memory block with allocator and cleanup. More... | |
class | SecByteBlock |
SecByteBlock is a SecBlock<byte> typedef. More... | |
class | SecWordBlock |
SecWordBlock is a SecBlock<word> typedef. More... | |
class | SecBlock< byte, AllocatorWithCleanup< byte, true > > |
class | FixedSizeSecBlock< T, S, A > |
Fixed size stack-based SecBlock. More... | |
class | FixedSizeAlignedSecBlock< T, S, T_Align16 > |
Fixed size stack-based SecBlock with 16-byte alignment. More... | |
class | SecBlockWithHint< T, S, A > |
Stack-based SecBlock that grows into the heap. More... | |
Macros | |
#define | CRYPTOPP_INHERIT_ALLOCATOR_TYPES |
Functions | |
template<class T , class A > | |
A::pointer | StandardReallocate (A &alloc, T *oldPtr, typename A::size_type oldSize, typename A::size_type newSize, bool preserve) |
Reallocation function. More... | |
template<class T , bool A, class U , bool B> | |
bool | operator== (const ::AllocatorWithCleanup< T, A > &, const ::AllocatorWithCleanup< U, B > &) |
template<class T , bool A, class U , bool B> | |
bool | operator!= (const ::AllocatorWithCleanup< T, A > &, const ::AllocatorWithCleanup< U, B > &) |
template<class T , class A > | |
void | swap (::SecBlock< T, A > &a,::SecBlock< T, A > &b) |
Classes and functions for secure memory allocations.
Definition in file secblock.h.
#define CRYPTOPP_INHERIT_ALLOCATOR_TYPES |
Definition at line 96 of file secblock.h.
A::pointer StandardReallocate | ( | A & | alloc, |
T * | oldPtr, | ||
typename A::size_type | oldSize, | ||
typename A::size_type | newSize, | ||
bool | preserve | ||
) |
Reallocation function.
T | the class or type |
A | the class or type's allocator |
alloc | the allocator |
oldPtr | the previous allocation |
oldSize | the size of the previous allocation |
newSize | the new, requested size |
preserve | flag that indicates if the old allocation should be preserved |
Definition at line 116 of file secblock.h.
References memcpy_s(), and STDMIN().
Referenced by AllocatorWithCleanup< word32 >::reallocate().