summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 723b1e7..efd785a 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -497,4 +497,9 @@ static inline size_t min_size_t(size_t a, size_t b) {
return (a < b) ? a : b;
}
+static inline void secure_memzero(void *s, size_t n) {
+ memset(s, 0, n);
+ asm volatile("" : : "m"(s));
+}
+
#endif /* _FASTD_FASTD_H_ */