Add -O option to pass options through to MTA..
[s-mailx.git] / md5.h
blob768e9ac185dee7818541d2bfb4a786c0ac0fc2bd
1 /*
2 * Heirloom mailx - a mail user agent derived from Berkeley Mail.
4 * Copyright (c) 2000-2004 Gunnar Ritter, Freiburg i. Br., Germany.
5 */
6 /*
7 * Derived from RFC 1321:
8 */
9 /* MD5.H - header file for MD5C.C
12 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
13 rights reserved.
15 License to copy and use this software is granted provided that it
16 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
17 Algorithm" in all material mentioning or referencing this software
18 or this function.
20 License is also granted to make and use derivative works provided
21 that such works are identified as "derived from the RSA Data
22 Security, Inc. MD5 Message-Digest Algorithm" in all material
23 mentioning or referencing the derived work.
25 RSA Data Security, Inc. makes no representations concerning either
26 the merchantability of this software or the suitability of this
27 software for any particular purpose. It is provided "as is"
28 without express or implied warranty of any kind.
30 These notices must be retained in any copies of any part of this
31 documentation and/or software.
34 /* Sccsid @(#)md5.h 1.8 (gritter) 3/4/06 */
37 * This version of MD5 has been changed such that any unsigned type with
38 * at least 32 bits is acceptable. This is important e.g. for Cray vector
39 * machines which provide only 64-bit integers.
41 typedef unsigned long md5_type;
43 typedef struct {
44 md5_type state[4]; /* state (ABCD) */
45 md5_type count[2]; /* number of bits, modulo 2^64 (lsb first) */
46 unsigned char buffer[64]; /* input buffer */
47 } MD5_CTX;
49 void MD5Init(MD5_CTX *);
50 void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
51 void MD5Final(unsigned char[16], MD5_CTX *);
53 void hmac_md5(unsigned char *, int, unsigned char *, int, void *);