summaryrefslogtreecommitdiffstats
path: root/src/pass.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 22:13:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 22:13:02 +0000
commite244c93d21bcacf1a0eedefdcc3018a362274796 (patch)
tree857e0d7bcf20546b38fff97a8702c2c1240bc23b /src/pass.h
parentInitial commit. (diff)
downloadnwipe-e244c93d21bcacf1a0eedefdcc3018a362274796.tar.xz
nwipe-e244c93d21bcacf1a0eedefdcc3018a362274796.zip
Adding upstream version 0.36.upstream/0.36
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/pass.h b/src/pass.h
new file mode 100644
index 0000000..8f27f43
--- /dev/null
+++ b/src/pass.h
@@ -0,0 +1,33 @@
+/*
+ * pass.h: Routines that read and write patterns to block devices.
+ *
+ * Copyright Darik Horn <dajhorn-dban@vanadac.com>.
+ *
+ * Modifications to original dwipe Copyright Andy Beverley <andy@andybev.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+#ifndef PASS_H_
+#define PASS_H_
+
+int nwipe_random_pass( nwipe_context_t* c );
+int nwipe_random_verify( nwipe_context_t* c );
+int nwipe_static_pass( nwipe_context_t* c, nwipe_pattern_t* pattern );
+int nwipe_static_verify( nwipe_context_t* c, nwipe_pattern_t* pattern );
+
+void test_functionn( int count, nwipe_context_t** c );
+
+#endif /* PASS_H_ */