epoc32/include/stdapis/sys/md5.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /* MD5.H - header file for MD5C.C
     2  * $FreeBSD: src/sys/sys/md5.h,v 1.18 2005/02/10 12:20:42 phk Exp $
     3  */
     4 
     5 /*-
     6 
     7  © Portions copyright (c) 2005-2006 Nokia Corporation.
     8  All rights reserved.
     9 * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
    10  Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
    11 rights reserved.
    12 
    13 License to copy and use this software is granted provided that it
    14 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
    15 Algorithm" in all material mentioning or referencing this software
    16 or this function.
    17 
    18 License is also granted to make and use derivative works provided
    19 that such works are identified as "derived from the RSA Data
    20 Security, Inc. MD5 Message-Digest Algorithm" in all material
    21 mentioning or referencing the derived work.
    22 
    23 RSA Data Security, Inc. makes no representations concerning either
    24 the merchantability of this software or the suitability of this
    25 software for any particular purpose. It is provided "as is"
    26 without express or implied warranty of any kind.
    27 
    28 These notices must be retained in any copies of any part of this
    29 documentation and/or software.
    30  */
    31 
    32 #ifndef _SYS_MD5_H_
    33 #define _SYS_MD5_H_
    34 /* MD5 context. */
    35 
    36 #if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
    37 #define SYMBIAN
    38 #endif
    39 
    40 #ifdef __SYMBIAN32__
    41 #include <sys/types.h>
    42 #endif
    43 
    44 typedef struct MD5Context {
    45   u_int32_t state[4];	/* state (ABCD) */
    46   u_int32_t count[2];	/* number of bits, modulo 2^64 (lsb first) */
    47   unsigned char buffer[64];	/* input buffer */
    48 } MD5_CTX;
    49 
    50 #include <sys/cdefs.h>
    51 
    52 __BEGIN_DECLS
    53 void   MD5Init (MD5_CTX *);
    54 void   MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
    55 void   MD5Final (unsigned char [16], MD5_CTX *);
    56 __END_DECLS
    57 #endif /* _SYS_MD5_H_ */