summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt/shs.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypt/shs.h')
-rw-r--r--lib/libcrypt/shs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libcrypt/shs.h b/lib/libcrypt/shs.h
new file mode 100644
index 0000000..6d8959e
--- /dev/null
+++ b/lib/libcrypt/shs.h
@@ -0,0 +1,14 @@
+
+typedef struct {
+ unsigned long H[5];
+ unsigned long W[80];
+ int lenW;
+ unsigned long sizeHi,sizeLo;
+} SHS_CTX;
+
+
+void shsInit(SHS_CTX *ctx);
+void shsUpdate(SHS_CTX *ctx, const unsigned char *dataIn, int len);
+void shsFinal(SHS_CTX *ctx, unsigned char hashOut[20]);
+void shsBlock(const unsigned char *dataIn, int len, unsigned char hashOut[20]);
+
OpenPOWER on IntegriCloud