diff options
Diffstat (limited to 'jackd/md5.h')
-rw-r--r-- | jackd/md5.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/jackd/md5.h b/jackd/md5.h index de5ddf3..358c6ea 100644 --- a/jackd/md5.h +++ b/jackd/md5.h @@ -36,34 +36,33 @@ * external programs only. The MD5 routines themselves reference the * signature as 4 unsigned 32-bit integers. */ -#define MD5_SIZE 16 +#define MD5_SIZE 16 /* * NOTE: the following is assumed to generate a 32-bit unsigned data * type. */ -typedef unsigned int md5_uint32; -#define MAX_MD5_UINT32 ((md5_uint32)4294967295U) +typedef unsigned int md5_uint32; +#define MAX_MD5_UINT32 ((md5_uint32)4294967295U) /* * The MD5 algorithm works on blocks of characters of 64 bytes. This * is an internal value only and is not necessary for external use. */ -#define MD5_BLOCK_SIZE 64 +#define MD5_BLOCK_SIZE 64 /* * Structure to save state of computation between the single steps. */ -typedef struct -{ - md5_uint32 md_A; /* accumulater 1 */ - md5_uint32 md_B; /* accumulater 2 */ - md5_uint32 md_C; /* accumulater 3 */ - md5_uint32 md_D; /* accumulater 4 */ - - md5_uint32 md_total[2]; /* totaling storage */ - md5_uint32 md_buf_len; /* length of the storage buffer */ - char md_buffer[MD5_BLOCK_SIZE * 2]; /* character storage buffer */ +typedef struct { + md5_uint32 md_A; /* accumulater 1 */ + md5_uint32 md_B; /* accumulater 2 */ + md5_uint32 md_C; /* accumulater 3 */ + md5_uint32 md_D; /* accumulater 4 */ + + md5_uint32 md_total[2]; /* totaling storage */ + md5_uint32 md_buf_len; /* length of the storage buffer */ + char md_buffer[MD5_BLOCK_SIZE * 2]; /* character storage buffer */ } md5_t; /*<<<<<<<<<< The below prototypes are auto-generated by fillproto */ @@ -89,7 +88,7 @@ typedef struct * md5_p - Pointer to md5 structure that we are initializing. */ extern -void md5_init(md5_t *md5_p); +void md5_init(md5_t *md5_p); /* * md5_process @@ -115,7 +114,7 @@ void md5_init(md5_t *md5_p); * buf_len - The length of the buffer. */ extern -void md5_process(md5_t *md5_p, const void *buffer, +void md5_process(md5_t *md5_p, const void *buffer, const unsigned int buf_len); /* @@ -138,7 +137,7 @@ void md5_process(md5_t *md5_p, const void *buffer, * signature - A 16 byte buffer that will contain the MD5 signature. */ extern -void md5_finish(md5_t *md5_p, void *signature); +void md5_finish(md5_t *md5_p, void *signature); /* * md5_buffer @@ -162,7 +161,7 @@ void md5_finish(md5_t *md5_p, void *signature); * signature - A 16 byte buffer that will contain the MD5 signature. */ extern -void md5_buffer(const char *buffer, const unsigned int buf_len, +void md5_buffer(const char *buffer, const unsigned int buf_len, void *signature); /* @@ -187,7 +186,7 @@ void md5_buffer(const char *buffer, const unsigned int buf_len, * str_len - the length of the string. */ extern -void md5_sig_to_string(void *signature, char *str, const int str_len); +void md5_sig_to_string(void *signature, char *str, const int str_len); /* * md5_sig_from_string @@ -209,7 +208,7 @@ void md5_sig_to_string(void *signature, char *str, const int str_len); * characters per MD5 byte). */ extern -void md5_sig_from_string(void *signature, const char *str); +void md5_sig_from_string(void *signature, const char *str); /*<<<<<<<<<< This is end of the auto-generated output from fillproto. */ |