aboutsummaryrefslogtreecommitdiffstats
path: root/serve/sha256.h
diff options
context:
space:
mode:
Diffstat (limited to 'serve/sha256.h')
-rw-r--r--serve/sha256.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/serve/sha256.h b/serve/sha256.h
new file mode 100644
index 0000000..e525683
--- /dev/null
+++ b/serve/sha256.h
@@ -0,0 +1,8 @@
+#ifndef PURE_SHA256_H
+#define PURE_SHA256_H
+#include <stddef.h>
+
+/* SHA-256 (FIPS 180-4) of size bytes: an app's tokens are kept as these
+ * (docs/design/017's 3b), with no OpenSSL loaded to check them. */
+void pure_sha256(const void *data, size_t size, unsigned char out[32]);
+#endif