equal
deleted
inserted
replaced
|
1 /* |
|
2 * This is an OpenSSL-compatible implementation of the RSA Data Security, |
|
3 * Inc. MD4 Message-Digest Algorithm. |
|
4 * |
|
5 * Written by Solar Designer <solar@openwall.com> in 2001, and placed in |
|
6 * the public domain. See md4.c for more information. |
|
7 */ |
|
8 |
|
9 #ifndef __MD4_H |
|
10 #define __MD4_H |
|
11 |
|
12 #include <qglobal.h> |
|
13 |
|
14 QT_BEGIN_NAMESPACE |
|
15 |
|
16 #define MD4_RESULTLEN (128/8) |
|
17 |
|
18 struct md4_context { |
|
19 quint32 lo, hi; |
|
20 quint32 a, b, c, d; |
|
21 unsigned char buffer[64]; |
|
22 quint32 block[MD4_RESULTLEN]; |
|
23 }; |
|
24 |
|
25 static void md4_init(struct md4_context *ctx); |
|
26 static void md4_update(struct md4_context *ctx, const unsigned char *data, size_t size); |
|
27 static void md4_final(struct md4_context *ctx, unsigned char result[MD4_RESULTLEN]); |
|
28 |
|
29 QT_END_NAMESPACE |
|
30 |
|
31 #endif |