Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/Compress/Rar29/Original/sha1.hpp')
-rwxr-xr-x7zip/Compress/Rar29/Original/sha1.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/7zip/Compress/Rar29/Original/sha1.hpp b/7zip/Compress/Rar29/Original/sha1.hpp
new file mode 100755
index 00000000..96cef44e
--- /dev/null
+++ b/7zip/Compress/Rar29/Original/sha1.hpp
@@ -0,0 +1,16 @@
+#ifndef _RAR_SHA1_
+#define _RAR_SHA1_
+
+#define HW 5
+
+typedef struct {
+ uint32 state[5];
+ uint32 count[2];
+ unsigned char buffer[64];
+} hash_context;
+
+void hash_initial( hash_context * c );
+void hash_process( hash_context * c, unsigned char * data, unsigned len );
+void hash_final( hash_context * c, uint32[HW] );
+
+#endif