|
|
@ -8,17 +8,17 @@ |
|
|
|
*/ |
|
|
|
|
|
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
|
static char rcsid[] = "$OpenBSD: rmd160hl.c,v 1.3 2002/12/23 04:33:31 millert Exp $"; |
|
|
|
static char rcsid[] = "$OpenBSD: rmd160hl.c,v 1.4 2003/05/08 23:32:21 millert Exp $"; |
|
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <sys/types.h> |
|
|
|
|
|
|
|
#include <errno.h> |
|
|
|
#include <fcntl.h> |
|
|
|
#include <sys/types.h> |
|
|
|
#include <sys/uio.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <rmd160.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
/* ARGSUSED */ |
|
|
|
char * |
|
|
@ -37,6 +37,7 @@ RMD160End(RMD160_CTX *ctx, char *buf) |
|
|
|
buf[i + i + 1] = hex[digest[i] & 0x0f]; |
|
|
|
} |
|
|
|
buf[i + i] = '\0'; |
|
|
|
memset(digest, 0, sizeof(digest)); |
|
|
|
return(buf); |
|
|
|
} |
|
|
|
|
|
|
|