aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-05-29 05:55:05 -0400
committerJack Lloyd <[email protected]>2017-05-29 05:55:05 -0400
commit41b1e738dbcbf2c33b418d2da235a56ad11feb9a (patch)
treec94de896d22f9ecd1406c2b0f0b314e27af22414 /src/lib/ffi/ffi.h
parentf1343ae9eceb3cc3aed1331a27b397f975ae84c3 (diff)
Add FFI func botan_scrub_mem
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r--src/lib/ffi/ffi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h
index 5ce86a9b0..d194c4794 100644
--- a/src/lib/ffi/ffi.h
+++ b/src/lib/ffi/ffi.h
@@ -147,6 +147,12 @@ doesn't exactly work well either!
*/
BOTAN_DLL int botan_same_mem(const uint8_t* x, const uint8_t* y, size_t len);
+/**
+* Clear out memory using a system specific approach to bypass elision by the
+* compiler (currently using RtlSecureZeroMemory or tricks with volatile pointers).
+*/
+BOTAN_DLL int botan_scrub_mem(uint8_t* mem, size_t bytes);
+
#define BOTAN_FFI_HEX_LOWER_CASE 1
/**