aboutsummaryrefslogtreecommitdiffstats
path: root/jni/ed25519/additions/zeroize.h
diff options
context:
space:
mode:
Diffstat (limited to 'jni/ed25519/additions/zeroize.h')
-rw-r--r--jni/ed25519/additions/zeroize.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/jni/ed25519/additions/zeroize.h b/jni/ed25519/additions/zeroize.h
new file mode 100644
index 00000000..80fcffb7
--- /dev/null
+++ b/jni/ed25519/additions/zeroize.h
@@ -0,0 +1,12 @@
+#ifndef __ZEROIZE_H__
+#define __ZEROIZE_H__
+
+#include <stdlib.h>
+
+#define ZEROIZE_STACK_SIZE 2048
+
+void zeroize(unsigned char* b, size_t len);
+
+void zeroize_stack();
+
+#endif