home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / include / php / ext / standard / md5.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-05  |  3.4 KB  |  72 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP HTML Embedded Scripting Language Version 3.0                     |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997,1998 PHP Development Team (See Credits file)      |
  6.    +----------------------------------------------------------------------+
  7.    | This program is free software; you can redistribute it and/or modify |
  8.    | it under the terms of one of the following licenses:                 |
  9.    |                                                                      |
  10.    |  A) the GNU General Public License as published by the Free Software |
  11.    |     Foundation; either version 2 of the License, or (at your option) |
  12.    |     any later version.                                               |
  13.    |                                                                      |
  14.    |  B) the PHP License as published by the PHP Development Team and     |
  15.    |     included in the distribution in the file: LICENSE                |
  16.    |                                                                      |
  17.    | This program is distributed in the hope that it will be useful,      |
  18.    | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
  19.    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
  20.    | GNU General Public License for more details.                         |
  21.    |                                                                      |
  22.    | You should have received a copy of both licenses referred to here.   |
  23.    | If you did not, or have any questions about PHP licensing, please    |
  24.    | contact core@php.net.                                                |
  25.    +----------------------------------------------------------------------+
  26.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  27.    +----------------------------------------------------------------------+
  28.  */
  29. #ifndef _md5_h
  30. #define _md5_h
  31. /* MD5.H - header file for MD5C.C
  32.  */
  33.  
  34. /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
  35.    rights reserved.
  36.  
  37.    License to copy and use this software is granted provided that it
  38.    is identified as the "RSA Data Security, Inc. MD5 Message-Digest
  39.    Algorithm" in all material mentioning or referencing this software
  40.    or this function.
  41.  
  42.    License is also granted to make and use derivative works provided
  43.    that such works are identified as "derived from the RSA Data
  44.    Security, Inc. MD5 Message-Digest Algorithm" in all material
  45.    mentioning or referencing the derived work.
  46.  
  47.    RSA Data Security, Inc. makes no representations concerning either
  48.    the merchantability of this software or the suitability of this
  49.    software for any particular purpose. It is provided "as is"
  50.    without express or implied warranty of any kind.
  51.  
  52.    These notices must be retained in any copies of any part of this
  53.    documentation and/or software.
  54.  */
  55.  
  56. #include "php_global.h"
  57.  
  58. /* MD5 context. */
  59. typedef struct {
  60.     UINT4 state[4];                /* state (ABCD) */
  61.     UINT4 count[2];                /* number of bits, modulo 2^64 (lsb first) */
  62.     unsigned char buffer[64];    /* input buffer */
  63. } PHP_MD5_CTX;
  64.  
  65. void PHP_MD5Init PROTO_LIST((PHP_MD5_CTX *));
  66. void PHP_MD5Update PROTO_LIST((PHP_MD5_CTX *, const unsigned char *, unsigned int));
  67. void PHP_MD5Final PROTO_LIST((unsigned char[16], PHP_MD5_CTX *));
  68.  
  69. PHP_NAMED_FUNCTION(php_if_md5);
  70.  
  71. #endif
  72.