|
Security Scol plugin
|
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< V > |
| Template class member Rebind. More... | |
| class | NullAllocator< T > |
| NULL allocator. More... | |
| class | FixedSizeAllocatorWithCleanup< T, S, A, T_Align16 > |
| Static secure memory block with cleanup. More... | |
| class | FixedSizeAllocatorWithCleanup< T, S, A, true > |
| Static secure memory block with cleanup. More... | |
| class | FixedSizeAllocatorWithCleanup< T, S, A, false > |
| Static secure memory block with cleanup. More... | |
| class | SecBlock< T, A > |
| Secure memory block with allocator and cleanup. More... | |
| 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(T_type) |
Typedefs | |
| typedef SecBlock< byte > | SecByteBlock |
| typedef SecBlock< word > | SecWordBlock |
| typedef SecBlock< byte, AllocatorWithCleanup< byte, true > > | AlignedSecByteBlock |
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. | |
| template<class T , bool A, class V , bool B> | |
| bool | operator== (const CryptoPP::AllocatorWithCleanup< T, A > &, const CryptoPP::AllocatorWithCleanup< V, B > &) |
| template<class T , bool A, class V , bool B> | |
| bool | operator!= (const CryptoPP::AllocatorWithCleanup< T, A > &, const CryptoPP::AllocatorWithCleanup< V, B > &) |
| template<class T , class A > | |
| NAMESPACE_END void | swap (CryptoPP::SecBlock< T, A > &a, CryptoPP::SecBlock< T, A > &b) |
| Swap two SecBlocks. | |
Variables | |
| CRYPTOPP_DLL_TEMPLATE_CLASS | AllocatorWithCleanup< byte > |
| CRYPTOPP_DLL_TEMPLATE_CLASS | AllocatorWithCleanup< word16 > |
| CRYPTOPP_DLL_TEMPLATE_CLASS | AllocatorWithCleanup< word32 > |
| CRYPTOPP_DLL_TEMPLATE_CLASS | AllocatorWithCleanup< word64 > |
Classes and functions for secure memory allocations.
Definition in file secblock.h.
| #define CRYPTOPP_INHERIT_ALLOCATOR_TYPES | ( | T_type | ) |
Definition at line 129 of file secblock.h.
| typedef SecBlock<byte, AllocatorWithCleanup<byte, true> > AlignedSecByteBlock |
Definition at line 1234 of file secblock.h.
| typedef SecBlock<byte> SecByteBlock |
Definition at line 1232 of file secblock.h.
| typedef SecBlock<word> SecWordBlock |
Definition at line 1233 of file secblock.h.
|
inline |
Definition at line 1277 of file secblock.h.
|
inline |
Definition at line 1275 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 149 of file secblock.h.
|
inline |
Swap two SecBlocks.
| T | class or type |
| A | AllocatorBase derived class for allocation and cleanup |
Definition at line 1289 of file secblock.h.
| CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup< byte > |
Definition at line 279 of file secblock.h.
| CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup< word16 > |
Definition at line 280 of file secblock.h.
| CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup< word32 > |
Definition at line 281 of file secblock.h.
| CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup< word64 > |
Definition at line 282 of file secblock.h.