masqmail
annotate src/md5/md5.h @ 117:5ec5e6637049
added server-side SMTP SIZE support (patch by Paolo)
``SIZE 0'' (= unlimited) is currently not supported
client-side support was already implemented
author | meillo@marmaro.de |
---|---|
date | Thu, 01 Jul 2010 13:08:53 +0200 |
parents | 08114f7dcc23 |
children | 10da50168dab |
rev | line source |
---|---|
meillo@0 | 1 /* MD5.H - header file for MD5C.C |
meillo@0 | 2 */ |
meillo@0 | 3 |
meillo@0 | 4 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All |
meillo@0 | 5 rights reserved. |
meillo@0 | 6 |
meillo@0 | 7 License to copy and use this software is granted provided that it |
meillo@0 | 8 is identified as the "RSA Data Security, Inc. MD5 Message-Digest |
meillo@0 | 9 Algorithm" in all material mentioning or referencing this software |
meillo@0 | 10 or this function. |
meillo@0 | 11 |
meillo@0 | 12 License is also granted to make and use derivative works provided |
meillo@0 | 13 that such works are identified as "derived from the RSA Data |
meillo@0 | 14 Security, Inc. MD5 Message-Digest Algorithm" in all material |
meillo@0 | 15 mentioning or referencing the derived work. |
meillo@0 | 16 |
meillo@0 | 17 RSA Data Security, Inc. makes no representations concerning either |
meillo@0 | 18 the merchantability of this software or the suitability of this |
meillo@0 | 19 software for any particular purpose. It is provided "as is" |
meillo@0 | 20 without express or implied warranty of any kind. |
meillo@0 | 21 |
meillo@0 | 22 These notices must be retained in any copies of any part of this |
meillo@0 | 23 documentation and/or software. |
meillo@0 | 24 */ |
meillo@0 | 25 |
meillo@0 | 26 /* MD5 context. */ |
meillo@0 | 27 typedef struct { |
meillo@10 | 28 UINT4 state[4]; /* state (ABCD) */ |
meillo@10 | 29 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ |
meillo@10 | 30 unsigned char buffer[64]; /* input buffer */ |
meillo@0 | 31 } MD5_CTX; |
meillo@0 | 32 |
meillo@10 | 33 void MD5Init PROTO_LIST((MD5_CTX *)); |
meillo@10 | 34 void MD5Update PROTO_LIST((MD5_CTX *, unsigned char *, unsigned int)); |
meillo@10 | 35 void MD5Final PROTO_LIST((unsigned char[16], MD5_CTX *)); |