opkg: correct the name of the state changed callback and run it when appropriate
[project/opkg-lede.git] / md5.h
1 /* md5.h - Compute MD5 checksum of files or strings according to the
2 * definition of MD5 in RFC 1321 from April 1992.
3 * Copyright (C) 1995-1999 Free Software Foundation, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef MD5_H
21 #define MD5_H
22
23 /* Compute MD5 message digest for bytes read from STREAM. The
24 resulting message digest number will be written into the 16 bytes
25 beginning at RESBLOCK. */
26 int md5_stream(FILE *stream, void *resblock);
27
28 /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
29 result is always in little endian byte order, so that a byte-wise
30 output yields to the wanted ASCII representation of the message
31 digest. */
32 void *md5_buffer(const char *buffer, size_t len, void *resblock);
33
34 #endif
35