Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/libfido2/openbsd-compat/explicit_bzero_win32.c
39534 views
1
/*
2
* Public domain.
3
* Win32 explicit_bzero compatibility shim.
4
*/
5
6
#include "openbsd-compat.h"
7
8
#if !defined(HAVE_EXPLICIT_BZERO) && defined(_WIN32)
9
10
#include <windows.h>
11
#include <string.h>
12
13
void
14
explicit_bzero(void *buf, size_t len)
15
{
16
SecureZeroMemory(buf, len);
17
}
18
19
#endif /* !defined(HAVE_EXPLICIT_BZERO) && defined(_WIN32) */
20
21