Module: Miscellaneous
Definition in file PKIFMemoryUtils.h.
#include "PKIFdll.h"
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. |
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".
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().