Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/lib/libc/hash Pull up revision 1.7 (requested by simonb):
details: https://anonhg.NetBSD.org/src/rev/d3678917ea28
branches: netbsd-1-5
changeset: 490940:d3678917ea28
user: he <he%NetBSD.org@localhost>
date: Thu Mar 22 02:02:18 2001 +0000
description:
Pull up revision 1.7 (requested by simonb):
Fix workspace alignment problems. Fixes PR#12417.
diffstat:
lib/libc/hash/sha1.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 01961983a0c1 -r d3678917ea28 lib/libc/hash/sha1.c
--- a/lib/libc/hash/sha1.c Thu Mar 22 01:53:32 2001 +0000
+++ b/lib/libc/hash/sha1.c Thu Mar 22 02:02:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sha1.c,v 1.5.4.1 2000/10/19 19:56:34 he Exp $ */
+/* $NetBSD: sha1.c,v 1.5.4.2 2001/03/22 02:02:18 he Exp $ */
/* $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ */
/*
@@ -139,14 +139,14 @@
CHAR64LONG16 *block;
#ifdef SHA1HANDSOFF
- static u_char workspace[64];
+ CHAR64LONG16 workspace;
#endif
_DIAGASSERT(buffer != 0);
_DIAGASSERT(state != 0);
#ifdef SHA1HANDSOFF
- block = (CHAR64LONG16 *)(void *)workspace;
+ block = &workspace;
(void)memcpy(block, buffer, 64);
#else
block = (CHAR64LONG16 *)(void *)buffer;
Home |
Main Index |
Thread Index |
Old Index