aboutsummaryrefslogtreecommitdiff
path: root/src/support/cleanse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/cleanse.h')
-rw-r--r--src/support/cleanse.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/support/cleanse.h b/src/support/cleanse.h
index 5298214e44..b03520315d 100644
--- a/src/support/cleanse.h
+++ b/src/support/cleanse.h
@@ -8,7 +8,8 @@
#include <stdlib.h>
-// Attempt to overwrite data in the specified memory span.
+/** Secure overwrite a buffer (possibly containing secret data) with zero-bytes. The write
+ * operation will not be optimized out by the compiler. */
void memory_cleanse(void *ptr, size_t len);
#endif // BITCOIN_SUPPORT_CLEANSE_H