1.1 --- a/epoc32/include/stdapis/sys/md5.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/sys/md5.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,58 @@
1.4 -md5.h
1.5 +/* MD5.H - header file for MD5C.C
1.6 + * $FreeBSD: src/sys/sys/md5.h,v 1.18 2005/02/10 12:20:42 phk Exp $
1.7 + */
1.8 +
1.9 +/*-
1.10 +
1.11 + © Portions copyright (c) 2005-2006 Nokia Corporation.
1.12 + All rights reserved.
1.13 +* © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
1.14 + Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
1.15 +rights reserved.
1.16 +
1.17 +License to copy and use this software is granted provided that it
1.18 +is identified as the "RSA Data Security, Inc. MD5 Message-Digest
1.19 +Algorithm" in all material mentioning or referencing this software
1.20 +or this function.
1.21 +
1.22 +License is also granted to make and use derivative works provided
1.23 +that such works are identified as "derived from the RSA Data
1.24 +Security, Inc. MD5 Message-Digest Algorithm" in all material
1.25 +mentioning or referencing the derived work.
1.26 +
1.27 +RSA Data Security, Inc. makes no representations concerning either
1.28 +the merchantability of this software or the suitability of this
1.29 +software for any particular purpose. It is provided "as is"
1.30 +without express or implied warranty of any kind.
1.31 +
1.32 +These notices must be retained in any copies of any part of this
1.33 +documentation and/or software.
1.34 + */
1.35 +
1.36 +#ifndef _SYS_MD5_H_
1.37 +#define _SYS_MD5_H_
1.38 +/* MD5 context. */
1.39 +
1.40 +#if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
1.41 +#define SYMBIAN
1.42 +#endif
1.43 +
1.44 +#ifdef __SYMBIAN32__
1.45 +#include <sys/types.h>
1.46 +typedef __uint32_t u_int32_t;
1.47 +#endif
1.48 +
1.49 +typedef struct MD5Context {
1.50 + u_int32_t state[4]; /* state (ABCD) */
1.51 + u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
1.52 + unsigned char buffer[64]; /* input buffer */
1.53 +} MD5_CTX;
1.54 +
1.55 +#include <sys/cdefs.h>
1.56 +
1.57 +__BEGIN_DECLS
1.58 +void MD5Init (MD5_CTX *);
1.59 +void MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
1.60 +void MD5Final (unsigned char [16], MD5_CTX *);
1.61 +__END_DECLS
1.62 +#endif /* _SYS_MD5_H_ */