diff options
author | 2008-02-13 08:43:39 +0000 | |
---|---|---|
committer | 2008-02-13 08:43:39 +0000 | |
commit | 8790bed536be702dfea15f230e30469a3fb687a0 (patch) | |
tree | bd9d62dc180fc59046ace95ad67d4d4431fe9bb8 /lib/libc | |
parent | Fix a few warnings, including an uninitialized variable in an error case. (diff) | |
download | wireguard-openbsd-8790bed536be702dfea15f230e30469a3fb687a0.tar.xz wireguard-openbsd-8790bed536be702dfea15f230e30469a3fb687a0.zip |
The digest in the example seems to have been generated
by code that does not do zero padding. The example code does. Fix.
millert@ ok
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/hash/sha1.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/hash/sha1.3 b/lib/libc/hash/sha1.3 index 7796dcce628..80b553b097c 100644 --- a/lib/libc/hash/sha1.3 +++ b/lib/libc/hash/sha1.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sha1.3,v 1.36 2007/05/31 19:19:29 jmc Exp $ +.\" $OpenBSD: sha1.3,v 1.37 2008/02/13 08:43:39 art Exp $ .\" .\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com> .\" @@ -17,7 +17,7 @@ .\" See http://csrc.nist.gov/publications/fips/fips180-1/fip180-1.txt .\" for the detailed standard .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: February 13 2008 $ .Dt SHA1 3 .Os .Sh NAME @@ -166,7 +166,7 @@ and should be freed using when it is no longer needed. .Sh EXAMPLES The follow code fragment will calculate the digest for -the string "abc" which is ``0xa9993e36476816aba3e25717850c26c9cd0d89d''. +the string "abc" which is ``0xa9993e364706816aba3e25717850c26c9cd0d89d''. .Bd -literal -offset indent SHA1_CTX sha; u_int8_t results[SHA1_DIGEST_LENGTH]; |