tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / network / libnetapi / md5.h
blobf56a48a2a6279a043facb898840d4971e0b01649
1 /*
2 * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
3 * MD5 Message-Digest Algorithm (RFC 1321).
5 * Homepage:
6 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
8 * Author:
9 * Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
11 * This software was written by Alexander Peslyak in 2001. No copyright is
12 * claimed, and the software is hereby placed in the public domain.
13 * In case this attempt to disclaim copyright and place the software in the
14 * public domain is deemed null and void, then the software is
15 * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
16 * general public under the following terms:
18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted.
21 * There's ABSOLUTELY NO WARRANTY, express or implied.
23 * See md5.c for more information.
25 #ifndef _MD5_H
26 #define _MD5_H
29 /* Any 32-bit or wider unsigned integer data type will do */
30 typedef unsigned int MD5_u32plus;
32 typedef struct {
33 MD5_u32plus lo, hi;
34 MD5_u32plus a, b, c, d;
35 unsigned char buffer[64];
36 MD5_u32plus block[16];
37 } MD5_CTX;
39 extern void MD5_Init(MD5_CTX *ctx);
40 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
41 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
44 #endif