epoc32/include/stdapis/sys/md5.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 md5.h
     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 typedef __uint32_t u_int32_t;
       
    43 #endif
       
    44 
       
    45 typedef struct MD5Context {
       
    46   u_int32_t state[4];	/* state (ABCD) */
       
    47   u_int32_t count[2];	/* number of bits, modulo 2^64 (lsb first) */
       
    48   unsigned char buffer[64];	/* input buffer */
       
    49 } MD5_CTX;
       
    50 
       
    51 #include <sys/cdefs.h>
       
    52 
       
    53 __BEGIN_DECLS
       
    54 void   MD5Init (MD5_CTX *);
       
    55 void   MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
       
    56 void   MD5Final (unsigned char [16], MD5_CTX *);
       
    57 __END_DECLS
       
    58 #endif /* _SYS_MD5_H_ */