PKIFMemoryUtils.cpp File Reference


Detailed Description

Subsystem: Miscellaneous/Utility (PKIFUTILS)

Module: Miscellaneous

Id
PKIFMemoryUtils.cpp 9905 2009-05-13 14:14:33Z agalustyan

Definition in file PKIFMemoryUtils.cpp.

#include "PKIFMemoryUtils.h"

Include dependency graph for PKIFMemoryUtils.cpp:

Go to the source code of this file.

Functions

void * PKIFZero (void *buf, size_t len)
 Some compilers will optimize away memset under certain circumstances.
CAC_API void * PKIFNew (size_t size)
void CAC_API PKIFDelete (void *p)


Function Documentation

void CAC_API PKIFDelete ( void *  p  ) 

CAC_API void* PKIFNew ( size_t  size  ) 

Interface: External

This function creates an object of size specified by the parameter size and returns a pointer to that object.

Returns:
None
Parameters:
size  [in] size_t is a typedef for unsigned integer

Definition at line 44 of file PKIFMemoryUtils.cpp.

Referenced by PKIFAlloc< T >::allocate(), CPKIFSimplePasswordCallback::operator()(), and CPKIFCAPICredential2::SetPassword().

void* PKIFZero ( void *  buf,
size_t  len 
)

Some compilers will optimize away memset under certain circumstances.

Interface: External

This function is used for zeroing passwords and keys. Some compilers will optimize away "memset" invocations under certain circumstances. Accordingly, this function should be used in place of calls to "memset".

Returns:
None
Parameters:
buf  [in] Pointer to the buffer to be zeroized
len  [in] Buffer byte length

Definition at line 22 of file PKIFMemoryUtils.cpp.

Referenced by _MakeCredentialFromP8File(), CPKIFCryptoPPKAContext::SetSecret(), UnwrapSymmKey(), WrapSymmKey(), CPKIFCAPIRawCryptContext::~CPKIFCAPIRawCryptContext(), CPKIFCryptoPPCredential::~CPKIFCryptoPPCredential(), CPKIFCryptoPPKAContext::~CPKIFCryptoPPKAContext(), and CPKIFNSSCredential::~CPKIFNSSCredential().


Generated on Mon Nov 15 11:18:28 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6