Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/nettle/md5-compat.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* md5-compat.h
0002 
0003    The md5 hash function, RFC 1321-style interface.
0004 
0005    Copyright (C) 2001 Niels Möller
0006 
0007    This file is part of GNU Nettle.
0008 
0009    GNU Nettle is free software: you can redistribute it and/or
0010    modify it under the terms of either:
0011 
0012      * the GNU Lesser General Public License as published by the Free
0013        Software Foundation; either version 3 of the License, or (at your
0014        option) any later version.
0015 
0016    or
0017 
0018      * the GNU General Public License as published by the Free
0019        Software Foundation; either version 2 of the License, or (at your
0020        option) any later version.
0021 
0022    or both in parallel, as here.
0023 
0024    GNU Nettle is distributed in the hope that it will be useful,
0025    but WITHOUT ANY WARRANTY; without even the implied warranty of
0026    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0027    General Public License for more details.
0028 
0029    You should have received copies of the GNU General Public License and
0030    the GNU Lesser General Public License along with this program.  If
0031    not, see http://www.gnu.org/licenses/.
0032 */
0033 
0034 #ifndef NETTLE_MD5_COMPAT_H_INCLUDED
0035 #define NETTLE_MD5_COMPAT_H_INCLUDED
0036 
0037 #include "md5.h"
0038 
0039 #ifdef __cplusplus
0040 extern "C" {
0041 #endif
0042 
0043 /* Name mangling */
0044 #define MD5Init nettle_MD5Init
0045 #define MD5Update nettle_MD5Update
0046 #define MD5Final nettle_MD5Final
0047 
0048 typedef struct md5_ctx MD5_CTX;
0049 
0050 void MD5Init(MD5_CTX *ctx);
0051 void MD5Update(MD5_CTX *ctx, const unsigned char *data, unsigned int length);
0052 void MD5Final(unsigned char *out, MD5_CTX *ctx);
0053 
0054 #ifdef __cplusplus
0055 }
0056 #endif
0057 
0058 #endif /* NETTLE_MD5_COMPAT_H_INCLUDED */