diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-29 15:51:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-29 15:51:17 +0000 |
commit | c082379018832e72c95068e938deaf79530a9458 (patch) | |
tree | 6e16bfb642f94adfe14efc18774aaa5d0ae628d0 /lib/libc/hash/mdX.3 | |
parent | bd5f9653f2399919b0aefeb32085ba80116ed969 (diff) |
Undo some recent prototype changes; it is legal to pass the helper
functions can take a NULL buf pointer. They will malloc memory as
needed in this case.
Diffstat (limited to 'lib/libc/hash/mdX.3')
-rw-r--r-- | lib/libc/hash/mdX.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/hash/mdX.3 b/lib/libc/hash/mdX.3 index 2b36cfce230..a5dcb19ec51 100644 --- a/lib/libc/hash/mdX.3 +++ b/lib/libc/hash/mdX.3 @@ -6,9 +6,9 @@ .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp .\" ---------------------------------------------------------------------------- .\" -.\" $OpenBSD: mdX.3,v 1.2 2004/04/29 13:33:58 jmc Exp $ +.\" $OpenBSD: mdX.3,v 1.3 2004/04/29 15:51:16 millert Exp $ .\" -.Dd October 9, 1996 +.Dd April 29, 2004 .Dt MDX 3 .Os .Sh NAME @@ -32,11 +32,11 @@ .Ft void .Fn MDXTransform "u_int32_t state[4]" "u_int8_t block[MDX_BLOCK_LENGTH]" .Ft "char *" -.Fn MDXEnd "MDX_CTX *context" "char buf[MDX_DIGEST_STRING_LENGTH]" +.Fn MDXEnd "MDX_CTX *context" "char *buf" .Ft "char *" -.Fn MDXFile "char *filename" "char buf[MDX_DIGEST_STRING_LENGTH]" +.Fn MDXFile "char *filename" "char *buf" .Ft "char *" -.Fn MDXData "const u_int8_t *data" "unsigned int len" "char buf[MDX_DIGEST_STRING_LENGTH]" +.Fn MDXData "const u_int8_t *data" "size_t len" "char *buf" .Sh DESCRIPTION The MDX functions calculate a 128-bit cryptographic checksum (digest) for any number of input bytes. |