Files
libstrophe-gh/src/md5.h
Dmitry Podgorny 562a06425b Unify coding style
@sjaeckel integrated clang-format with formal coding style. Run his
script and commit changes.

There are pros and cons of this commit.

Mixed coding style is a "broken window". A good single style simplifies
reading and writing code.

On the other hand, this is a big change which will lead to conflicts.
2020-01-31 01:16:50 +02:00

30 lines
560 B
C

/* md5.h
** interface to MD5 hash function
**
** This code is in the Public Domain.
*/
/** @file
* MD5 hash API.
*/
#ifndef MD5_H
#define MD5_H
/* make sure the stdint.h types are available */
#include "ostypes.h"
struct MD5Context {
uint32_t buf[4];
uint32_t bits[2];
unsigned char in[64];
};
void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context,
unsigned char const *buf,
uint32_t len);
void MD5Final(unsigned char digest[16], struct MD5Context *context);
#endif /* !MD5_H */