summaryrefslogtreecommitdiff
path: root/util/sbase/crypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/crypt.h')
-rw-r--r--util/sbase/crypt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/util/sbase/crypt.h b/util/sbase/crypt.h
new file mode 100644
index 00000000..2fd2932e
--- /dev/null
+++ b/util/sbase/crypt.h
@@ -0,0 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+struct crypt_ops {
+ void (*init)(void *);
+ void (*update)(void *, const void *, unsigned long);
+ void (*sum)(void *, uint8_t *);
+ void *s;
+};
+
+int cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t);
+int cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t);
+int cryptsum(struct crypt_ops *, int, const char *, uint8_t *);
+void mdprint(const uint8_t *, const char *, size_t);