Clean up RPM spec for newer distributions
[clumanager.git] / librhcm / md5.h
blob6f8659d45c44442f30d21554a91864c8aa35f1bf
1 #ifndef MD5_H
2 #define MD5_H
4 #include <stdint.h>
6 struct MD5Context {
7 uint32_t buf[4];
8 uint32_t bits[2];
9 uint8_t in[64];
12 void MD5Init(struct MD5Context *context);
13 void MD5Update(struct MD5Context *context, uint8_t const *buf,
14 unsigned len);
15 void MD5Final(uint8_t digest[16], struct MD5Context *context);
16 void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
17 void clu_md5(char *buf, uint32_t buflen, char *md5sum);
20 * This is needed to make RSAREF happy on some MS-DOS compilers.
22 typedef struct MD5Context MD5_CTX;
23 #define md5_init MD5Init
24 #define md5_state_t MD5_CTX
25 #define md5_append MD5Update
26 #define md5_finish MD5Final
28 #endif /* !MD5_H */