aboutsummaryrefslogtreecommitdiff
path: root/common/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/md5.h')
-rw-r--r--common/md5.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/common/md5.h b/common/md5.h
index b795bfa963..2a8cde5b0e 100644
--- a/common/md5.h
+++ b/common/md5.h
@@ -25,19 +25,17 @@
namespace Common {
-typedef struct
-{
- uint32 total[2];
- uint32 state[4];
- uint8 buffer[64];
-}
-md5_context;
-
-void md5_starts( md5_context *ctx );
-void md5_update( md5_context *ctx, const uint8 *input, uint32 length );
-void md5_finish( md5_context *ctx, uint8 digest[16] );
-
-bool md5_file( const char *name, uint8 digest[16], const char *directory = NULL, uint32 length = 0 );
+typedef struct {
+ uint32 total[2];
+ uint32 state[4];
+ uint8 buffer[64];
+} md5_context;
+
+void md5_starts(md5_context *ctx);
+void md5_update(md5_context *ctx, const uint8 *input, uint32 length);
+void md5_finish(md5_context *ctx, uint8 digest[16]);
+
+bool md5_file(const char *name, uint8 digest[16], const char *directory = NULL, uint32 length = 0);
} // End of namespace Common