add win32-specific explicit_bzero implementation

This commit is contained in:
Brent Cook
2015-08-03 06:56:59 -05:00
parent 058e3ebe77
commit c66d80a438
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/*
* Public domain.
* Win32 explicit_bzero compatibility shim.
*/
#include <windows.h>
#include <string.h>
void
explicit_bzero(void *buf, size_t len)
{
SecureZeroMemory(buf, len);
}