williamr@2: /* MD5.H - header file for MD5C.C williamr@2: * $FreeBSD: src/sys/sys/md5.h,v 1.18 2005/02/10 12:20:42 phk Exp $ williamr@2: */ williamr@2: williamr@2: /*- williamr@2: williamr@2: © Portions copyright (c) 2005-2006 Nokia Corporation. williamr@2: All rights reserved. williamr@2: * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved. williamr@2: Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All williamr@2: rights reserved. williamr@2: williamr@2: License to copy and use this software is granted provided that it williamr@2: is identified as the "RSA Data Security, Inc. MD5 Message-Digest williamr@2: Algorithm" in all material mentioning or referencing this software williamr@2: or this function. williamr@2: williamr@2: License is also granted to make and use derivative works provided williamr@2: that such works are identified as "derived from the RSA Data williamr@2: Security, Inc. MD5 Message-Digest Algorithm" in all material williamr@2: mentioning or referencing the derived work. williamr@2: williamr@2: RSA Data Security, Inc. makes no representations concerning either williamr@2: the merchantability of this software or the suitability of this williamr@2: software for any particular purpose. It is provided "as is" williamr@2: without express or implied warranty of any kind. williamr@2: williamr@2: These notices must be retained in any copies of any part of this williamr@2: documentation and/or software. williamr@2: */ williamr@2: williamr@2: #ifndef _SYS_MD5_H_ williamr@2: #define _SYS_MD5_H_ williamr@2: /* MD5 context. */ williamr@2: williamr@2: #if (defined(__SYMBIAN32__) && !defined(SYMBIAN)) williamr@2: #define SYMBIAN williamr@2: #endif williamr@2: williamr@2: #ifdef __SYMBIAN32__ williamr@2: #include williamr@2: #endif williamr@2: williamr@2: typedef struct MD5Context { williamr@2: u_int32_t state[4]; /* state (ABCD) */ williamr@2: u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ williamr@2: unsigned char buffer[64]; /* input buffer */ williamr@2: } MD5_CTX; williamr@2: williamr@2: #include williamr@2: williamr@2: __BEGIN_DECLS williamr@2: void MD5Init (MD5_CTX *); williamr@2: void MD5Update (MD5_CTX *, const unsigned char *, unsigned int); williamr@2: void MD5Final (unsigned char [16], MD5_CTX *); williamr@2: __END_DECLS williamr@2: #endif /* _SYS_MD5_H_ */