diff options
author | 2004-07-28 19:37:09 +0000 | |
---|---|---|
committer | 2004-07-28 19:37:09 +0000 | |
commit | c54b72ff90790c86d859a58917cb6230eb3c1ca6 (patch) | |
tree | 7c00f2802f8b6a45f8657511e2aa067ea8e4af24 /lib/libskey | |
parent | Remove statement with no effect. (diff) | |
download | wireguard-openbsd-c54b72ff90790c86d859a58917cb6230eb3c1ca6.tar.xz wireguard-openbsd-c54b72ff90790c86d859a58917cb6230eb3c1ca6.zip |
Use SHA1Pad() instead of relying on unspecified behavior.
Diffstat (limited to 'lib/libskey')
-rw-r--r-- | lib/libskey/skeysubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libskey/skeysubr.c b/lib/libskey/skeysubr.c index 9a5d6f8be39..eda8d71bb64 100644 --- a/lib/libskey/skeysubr.c +++ b/lib/libskey/skeysubr.c @@ -9,7 +9,7 @@ * * S/Key misc routines. * - * $OpenBSD: skeysubr.c,v 1.27 2003/06/26 23:19:53 deraadt Exp $ + * $OpenBSD: skeysubr.c,v 1.28 2004/07/28 19:37:09 millert Exp $ */ #include <stdio.h> @@ -184,7 +184,7 @@ keycrunch_sha1(char *result, char *seed, char *passwd) /* Crunch the key through SHA1 */ SHA1Init(&sha); SHA1Update(&sha, (unsigned char *)buf, buflen); - SHA1Final(NULL, &sha); + SHA1Pad(&sha); /* Fold 160 to 64 bits */ sha.state[0] ^= sha.state[2]; |