PKIFMemoryUtils.cpp

Go to the documentation of this file.
00001 
00009 #include "PKIFMemoryUtils.h"
00010 
00012 // Use this instead for zeroing passwords and keys
00022 void * PKIFZero(
00024     void * buf,
00026     size_t len)
00027 {
00028     volatile unsigned char * p = (volatile unsigned char *)buf;
00029     while(len--) {
00030         *p++ = 0x00;
00031     }
00032     return buf;
00033 }
00034 
00035 // These were in CACOCSPChecker.cpp with a note that they were moved there from TAP.
00036 // They didn't belong there either.
00044 CAC_API void* PKIFNew(
00046     size_t size)
00047 {
00048     return ::operator new(size);
00049 }
00057 void CAC_API PKIFDelete(
00059     void* p)
00060 {
00061     if(p) ::operator delete(p);
00062 }
00063 

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