|
a/libupnpp/md5.hxx |
|
b/libupnpp/md5.hxx |
|
... |
|
... |
31 |
namespace UPnPP {
|
31 |
namespace UPnPP {
|
32 |
|
32 |
|
33 |
/* Base functions from original file */
|
33 |
/* Base functions from original file */
|
34 |
/* MD5 context. */
|
34 |
/* MD5 context. */
|
35 |
typedef struct MD5Context {
|
35 |
typedef struct MD5Context {
|
36 |
unsigned int state[4]; /* state (ABCD) */
|
36 |
unsigned int state[4]; /* state (ABCD) */
|
37 |
unsigned int count[2]; /* number of bits, modulo 2^64 (lsb first) */
|
37 |
unsigned int count[2]; /* number of bits, modulo 2^64 (lsb first) */
|
38 |
unsigned char buffer[64]; /* input buffer */
|
38 |
unsigned char buffer[64]; /* input buffer */
|
39 |
} MD5_CTX;
|
39 |
} MD5_CTX;
|
40 |
|
40 |
|
41 |
extern void MD5Init (MD5_CTX *);
|
41 |
extern void MD5Init (MD5_CTX *);
|
42 |
extern void MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
|
42 |
extern void MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
|
43 |
extern void MD5Final (unsigned char [16], MD5_CTX *);
|
43 |
extern void MD5Final (unsigned char [16], MD5_CTX *);
|