X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcontrib%2Flibqxt-2007-10-24%2Fsrc%2Fcrypto%2Fthirdparty%2Fmd4.h;fp=src%2Fcontrib%2Flibqxt-2007-10-24%2Fsrc%2Fcrypto%2Fthirdparty%2Fmd4.h;h=b44e465605fb0ec557a5d0b5ba460399e30c2f93;hp=0000000000000000000000000000000000000000;hb=a634acadbcf6017474f68a3eaf7cb632660e9e49;hpb=cd122ca8e0d2c0ffc5397e0a813c75d791a7e6e3 diff --git a/src/contrib/libqxt-2007-10-24/src/crypto/thirdparty/md4.h b/src/contrib/libqxt-2007-10-24/src/crypto/thirdparty/md4.h new file mode 100644 index 00000000..b44e4656 --- /dev/null +++ b/src/contrib/libqxt-2007-10-24/src/crypto/thirdparty/md4.h @@ -0,0 +1,28 @@ +/* + * This is an OpenSSL-compatible implementation of the RSA Data Security, + * Inc. MD4 Message-Digest Algorithm. + * + * Written by Solar Designer in 2001, and placed in + * the public domain. See md4.c for more information. + */ + +#ifndef __MD4_H +#define __MD4_H + +#include + +#define MD4_RESULTLEN (128/8) + +struct md4_context { + quint32 lo, hi; + quint32 a, b, c, d; + unsigned char buffer[64]; + quint32 block[MD4_RESULTLEN]; +}; + +static void md4_init(struct md4_context *ctx); +static void md4_update(struct md4_context *ctx, const unsigned char *data, size_t size); +static void md4_final(struct md4_context *ctx, unsigned char result[MD4_RESULTLEN]); + + +#endif