#include "system.h"
#include "md5.h"
#include "rpmio_internal.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
int | domd5 (const char *fn, unsigned char *digest, int asAscii, int brokenEndian) |
Calculate MD5 sum for file. More... | |
int | mdbinfile (const char *fn, unsigned char *bindigest) |
Return MD5 sum of file as binary data. More... | |
int | mdbinfileBroken (const char *fn, unsigned char *bindigest) |
Return (broken!) MD5 sum of file as binary data. More... | |
int | mdfile (const char *fn, unsigned char *digest) |
int | mdfileBroken (const char *fn, unsigned char *digest) |
Return (broken!) MD5 sum of file as ASCII string. More... |
Compile and link with md5.c. If you don't have getopt() in your library also include getopt.c. For MSDOS you can also link with the wildcard initialization function (wildargs.obj for Turbo C and setargv.obj for MSC) so that you can use wildcards on the commandline.
Written March 1993 by Branko Lankester Modified June 1993 by Colin Plumb for altered md5.c. Modified October 1995 by Erik Troan for RPM
Definition in file md5sum.c.
|
Calculate MD5 sum for file.
Definition at line 27 of file md5sum.c. Referenced by mdbinfile(), mdbinfileBroken(), mdfile(), and mdfileBroken(). |
|
Return MD5 sum of file as binary data.
Definition at line 110 of file md5sum.c. Referenced by rpmAddSignature(). |
|
Return (broken!) MD5 sum of file as binary data.
|
|
|
|
Return (broken!) MD5 sum of file as ASCII string.
Definition at line 122 of file md5sum.c. Referenced by decideFileFate(), and rpmVerifyFile(). |