sys/md5.h

Go to the documentation of this file.
00001 /* MD5.H - header file for MD5C.C
00002  * $FreeBSD: src/sys/sys/md5.h,v 1.18 2005/02/10 12:20:42 phk Exp $
00003  */
00004 
00005 /*-
00006 
00007  © Portions copyright (c) 2005-2006 Nokia Corporation.
00008  All rights reserved.
00009 * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
00010  Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
00011 rights reserved.
00012 
00013 License to copy and use this software is granted provided that it
00014 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
00015 Algorithm" in all material mentioning or referencing this software
00016 or this function.
00017 
00018 License is also granted to make and use derivative works provided
00019 that such works are identified as "derived from the RSA Data
00020 Security, Inc. MD5 Message-Digest Algorithm" in all material
00021 mentioning or referencing the derived work.
00022 
00023 RSA Data Security, Inc. makes no representations concerning either
00024 the merchantability of this software or the suitability of this
00025 software for any particular purpose. It is provided "as is"
00026 without express or implied warranty of any kind.
00027 
00028 These notices must be retained in any copies of any part of this
00029 documentation and/or software.
00030  */
00031 
00032 #ifndef _SYS_MD5_H_
00033 #define _SYS_MD5_H_
00034 /* MD5 context. */
00035 
00036 #if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
00037 #define SYMBIAN
00038 #endif
00039 
00040 #ifdef __SYMBIAN32__
00041 #include <sys/types.h>
00042 typedef __uint32_t u_int32_t;
00043 #endif
00044 
00045 typedef struct MD5Context {
00046   u_int32_t state[4];   /* state (ABCD) */
00047   u_int32_t count[2];   /* number of bits, modulo 2^64 (lsb first) */
00048   unsigned char buffer[64];     /* input buffer */
00049 } MD5_CTX;
00050 
00051 #include <sys/cdefs.h>
00052 
00053 __BEGIN_DECLS
00054 void   MD5Init (MD5_CTX *);
00055 void   MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
00056 void   MD5Final (unsigned char [16], MD5_CTX *);
00057 __END_DECLS
00058 #endif /* _SYS_MD5_H_ */

Copyright © Nokia Corporation 2001-2008
Back to top