00001 /* 00002 * $Id$ 00003 * 00004 * pam_kmux - Linux PAM Module to change passwords simultaneously on multiple databases. 00005 * 00006 * Copyright (C) 2010 Julian Thome 00007 * 00008 * This program is free software; you can redistribute it and/or modify it under the terms of 00009 * the GNU General Public License as published by the Free Software Foundation; 00010 * either version 3 of the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00013 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00014 * See the GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along with this program; 00017 * if not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00025 #ifndef MD5_H 00026 #define MD5_H 00027 00028 #ifdef __alpha 00029 typedef unsigned int uint32; 00030 #else 00031 typedef unsigned long uint32; 00032 #endif 00033 00035 struct MD5Context { 00036 uint32 buf[4]; 00037 uint32 bits[2]; 00038 unsigned char in[64]; 00039 }; 00040 00041 void MD5Init(struct MD5Context *context); 00042 void MD5Update(struct MD5Context *context, unsigned char const *buf, 00043 unsigned len); 00044 void MD5Final(unsigned char *digest, struct MD5Context *context); 00045 void MD5Transform(uint32 buf[4], uint32 const in[16]); 00046 00047 /* 00048 * This is needed to make RSAREF happy on some MS-DOS compilers. 00049 */ 00050 typedef struct MD5Context MD5_CTX; 00051 00052 #endif /* !MD5_H */
1.6.3