diff options
Diffstat (limited to 'crypto/compat/explicit_bzero_win.c')
-rw-r--r-- | crypto/compat/explicit_bzero_win.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/compat/explicit_bzero_win.c b/crypto/compat/explicit_bzero_win.c new file mode 100644 index 0000000..0d09d90 --- /dev/null +++ b/crypto/compat/explicit_bzero_win.c | |||
@@ -0,0 +1,13 @@ | |||
1 | /* | ||
2 | * Public domain. | ||
3 | * Win32 explicit_bzero compatibility shim. | ||
4 | */ | ||
5 | |||
6 | #include <windows.h> | ||
7 | #include <string.h> | ||
8 | |||
9 | void | ||
10 | explicit_bzero(void *buf, size_t len) | ||
11 | { | ||
12 | SecureZeroMemory(buf, len); | ||
13 | } | ||