diff --git a/src/lib/libc/hash/rmd160.3 b/src/lib/libc/hash/rmd160.3 index fa567535..dca07179 100644 --- a/src/lib/libc/hash/rmd160.3 +++ b/src/lib/libc/hash/rmd160.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rmd160.3,v 1.5 1998/06/21 22:13:42 millert Exp $ +.\" $OpenBSD: rmd160.3,v 1.6 1999/04/18 23:31:01 wvdputte Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller .\" All rights reserved. @@ -167,7 +167,7 @@ RMD160Final(results, &rmd); /* Print the digest as one long hex value */ printf("0x"); for (n = 0; n < 20; n++) - printf("%x", results[n]); + printf("%02x", results[n]); putchar('\\n'); .Ed .Pp @@ -177,7 +177,7 @@ RMD160_CTX rmd; u_char output[41]; char *buf = "abc"; -printf("0x%s", RMD160Data(buf, strlen(buf), output)); +printf("0x%s\n", RMD160Data(buf, strlen(buf), output)); .Ed .Sh CAVEATS If a message digest is to be copied to a multi-byte type (ie: diff --git a/src/lib/libc/hash/sha1.3 b/src/lib/libc/hash/sha1.3 index 369fa4df..3c1577df 100644 --- a/src/lib/libc/hash/sha1.3 +++ b/src/lib/libc/hash/sha1.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sha1.3,v 1.10 1998/06/21 22:13:43 millert Exp $ +.\" $OpenBSD: sha1.3,v 1.11 1999/04/18 23:31:01 wvdputte Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller .\" All rights reserved. @@ -164,7 +164,7 @@ SHA1Final(results, &sha); /* Print the digest as one long hex value */ printf("0x"); for (n = 0; n < 20; n++) - printf("%x", results[n]); + printf("%02x", results[n]); putchar('\\n'); .Ed .Pp @@ -174,7 +174,7 @@ SHA1_CTX sha; u_char output[41]; char *buf = "abc"; -printf("0x%s", SHA1Data(buf, strlen(buf), output)); +printf("0x%s\n", SHA1Data(buf, strlen(buf), output)); .Ed .Sh CAVEATS This implementation of SHA-1 has not been validated by NIST