PKIFMemoryUtils.h File Reference


Detailed Description

Subsystem: Miscellaneous/Utility (PKIFUTILS)

Module: Miscellaneous

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

Definition in file PKIFMemoryUtils.h.

#include "PKIFdll.h"

Include dependency graph for PKIFMemoryUtils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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


Function Documentation

CAC_API 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