/*
- * Sherlock Library -- MD5 Binary <-> Hex Conversions
+ * UCW Library -- MD5 Binary <-> Hex Conversions
*
- * (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ * (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
+#include "lib/lib.h"
+#include "lib/chartype.h"
-#include "lib.h"
-#include "string.h"
+#include <stdio.h>
void
-md5_to_hex(byte *s, byte *d)
+md5_to_hex(const byte *s, char *d)
{
int i;
for(i=0; i<MD5_SIZE; i++)
}
void
-hex_to_md5(byte *s, byte *d)
+hex_to_md5(const char *s, byte *d)
{
uns i, j;
for(i=0; i<MD5_SIZE; i++)