Last change
on this file was 752, checked in by Silvan Scherrer, 13 years ago |
Samba Server: updated trunk to 3.6.9 2nd part
|
File size:
699 bytes
|
Rev | Line | |
---|
[752] | 1 | #ifndef MD5_H
|
---|
| 2 | #define MD5_H
|
---|
| 3 | #ifndef HEADER_MD5_H
|
---|
| 4 | /* Try to avoid clashes with OpenSSL */
|
---|
| 5 | #define HEADER_MD5_H
|
---|
| 6 | #endif
|
---|
| 7 |
|
---|
| 8 | #ifdef HAVE_MD5_H
|
---|
| 9 | /*
|
---|
| 10 | * Try to avoid clashes with Solaris MD5 implementation.
|
---|
| 11 | * ...where almost all implementations follows:
|
---|
| 12 | * "Schneier's Cryptography Classics Library"
|
---|
| 13 | */
|
---|
| 14 | #include <md5.h>
|
---|
| 15 | #else
|
---|
| 16 |
|
---|
| 17 | struct MD5Context {
|
---|
| 18 | uint32_t buf[4];
|
---|
| 19 | uint32_t bits[2];
|
---|
| 20 | uint8_t in[64];
|
---|
| 21 | };
|
---|
| 22 | typedef struct MD5Context MD5_CTX;
|
---|
| 23 |
|
---|
| 24 | void MD5Init(struct MD5Context *context);
|
---|
| 25 | void MD5Update(struct MD5Context *context, const uint8_t *buf,
|
---|
| 26 | size_t len);
|
---|
| 27 | void MD5Final(uint8_t digest[16], struct MD5Context *context);
|
---|
| 28 |
|
---|
| 29 | #endif /* !HAVE_MD5_H */
|
---|
| 30 |
|
---|
| 31 | #endif /* !MD5_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.